#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd;
ON CLICK TEST()
RETURN NIL
STATIC FUNCTION TEST()
LOCAL oDlg
LOCAL cVar := SPACE( 10 )
LOCAL i
DEFINE DIALOG oDlg;
SIZE 900, 600;
TITLE "Test"
FOR i = 0 TO 59
@ i % 20 * 15, 150 * INT( i / 20 ) GET cVar PIXEL
@ i % 20 * 15, 150 * INT( i / 20 ) + 50 BUTTON "Test" + LTRIM( STR( i ) ) PIXEL
@ i % 20 * 15, 150 * INT( i / 20 ) + 100 IMAGE SIZE 30, 10 PIXEL
NEXT
oDlg:bStart = { || oDlg:aControls[ 2 ]:SetFocus() }
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
case nMsg == WM_UPDATEUISTATE // buttons, radios and checkboxes were erased when pressing ALT
nResult = Super:HandleEvent( nMsg, nWParam, nLParam )
if Upper( ::ClassName() ) == "TBTNBMP"
::Refresh()
endif
::oWnd:Refresh() // This one !!!
return nResult
buttons, radios and checkboxes were erased when pressing ALT
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
DEFINE BUTTONBAR OF oWnd 2007
DEFINE BUTTON;
OF oWnd:oBar;
FILE "C:\FWH\BITMAPS\OPEN.BMP";
ACTION MYDIALOG()
ACTIVATE WINDOW oWnd
RETURN NIL
STATIC FUNCTION MYDIALOG()
LOCAL oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg;
ON INIT TOOLBAR( oDlg );
CENTER
RETURN NIL
STATIC FUNCTION TOOLBAR( oDlg )
DEFINE BUTTONBAR OF oDlg 2007
DEFINE BUTTON;
OF oDlg:oBar;
FILE "C:\FWH\BITMAPS\CLOSE.BMP";
ACTION oDlg:End()
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 44 guests