U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » TabDlg Remove 'Close' Button
Re: TabDlg Remove 'Close' Button [message #37672 is a reply to message #37668] Thu, 01 November 2012 07:49 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi nejnio

nejnadusho wrote on Thu, 01 November 2012 01:49

I created a TabDlg and when I display it there is a 'Close' button in the lower right corner.
I haven't put it there!

How can I remove it?


All the Ctrls on TabDlg are fortunately public, so you can do anything with them Smile To remove the default close button, just add following before the Execute() call:
		adminDlg.RemoveChild(&adminDlg.exit);
		adminDlg.tabctrl.SizePos();
The first line removes the button, the second resizes the ctrl holding the tabs, so that entire area is used.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: What type are the tabs?
Next Topic: THISBACK(function(parameter)) Error C2102
Goto Forum:
  


Current Time: Sat Jun 20 21:57:03 GMT+2 2026

Total time taken to generate the page: 0.00473 seconds