- Code: Select all Expand view
- #include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg, oFld, oBtn
LOCAL lVar := .F.
DEFINE DIALOG oDlg;
RESOURCE "FOLDER"
REDEFINE FOLDER oFld;
ID 101 OF oDlg;
PROMPTS "Test";
DIALOGS "TEST"
REDEFINE BTNBMP;
ID 101 OF oFld:aDialogs[ 1 ];
FILE "\fwh\bitmaps\open.bmp";
NOBORDER
REDEFINE CHECKBOX lVar;
ID 102 OF oFld:aDialogs[ 1 ]
REDEFINE BUTTON oBtn PROMPT "&Close";
ID 201 OF oFld:aDialogs[ 1 ];
ACTION oDlg:End()
REDEFINE BTNBMP;
ID 102 OF oDlg;
FILE "\fwh\bitmaps\open.bmp";
NOBORDER
REDEFINE BUTTON;
ID 201 OF oDlg;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
- Code: Select all Expand view
- FOLDER DIALOG 49, 52, 365, 295
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Folder test"
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
CONTROL "", 101, "SysTabControl32", 0 | WS_CHILD | WS_VISIBLE, 5, 5, 265, 195
PUSHBUTTON "&Close", 201, 5, 275, 40, 15
CONTROL "", 102, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 280, 5, 30, 25
}
TEST DIALOG 49, 52, 365, 295
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
{
CONTROL "", 101, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 10, 10, 30, 25
AUTOCHECKBOX "Checkbox", 102, 97, 74, 60, 12
PUSHBUTTON "Button", 201, 103, 134, 50, 14
}
EMG