Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13591 > unrolled thread

data dialog

Started byaurora baccio <aurorabaccio@gmail.com>
First post2022-05-24 07:10 -0700
Last post2022-07-23 06:47 -0700
Articles 8 — 6 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  data dialog aurora baccio <aurorabaccio@gmail.com> - 2022-05-24 07:10 -0700
    Re: data dialog D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2022-05-24 20:36 +0200
      Re: data dialog Gerhard Bunzel <gerhard.bunzel@gmail.com> - 2022-06-24 03:04 -0700
        Re: data dialog aurora baccio <aurorabaccio@gmail.com> - 2022-07-12 07:06 -0700
          Re: data dialog Jamal <nospam@example.com> - 2022-07-13 12:12 -0400
          Re: data dialog Franz Rachbauer <office@rachbauer.org> - 2022-07-14 14:47 +0200
            Re: data dialog Alessandro Vacchiano <alessandro@computerscenter.com> - 2022-07-15 09:12 -0700
            Re: data dialog aurora baccio <aurorabaccio@gmail.com> - 2022-07-23 06:47 -0700

#13591 — data dialog

Fromaurora baccio <aurorabaccio@gmail.com>
Date2022-05-24 07:10 -0700
Subjectdata dialog
Message-ID<82726170-734a-4b9b-a1da-1bcea0bebc6dn@googlegroups.com>
I have a requirement that a datadialog always be in the foreground.
SetModal(true/false) doesn't work for me
any advice ? 
thanks
aurora kiss

[toc] | [next] | [standalone]


#13592

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2022-05-24 20:36 +0200
Message-ID<ka9q8h9b0th30fvkrealjf874mtsepv766@4ax.com>
In reply to#13591
Replying on message of Tue, 24 May 2022 07:10:08 -0700 (PDT) from
aurora baccio:


 Hello aurora baccio,

>I have a requirement that a datadialog always be in the foreground.
>SetModal(true/false) doesn't work for me

You can try:

SetForegroundWindow(SELF:Handle())

We use this in a method called when someone clicks the trayicon we
associated with that window so the window is opened to the foreground.
For more permanent foreground positions you could use an Expose
method.

Dick

[toc] | [prev] | [next] | [standalone]


#13602

FromGerhard Bunzel <gerhard.bunzel@gmail.com>
Date2022-06-24 03:04 -0700
Message-ID<54fde7c0-3d1a-43c8-b64a-8efa41d22867n@googlegroups.com>
In reply to#13592
Hello aurora baccio,

you can give your windows an order to show one of them always on top:
		SetWindowLong(MyWindow:Handle(), GWL_EXSTYLE, _OR(GetWindowLong(MyWindow:Handle(), GWL_EXSTYLE), WS_EX_TOPMOST))

https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles


or with SetWindowPos()
https://docs.microsoft.com/de-DE/windows/win32/api/winuser/nf-winuser-setwindowpos


HTH
Gerhard

[toc] | [prev] | [next] | [standalone]


#13607

Fromaurora baccio <aurorabaccio@gmail.com>
Date2022-07-12 07:06 -0700
Message-ID<70c7ca71-29e5-47ed-b5f9-bbdba1f41bd0n@googlegroups.com>
In reply to#13602
Il giorno venerdì 24 giugno 2022 alle 12:04:44 UTC+2 Gerhard Bunzel ha scritto:
> Hello aurora baccio, 
> 
> you can give your windows an order to show one of them always on top: 
> SetWindowLong(MyWindow:Handle(), GWL_EXSTYLE, _OR(GetWindowLong(MyWindow:Handle(), GWL_EXSTYLE), WS_EX_TOPMOST)) 
> 
> https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles 
> 
> 
> or with SetWindowPos() 
> https://docs.microsoft.com/de-DE/windows/win32/api/winuser/nf-winuser-setwindowpos 
> 
> 
> HTH 
> Gerhard

Good morning,
sounds like the ideal command
but if I type setwindowpos(HWND_TOP) I get an error like the parameters are wrong.
Is it possible to have an example.
It was placed in the postinit method
thanks
aurora baccio

[toc] | [prev] | [next] | [standalone]


#13609

FromJamal <nospam@example.com>
Date2022-07-13 12:12 -0400
Message-ID<tamqt6$1gu2$1@gioia.aioe.org>
In reply to#13607
Did you read really the syntax for SetWindowPos() and what parameters 
are required?

On 7/12/2022 10:06 AM, aurora baccio wrote:
> Il giorno venerdì 24 giugno 2022 alle 12:04:44 UTC+2 Gerhard Bunzel ha scritto:
>> Hello aurora baccio,
>>
>> you can give your windows an order to show one of them always on top:
>> SetWindowLong(MyWindow:Handle(), GWL_EXSTYLE, _OR(GetWindowLong(MyWindow:Handle(), GWL_EXSTYLE), WS_EX_TOPMOST))
>>
>> https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles
>>
>>
>> or with SetWindowPos()
>> https://docs.microsoft.com/de-DE/windows/win32/api/winuser/nf-winuser-setwindowpos
>>
>>
>> HTH
>> Gerhard
> 
> Good morning,
> sounds like the ideal command
> but if I type setwindowpos(HWND_TOP) I get an error like the parameters are wrong.
> Is it possible to have an example.
> It was placed in the postinit method
> thanks
> aurora baccio

[toc] | [prev] | [next] | [standalone]


#13610

