FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Fontsizes in resources
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Fontsizes in resources
Posted: Sat Aug 19, 2023 09:05 AM
Hello,

In my resource file, a dialog box starts like this :
Code (fw): Select all Collapse
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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Fontsizes in resources
Posted: Sat Aug 19, 2023 10:22 AM
Code (fw): Select all Collapse
DEFINE DIALOG oDlg RESOURCE <res> FONT oFont
Regards



G. N. Rao.

Hyderabad, India
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Fontsizes in resources
Posted: 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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Fontsizes in resources
Posted: Sat Aug 19, 2023 03: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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Fontsizes in resources
Posted: Sat Aug 19, 2023 03:38 PM

Thanks.

That is clear to me.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion