Topic: onTop

Hi All,


How to get compiled MVD app displayed always on top with the use of checkbox? Checkbox used for switching on top state is on or off.

Adam
God... please help me become the person my dog thinks I am.

Re: onTop

Hi Adam,
Perhaps try something like this (see attached).
Derek.

Post's attachments

Attachment icon stay on top.zip 445.83 kb, 27 downloads since 2024-04-04 

3 (edited by sparrow 2024-04-04 12:46:08)

Re: onTop

Hi Adam, Derek


OR

 if form1.CheckBox1.Checked then SetWindowPos(Form1.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NoMove or SWP_NoSize)
   else SetWindowPos(Form1.Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NoMove or SWP_NoSize);

Use both options with caution. Options are set for one form.

Re: onTop

Hi Derek,
Hi Sparrow,


Thank you very much guys.....
Truly appreciated.........

Adam
God... please help me become the person my dog thinks I am.