PRG 1:
- Code: Select all Expand view
- #include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg;
RESOURCE "TEST"
REDEFINE BUTTON;
ID 201 OF oDlg
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
RC 1:
- Code: Select all Expand view
- TEST DIALOG 0, 0, 300, 300
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Test"
FONT 12, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
CONTROL "Test", 201, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 20, 265, 41, 16
}
PRG 2:
- Code: Select all Expand view
- #include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oBrw
DEFINE DIALOG oDlg;
RESOURCE "TEST"
REDEFINE XBROWSE oBrw;
ID 101 OF oDlg
( oBrw )
REDEFINE BUTTON;
ID 201 OF oDlg
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
RC 2:
- Code: Select all Expand view
- TEST DIALOG 0, 0, 300, 300
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Test"
FONT 12, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
CONTROL "Test", 201, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 20, 265, 41, 16
CONTROL "", 101, "TXBrowse", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 10, 10, 275, 245
}
The second sample doesn't honour the font size defined in the RC file. It looks like the presence of TXBrowse prevents it.
Any workaround?
EMG