Hi,
is there a FWH build-in class to make this ? See
#include "fivewin.ch"
#include "ribbon.ch"
Function main()
local oWnd
local oBtn1
DEFINE WINDOW oWnd TITLE "TTitle Class Test"
@ 20, 10 RBBTN oBtn1 OF oWnd BITMAP "24exit.bmp";
SIZE 100, 25 PROMPT "Test " TRANSPARENT MOSTLEFT;
ACTION ChangeWndColor(oWnd)
activate window oWnd maximized
return nil
Function ChangeWndColor(oWnd)
oWnd:Setcolor(nil, nrgb(199,213,239))
oWnd:Refresh()
return
#include "fivewin.ch"
#include "ribbon.ch"
Function main()
local oWnd
local oBtn1
DEFINE WINDOW oWnd TITLE "TTitle Class Test"
@ 20, 10 RBBTN oBtn1 OF oWnd BITMAP "24exit.bmp";
SIZE 100, 25 PROMPT "Test " TRANSPARENT MOSTLEFT;
ACTION ( ChangeWndColor(oWnd), ChangeBTNColor( oWnd ) )
activate window oWnd maximized
return nil
Function ChangeWndColor(oWnd)
oWnd:Setcolor(nil, nrgb(199,213,239))
oWnd:Refresh()
return
Function ChangeBTNColor( oWnd )
local n, oBtn
if ! Empty( oWnd:aControls )
for n = 1 to Len( oWnd:aControls )
if oWnd:aControls[ n ]:Classname == "TRBTN"
oBtn = oWnd:aControls[ n ]
DeleteObject( oBtn:hBack )
oBtn:hBack := CreateSolidBrush( nrgb(199,213,239) )
oBtn:ReleaseDC()
endif
next
endif
return nil
ukoenig wrote:Marco,
You can create Your own Buttonbar and display inside any Control on any Place You like.
Best Regards
Uwe
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 86 guests