User forums > General (but related to Code::Blocks)
Sizers
jmccay:
How do you change the default size of a sizer using wxWidgets. I have a flexgrid sizer embedded into a Grid Sizer. I can't seem to resize the the dialog. I also can't resize the notebook control with a tree control added as a page. Is this something I should change via code?
Also, how do you get the '_' (as in &Edit in the label for a button) to appear when you start a dialog? They don't appear when I start the application.
Thanks.
Joe M.
jmccay:
--- Quote from: jmccay on November 27, 2006, 03:22:25 am --- How do you change the default size of a sizer using wxWidgets. I have a flexgrid sizer embedded into a Grid Sizer. I can't seem to resize the the dialog. I also can't resize the notebook control with a tree control added as a page. Is this something I should change via code?
--- End quote ---
I found the solution to this problem. First, add a pannel to the notebook. Then, add a sizer to the panel, and then add the tree control. Now I just need to get it to expand properly. The tree control will not expand.
--- Quote --- Also, how do you get the '_' (as in &Edit in the label for a button) to appear when you start a dialog? They don't appear when I start the application.
Thanks.
Joe M.
--- End quote ---
still need info on this problem.
joe
jmccay:
--- Quote from: jmccay on November 28, 2006, 04:28:03 am ---
--- Quote from: jmccay on November 27, 2006, 03:22:25 am --- How do you change the default size of a sizer using wxWidgets. I have a flexgrid sizer embedded into a Grid Sizer. I can't seem to resize the the dialog. I also can't resize the notebook control with a tree control added as a page. Is this something I should change via code?
--- End quote ---
I found the solution to this problem. First, add a pannel to the notebook. Then, add a sizer to the panel, and then add the tree control. Now I just need to get it to expand properly. The tree control will not expand.
--- Quote --- Also, how do you get the '_' (as in &Edit in the label for a button) to appear when you start a dialog? They don't appear when I start the application.
Thanks.
Joe M.
--- End quote ---
still need info on this problem.
joe
--- End quote ---
Ok I have the expand working properly. I just have to remember to set the growable columns & rows in the sizer based on a 0 index. Is the '_' problem a bug in wxWidsets?
jmccay
takeshimiya:
--- Quote from: jmccay on November 28, 2006, 04:39:22 am ---Is the '_' problem a bug in wxWidsets?
jmccay
--- End quote ---
Just in case you happen to be running Windows XP, have you tried pressing ALT? :shock:
jmccay:
--- Quote from: takeshi miya on November 28, 2006, 05:57:57 am ---Just in case you happen to be running Windows XP, have you tried pressing ALT? :shock:
--- End quote ---
Yeah, I used the alt, and I do have WinXP. Alt is not the problem. The problem is that the underscore doesn't appear at all most of the time, and when it does, it doesn't always stay. An example:
I type the label: &Edit
Which should appear: Edit
It appears like: Edit (most of the time)
The underscore should be there all of the time. That's what I am trying to fix. I was wondering if anyone else had experience with this issue. Sorry for the bad explanation in my previous post. I was very tired when I posted this (& it has made for a long day at 4:30 am the next day). Unfortunately, I haven't been able do coding at home until late at night (for me) which makes for interesting reads.
jmccay
Navigation
[0] Message Index
[#] Next page
Go to full version