Fontsizes in resources

Fontsizes in resources

Postby driessen » Sat Aug 19, 2023 9:05 am

Hello,

In my resource file, a dialog box starts like this :
Code: Select all  Expand view  RUN
1_BG_PARAM01 DIALOG 10, 22, 442, 325
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
CLASS "BorDlg_Gray"
CAPTION "KANTOORGEGEVENS - ADRESGEGEVENS BOEKHOUDING"
FONT 10, "MS Sans Serif"
So, the font size in this dialog box is defined 10.

Is there a possibility to overrule this fontsize in my FWH-application?

Thanks a lot in advance for any help.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Fontsizes in resources

Postby nageswaragunupudi » Sat Aug 19, 2023 10:22 am

Code: Select all  Expand view  RUN
DEFINE DIALOG oDlg RESOURCE <res> FONT oFont
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10655
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Fontsizes in resources

Postby driessen » Sat Aug 19, 2023 11:36 am

Thanks for your reaction.

I already tried that of course, but that doesn't work like I want it to.

If I enlarge the fontsize in the resource, the dialog box will enlarge too, together with all the used letters in the dialog box.

If I define oFont like you told me to and I enlarge the fontsize, then the letters in the dialog box become bigger, but the size of the dialog box doesn't change at all.

I want to overrule the fontsize in the resource.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Fontsizes in resources

Postby karinha » Sat Aug 19, 2023 3:31 pm

Michel, For each SCREEN RESOLUTION, you must CREATE A DIFFERENT DIALOGUE and call the corresponding dialog for each SCREEN RESOLUTION.

Para cada RESOLUCIÓN DE PANTALLA, debe CREAR UN DIÁLOGO DIFERENTE y llamar al diálogo correspondiente para cada RESOLUCIÓN DE PANTALLA.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7835
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Fontsizes in resources

Postby driessen » Sat Aug 19, 2023 3:38 pm

Thanks.

That is clear to me.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 25 guests