Brian
How to resize fonts at runtime June 25, 2009 11:31PM |
Brian
Re: How to resize fonts at runtime July 06, 2009 08:13PM |
Al
Re: How to resize fonts at runtime July 06, 2009 11:42PM |
Moderator |
Jimbo
Re: How to resize fonts at runtime July 07, 2009 07:23AM |
Moderator |
Brian
Re: How to resize fonts at runtime July 07, 2009 02:25PM |
Fabrice Harari
Re: How to resize fonts at runtime July 07, 2009 06:20PM |
Jimbo
Re: How to resize fonts at runtime July 07, 2009 07:18PM |
Moderator |
Chris L
Re: How to resize fonts at runtime July 12, 2009 04:20PM |
ControlName..FontSize = 12But you can also have
ControlName..FontSize = nNewFontSizewhere nNewFontSize is a variable determined however you want. And even something like
ControlName..FontSize = ControlName..FontSize * 1.2or
ControlName..FontSize = ControlName..FontSize * nResizeFactor
GR_EditControls..FontSize = 12That has the restriction that grouped controls will all have the same font size.
nResizeFactor = MyWindow..Width/MyWindow..InitialWidth(you can of course use height if this is more useful).
nResizeFactor = MyWindow..Width/MyWindow..InitialWidth ControlName..FontSize = ControlName..FontSize * nResizeFactor(In practice, you may want to add another factor so that the font size increases at a greater rate than the window size.)
MyWindow..width = 1600 MyWindow..height = 1200Alternatively, you can use the WinSize command which also allows you to specify the position, should you wish.
WinSize(MyWindow,1600,1200)If you want to know the size of the screen the application is running on, the WinScreenRectangle will supply this information which you can then use. But if you simply want to maximise the screen, use the WinSize command again.
WinSize(MyWindow,MaxSize)
Brian
Re: How to resize fonts at runtime July 13, 2009 02:23PM |
Chris L
Re: How to resize fonts at runtime July 13, 2009 03:00PM |
Ola
Re: How to resize fonts at runtime July 13, 2009 03:51PM |
heinz kübler
Re: How to resize fonts at runtime July 13, 2009 11:35PM |
Chris L
Re: How to resize fonts at runtime July 14, 2009 03:06AM |
Chris L
Re: How to resize fonts at runtime July 14, 2009 03:10AM |
Jimbo
Re: How to resize fonts at runtime July 14, 2009 07:27AM |
Moderator |
Ola
Re: How to resize fonts at runtime July 14, 2009 09:53AM |
Alexandre Leclerc
Re: How to resize fonts at runtime July 14, 2009 02:18PM |
DW
Re: How to resize fonts at runtime July 14, 2009 02:58PM |