Home » Community » Newbie corner » menu Tree
Re: menu Tree [message #32407 is a reply to message #32401] |
Mon, 16 May 2011 18:50   |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
nlneilson wrote on Mon, 16 May 2011 10:31 |
That worked OK, is that just drawing an image of the box with/without the check mark you are pointing out?
|
Yes, but with internal implementation. External implementation could look like follows:
void App::FileBar(Bar& bar) {
bar.Add("1L", THISBACK(OnCheck1L)).Image(tac1L ? CtrlImg::MenuCheck1() : CtrlImg::MenuCheck0());
}
nlneilson wrote on Mon, 16 May 2011 10:31 |
Is this what you had in your previous code or are you suggesting something different?
|
Something different: New dialog window with more detailed settings, without using MenuBar. It depends from your implementation. And using "MenuBar just to show current checked values and change them on one-click basis" on main window.
nlneilson wrote on Mon, 16 May 2011 10:31 |
Is there an easy way to set the text in the label bold?
|
By using QTF after \1 escape byte:
Label text;
text.SetLabel("\1[*1 Some informative text]");
or through Font settings:
Label text;
text.SetLabel("Some informative text").SetFont(text.GetFont().Bold());
[Updated on: Tue, 31 May 2011 20:33] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Aug 03 05:51:25 CEST 2025
Total time taken to generate the page: 0.05812 seconds
|