RBBTN bitmaps

RBBTN bitmaps

Postby Silvio.Falconi » Tue Aug 07, 2018 2:45 pm

RBBTN want one bitmap or we can change the bitmap ?

sample when I open

@ 3, (::oWndMain:nWidth()-20) RBBTN ::oToolButton ;
PROMPT "ToolBar" ;
SIZE 70,20 ;
BITMAP "TOOLBAR_ON"

when I close

@ 3, (::oWndMain:nWidth()-20) RBBTN ::oToolButton ;
PROMPT "ToolBar" ;
SIZE 70,20 ;
BITMAP "TOOLBAR_off"


any solution ?
i tried also with ::oToolButton:SetFile( "TOOLBAR_ON", "TOOLBAR_OFF" )

on rbtn class there is an error because

before on method setfile you can call 2 files with ::LoadBitmaps( cBmpUpFile, cBmpDownFile )

then on METHOD LoadBitmaps( cName ) you can load one file


I tried also with

IIF(lHide, oApp():oToolButton:SetFile( "TOOLBAR_OFF", "TOOLBAR_OFF" ),;
oApp():oToolButton:SetFile( "TOOLBAR_ON", "TOOLBAR_ON") )

but it not change the bitmap on rbtn
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: RBBTN bitmaps

Postby Antonio Linares » Tue Aug 07, 2018 6:57 pm

Silvio,

From samples\rbdesign.prg we do:

MENUITEM "Select bitmap..." ACTION ( oButton:LoadBitmaps( cGetFile( "*.bmp" ) ), oButton:Refresh() )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests

cron