GX Developers:

After thinking about Ignatiev's problem, I have expanded the ability of
users to specify their own fonts for GX dialogs: As of the version AFTER
v5.0.8, the dgw.gxh file will include the following note:

// Setting Fonts in GX dialogs.
//
// By default, "new look" GX dialogs uses the "Tahoma" font. This font can
be
// overridden by specifying the following parameters in the 
// oasismontaj\user\ini\geosoft.ini file, under the [MONTAJ] settings:
//
// GX_FONT="Font_name"
//
// This sets the default font to "Font_name". It applies to text in all 
// components of the dialog.
//
// Additional customization of individual components can be accomplished 
// using the following parameters:
//
// GX_CAPTION_FONT="Caption_Font": Font for the field captions (labels)
// GX_BUTTON_FONT="Button_Font"  : Font for buttons, including the "Browse"
button
// GX_TITLE_FONT="Title_Font"    : Font for special titles (see
SetTitle_DGW).

// The font used for the text in edit windows remains the default, or the
value 
// specified using GX_FONT.
//
// Note that the "OK" button, and the Title, use "Bold" versions of the 
// specified font. If the bolded version does not exist as a normal font, 
// then the operatin system may provide its own alternative which may not 
// appear the same as you expect.

//-------------------------------------------------------------------------

**** Remember - except for the "GX_FONT" parameter, the rest will not become
available until the version FOLLOWING v5.0.8.

I also discovered an undocumented feature of the SetTitle_DGW function,
which might be of use to someone. I updated the header notes for
SetTitle_DGW to include it. This is available now:

//-------------------------------------------------------------------------
// SetTitle_DGW : Changes the title of the dialog.
//
// Returns:       Nothing.
//
// Notes:      A "Special", additional title can be added to a dialog by
using 
//             the following syntax:
//
//             SetTitle_DGW(Diag, "Window Title\nAdditional Title");  
//
//             In the title argument, a line break character '\n' is used to
//             separate the parts.
//
//             The window title appears as the title in the upper bar of the
dialog.
//             The additional title appears below this, in the main body of
the
//             dialog, and is separated from the rest of the fields by a
horizontal
//             line. It is printed in the bold version of the default font
(or of the
//             special font specified using the MONTAJ.GX_FONT parameter
noted
//             above in "Setting Fonts in GX dialogs."

[app] int 
SetTitle_DGW ( DGW,       // Dialogue
              string);    // Title to set



Stephen Cheesman
Geosoft Inc.


-----Original Message-----
From: Stephen Cheesman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 9:15 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [gxnet]: Cyrillic fonts


Ignatiev:

You can select the font that will be used for all GX text (except the title
bar in the window itself) by altering the "GX_FONT" setting in the [MONTAJ]
group in your geosoft.ini file in your oasismontaj\user\ini director.

For instance, change it to:

GX_FONT="Cyrillic"

if "Cyrillic" is the font name (I don't have it, so I don't know which one
you actually need).

You must shut down montaj and restart it for the changes to take effect.

There is no way to specify titles, text, and button text individually; the
same font will be used for all of these.

Stephen Cheesman
Geosoft Inc.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 4:29 AM
To: [EMAIL PROTECTED]
Subject: [gxnet]: Cyrillic fonts


Hello.
Writing new GX with grc, gxc we have faced with the following problem.
We are unable to change font for resources (for example FORM). We need
Cyrillic font displays properly in TITLE parameter and text of EDIT,
LEDIT components. How can we use appropriate font for our purposes
(for example TT Courier New Cyr).

Best regards,
Ignatiev Stas                           mailto:[EMAIL PROTECTED]



_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/[email protected]
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/[email protected]
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/[email protected]

Reply via email to