Possible to show a diff. BMP after Btn-Selection ? SOLVED

Possible to show a diff. BMP after Btn-Selection ? SOLVED

Postby ukoenig » Sun Jan 03, 2010 2:54 pm

Hello,

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

Normal Display
Image

A clicked Button shows a dotted Line :
Image

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" ;
Image

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

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.

Image

Image

Image

Best Regards
Uwe :lol:
Last edited by ukoenig on Mon Jan 04, 2010 9:59 am, edited 1 time in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Possible to show a different BMP after Button-Selection ?

Postby ukoenig » Mon Jan 04, 2010 9: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 ) :

Image

Code: Select all  Expand view

// 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 :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 108 guests