LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Close Control

Hi,

 

is there a way to remove/invisible the close icon in the upper right of a CVI-Panel?
By the way the system bar with its task icon and panel name should be visible.

 

greetings

 

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 1 of 6
(4,175 Views)

Hello Jürgen,

 

You can't remove it completely, but you can disable it by setting the ATTR_CLOSE_ITEM_VISIBLE panel attribute to 0.

 

Luis

Message 2 of 6
(4,164 Views)

Hi Luis,

 

That are bad new's.

Seems i have to play with SDK to figure out a crazy function

 

Greetings

 

juergen 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 6
(4,151 Views)
You could try using SetPanelAttribute to set ATTR_TITLEBAR_VISIBLE to 0.  That will get rid of the whole titlebar, including the close control.
Message 4 of 6
(4,134 Views)

Hi tstanley,

 

That might be a solution, but i want to use it because i need the titlebar caption and the icon.
I have played with SDK. I am able to the remove the close from icon-menu a dimm the x-Button. But thats not what i need.

//HWND hWnd;

//GetPanelAttribute (m_hPanel, ATTR_SYSTEM_WINDOW_HANDLE, (int*) &hWnd);

//HMENU hMenu = GetSystemMenu(hWnd, FALSE);

//DeleteMenu(hMenu,SC_CLOSE,MF_BYPOSITION);

Maybe there is an other SDK function doing this.

 

Greetings

 

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 6
(4,117 Views)

Hello j_dodek,

 

you can use the panel attribute "ATTR_SYSTEM_MENU_VISIBLE". Then you see the titlebar of the panel an the panel icon.

 

Greets Be-Mo

0 Kudos
Message 6 of 6
(4,078 Views)