Page 1 of 1

How to get the system default

Posted: Sun Mar 21, 2021 12:18 pm
by hmgchang
Hola Masters,
1. How can I get some system default value such as fontname, fontsize etc.
2. How to make sure the width of a control can fit the text ( i.e. caption/ value for LABEL).
Maybe using gettextwidth, but i need the fontname and fontsize to calculate

Thks n Rgds
Chang

Re: How to get the system default

Posted: Sun Mar 21, 2021 3:30 pm
by edk
_HMG_SYSDATA [ 342 ] -> HMG_DefaultFontName
_HMG_SYSDATA [ 343 ] -> HMG_DefaultFontSize

Re: How to get the system default

Posted: Sun Mar 21, 2021 9:58 pm
by hmgchang
Thks Mr. edk
Where or how can i have complete _hmg_sysdata info ?

Thks n Rgds
Chang

Re: How to get the system default

Posted: Sun Mar 21, 2021 10:17 pm
by jairpinho
hmgchang wrote: Sun Mar 21, 2021 9:58 pm Thks Mr. edk
Where or how can i have complete _hmg_sysdata info ?

Thks n Rgds
Chang
edk, I would like to know this information too

Re: How to get the system default

Posted: Sun Mar 21, 2021 10:18 pm
by edk
Look into h_init.prg