LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make cvi panels the topmost Window

Hi,
I am trying to set up my CVI panels to be "always on top", i.e. drawn last no matter whatever other windows are drawn. Is there a way to do that from within the software? I've tried using Autohotkey commands like "WinSet, AlwaysOnTop", that works with all other applications but not with my own CVI app.
thanks for your help!

0 Kudos
Message 1 of 2
(3,337 Views)

Hi DocEye,

you should change the panel's floating style. This can be done in the UIR editor as well as in your code.

  • To adjust this attribute in the UIR editor, double-click your panel (or select "Panel" from the "Edit" menu). Now click the "Other attributes" button on the "Edit Panel" window that pops up. In the "Other attributes" window, change floating style to "Always" (this attribute is set to "Never" by default).
  • To adjust the panel's attribute in your code use SetCtrlAttribute (pnlHandle, ATTR_FLOATING, VAL_FLOAT_ALWAYS);

 

Message 2 of 2
(3,333 Views)