LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Close-Control (X) from the title bar

I need to keep the taskbar so that the user can move the panel, but remove the "minimize", "Maximize", and "Close (X)" squares from the  taskbar. I can show/hide "Maximize", and "Minimize" from the panel properties, but I don't know how to remove the "closese" control. If I set the title visible, that (X) shows up automatically.
Can someone help please ?

Thanks,

Edgar TH
0 Kudos
Message 1 of 3
(3,190 Views)

You have two options:

1) SetPanelAttribute (panelHandle, ATTR_CLOSE_ITEM_VISIBLE, 0);
This dims both the "Close" cross in the upper right corner of the window and the corresponding option in the window system menu (the menu that appears clicking on the icon in the upper left corner)

2) SetPanelAttribute (panelHandle, ATTR_SYSTEM_MENU_VISIBLE, 0);
This completely hides both of them



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,179 Views)
Thanks Roberto
0 Kudos
Message 3 of 3
(3,161 Views)