FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Possible to show a diff. BMP after Btn-Selection ? SOLVED
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Possible to show a diff. BMP after Btn-Selection ? SOLVED
Posted: Sun Jan 03, 2010 02:54 PM
Hello,

I want to show a different BMP of a selected Button ( pressed ).

Normal Display


A clicked Button shows a dotted Line :


I can show different BMP's on Mousemove , Clicked
FILENAME c_path + "\Images\Key.bmp", ;
c_path + "\Images\Key1.bmp", ;
c_path + "\Images\Key2.bmp", ;
c_path + "\Images\Key3.bmp" ;


Possible to show after Clicked ( selected ) a different BMP ( staying visible ) ???


The new Update of the Button-Skin-painter is nearly finished
and includes the ButtonBar- and Button-Creation of Class BtnBMP
The new oButton1:lEllipse = .T. is supported as well.







Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Possible to show a different BMP after Button-Selection ?
Posted: Mon Jan 04, 2010 09:56 AM
I solved the Problem, to show a different BMP for a selected Button
Now it works like Radio-Buttons ( 3 and 5 Group-Buttons ) :



Code (fw): Select all Collapse
// Top Button < oBtn71 > clicked
// Reset of BMP oBtn72, oBtn73, oBtn74 and oBtn75
// ---------------------------------------------------------
REDEFINE BTNBMP oBtn71 ID 810 OF oFld:aDialogs[5]  2007 ;
FILENAME c_path + "\Images\Key.bmp", ; // Gray
                   c_path + "\Images\Key3.bmp" ; // Red
TOP ;
PROMPT "  &Top  " ;
FONT oProgFont ;
ACTION ( nTEXTPOS := 1, ;
            oBtn71:SetFile( c_path + "\Images\Key3.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;
            oBtn72:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;                    
            oBtn73:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;                    
            oBtn74:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;                    
            oBtn75:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ) )

// Left Button < oBtn72 > clicked
// Reset of BMP oBtn71, oBtn73, oBtn74 and oBtn75
// ---------------------------------------------------------
REDEFINE BTNBMP oBtn72 ID 820 OF oFld:aDialogs[5]  2007 ;
FILENAME c_path + "\Images\Key.bmp", ; // Gray
                   c_path + "\Images\Key3.bmp" ; // Red
LEFT ;
PROMPT "  &Left  " ;
FONT oProgFont ;
ACTION ( nBMPPOS := 2, ;
            oBtn72:SetFile( c_path + "\Images\Key3.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;
            oBtn71:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;                    
            oBtn73:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;                    
            oBtn74:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ), ;                    
            oBtn75:SetFile( c_path + "\Images\Key.bmp", ;
                              c_path + "\Images\Key3.bmp" ) )

...
...
...


Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion