// Testing Win32 XP Theme-aware bitmaped buttons
// Important: Use standard buttons on the resources!
#include "FiveWin.ch"
#define COLOR_BTNFACE 15
//----------------------------------------------------------------------------//
function Main()
local oWnd, oBtnBmp
DEFINE WINDOW oWnd TITLE "FiveWin Xp Theme-aware bitmaped buttons" ;
COLOR 0, GetSysColor( COLOR_BTNFACE )
@ 2, 2 BUTTONBMP oBtnBmp OF oWnd ACTION MsgInfo( "XP themes aware Button Bitmaps" ) ;
BITMAP "..\bitmaps\16x16\garrow.bmp"
@ 4, 2 BUTTONBMP oBtnBmp OF oWnd ACTION MsgInfo( "XP themes aware Button Bitmaps" ) ;
BITMAP "..\bitmaps\16x16\garrow.bmp" PROMPT "Test" TEXTRIGHT SIZE 80, 25 ;
MESSAGE "From source code"
@ 6, 2 BUTTON "From Resources" OF oWnd SIZE 90, 25 ACTION FromResources()
DEFINE STATUSBAR OF oWnd PROMPT "StatusBar"
ACTIVATE WINDOW oWnd
return nil
//----------------------------------------------------------------------------//
function FromResources()
local oDlg
DEFINE DIALOG oDlg RESOURCE "Test"
REDEFINE BUTTONBMP ID 10 OF oDlg ;
ACTION MsgInfo( "XP themes aware Button Bitmaps" ) ;
BITMAP "..\bitmaps\16x16\garrow.bmp"
ACTIVATE DIALOG oDlg
return nil
//----------------------------------------------------------------------------//
@ 4, 2 BUTTONBMP oBtnBmp OF oWnd ACTION MsgInfo( "XP themes aware Button Bitmaps" ) ;
BITMAP "..\bitmaps\16x16\garrow.bmp" PROMPT "Test" TEXTRIGHT SIZE 80, 25 ;
MESSAGE "From source code"
oBtnBmp:cToolTip = "Tooltip text"
Return to Bugs report & fixes / Informe de errores y arreglos
Users browsing this forum: No registered users and 3 guests