FromFranz Rachbauer <office@rachbauer.org>
Date2022-07-14 14:47 +0200
Message-ID<tap39v$1et3$1@gioia.aioe.org>
In reply to#13607
SetWindowPos(SELF:Handle(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE+SWP_NOSIZE)
should do this
Regards

Am 12.07.2022 um 16:06 schrieb aurora baccio:
> Il giorno venerdì 24 giugno 2022 alle 12:04:44 UTC+2 Gerhard Bunzel ha scritto:
>> Hello aurora baccio,
>>
>> you can give your windows an order to show one of them always on top:
>> SetWindowLong(MyWindow:Handle(), GWL_EXSTYLE, _OR(GetWindowLong(MyWindow:Handle(), GWL_EXSTYLE), WS_EX_TOPMOST))
>>
>> https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles
>>
>>
>> or with SetWindowPos()
>> https://docs.microsoft.com/de-DE/windows/win32/api/winuser/nf-winuser-setwindowpos
>>
>>
>> HTH
>> Gerhard
> 
> Good morning,
> sounds like the ideal command
> but if I type setwindowpos(HWND_TOP) I get an error like the parameters are wrong.
> Is it possible to have an example.
> It was placed in the postinit method
> thanks
> aurora baccio

[toc] | [prev] | [next] | [standalone]


#13611

FromAlessandro Vacchiano <alessandro@computerscenter.com>
Date2022-07-15 09:12 -0700
Message-ID<74503fa8-dee3-4e1d-a78f-94ef66080be3n@googlegroups.com>
In reply to#13610
Ti rispondo in italiano così è più semplice. Crei una tua classe per esempio:

CLASS MiaDialog INHERIT DataDialog


METHOD Init(oOwner,oSource,nResourceID) CLASS MiaDialog

	IF SysObject():SettoModale // qualsiasi altra variabile o metodo per partire la finestra come dialog o window
		SELF:SymTipoClasse := #DATADIALOG
	ELSE
		SELF:SymTipoClasse := #DATAWINDOW
	ENDIF
return self

Poi crei il metodo activate:

METHOD Activate(oE) CLASS MiaDialog
	
	IF SELF:SymTipoClasse == #DATADIALOG
      	SUPER:Activate(oE)
	ELSE
		SendClass(SELF,#ACTIVATE,#DATAWINDOW,oE)
	ENDIF
return nil

In sostanza nelle init devi dirgli in qualche modo che la finestra si deve aprire modale.
Puoi anche gestirti un campo personalizzato da passare come per es:

METHOD Init(oOwner,oSource,nResourceID,Partomodale) CLASS MiaDialog 





Il giorno giovedì 14 luglio 2022 alle 14:48:03 UTC+2 Franz Rachbauer ha scritto:
> SetWindowPos(SELF:Handle(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE+SWP_NOSIZE) 
> should do this 
> Regards
> Am 12.07.2022 um 16:06 schrieb aurora baccio: 
> > Il giorno venerdì 24 giugno 2022 alle 12:04:44 UTC+2 Gerhard Bunzel ha scritto: 
> >> Hello aurora baccio, 
> >> 
> >> you can give your windows an order to show one of them always on top: 
> >> SetWindowLong(MyWindow:Handle(), GWL_EXSTYLE, _OR(GetWindowLong(MyWindow:Handle(), GWL_EXSTYLE), WS_EX_TOPMOST)) 
> >> 
> >> https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles 
> >> 
> >> 
> >> or with SetWindowPos() 
> >> https://docs.microsoft.com/de-DE/windows/win32/api/winuser/nf-winuser-setwindowpos 
> >> 
> >> 
> >> HTH 
> >> Gerhard 
> > 
> > Good morning, 
> > sounds like the ideal command 
> > but if I type setwindowpos(HWND_TOP) I get an error like the parameters are wrong. 
> > Is it possible to have an example. 
> > It was placed in the postinit method 
> > thanks 
> > aurora baccio

[toc] | [prev] | [next] | [standalone]


#13612

Fromaurora baccio <aurorabaccio@gmail.com>
Date2022-07-23 06:47 -0700
Message-ID<2634d48a-4e4d-4a91-8fd9-891e442ed29an@googlegroups.com>
In reply to#13610
Il giorno giovedì 14 luglio 2022 alle 14:48:03 UTC+2 Franz Rachbauer ha scritto:
> SetWindowPos(SELF:Handle(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE+SWP_NOSIZE) 
> should do this 
> Regards
> Am 12.07.2022 um 16:06 schrieb aurora baccio: 
> > Il giorno venerdì 24 giugno 2022 alle 12:04:44 UTC+2 Gerhard Bunzel ha scritto: 
> >> Hello aurora baccio, 
> >> 
> >> you can give your windows an order to show one of them always on top: 
> >> SetWindowLong(MyWindow:Handle(), GWL_EXSTYLE, _OR(GetWindowLong(MyWindow:Handle(), GWL_EXSTYLE), WS_EX_TOPMOST)) 
> >> 
> >> https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles 
> >> 
> >> 
> >> or with SetWindowPos() 
> >> https://docs.microsoft.com/de-DE/windows/win32/api/winuser/nf-winuser-setwindowpos 
> >> 
> >> 
> >> HTH 
> >> Gerhard 
> > 
> > Good morning, 
> > sounds like the ideal command 
> > but if I type setwindowpos(HWND_TOP) I get an error like the parameters are wrong. 
> > Is it possible to have an example. 
> > It was placed in the postinit method 
> > thanks 
> > aurora baccio

Thank you,
I would now like the possibility to disable setwindowpos because theq screen gets stuck and the application does not go on.
aurora baccio

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web