my GUI looses it's proportion on other machines.
I already know i Have to use Sizers, but i dont know wich one's to use, or how to use them ( i haven't found any tutorial yet)
i'm using codeblocks to manage the project.
could you point me into a tutorial or guide on how to use them properly?
size of elements Topic is solved
Re: size of elements
I think this is a good introduction to understand the basic concept behind sizers:
http://neume.sourceforge.net/sizerdemo/
http://neume.sourceforge.net/sizerdemo/
Use the source, Luke!
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: size of elements
sizers only work for element layout?
some users reported some buttons and text become bigger.
some users reported some buttons and text become bigger.
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: size of elements
i got the answer!
it seems that the default Font configuration used by Code::Blocks Wizard for wxWidgets projects caused the issue.
setting a custom font & size for every frame & dialog solved the bug.
it seems that the default Font configuration used by Code::Blocks Wizard for wxWidgets projects caused the issue.
setting a custom font & size for every frame & dialog solved the bug.
Re: size of elements
Hi,
You definitely should be using sizers and not trying to tweak the font/size unless absolutely necessary.
As doublemax said - sizers are doing layout for you.
In the beginning it is better to have some RAD tool to create GUI (if you don't use C::B/CodeLite, you can use wxGlade), then look at the generated code.
You will thank people in the long run for creating a layouts that will be working independently of resolution, OS, theme and any defaults there is.
Thank you.
You definitely should be using sizers and not trying to tweak the font/size unless absolutely necessary.
As doublemax said - sizers are doing layout for you.
In the beginning it is better to have some RAD tool to create GUI (if you don't use C::B/CodeLite, you can use wxGlade), then look at the generated code.
You will thank people in the long run for creating a layouts that will be working independently of resolution, OS, theme and any defaults there is.
Thank you.