A problem changing the cursor of METRO-buttons ?

A problem changing the cursor of METRO-buttons ?

Postby ukoenig » Mon Jun 29, 2015 8:16 pm

Hello,

trying to change the cursor on metro-button-focus, I use :

AEval( oMetro:aControls, { | o | o:oCursor := oHand } )

AEval( oMenu1:aControls, { | o | o:oCursor := oHand } )
...
...

it works, but the cursor doesn't change back to arrow, loosing the button-focus.

also tested :

AEval( oMetro:aControls, { | o | IF( o:ClassName() = "TMETROBTN", o:oCursor := oHand, ) } )

but NO difference

with a only a single button it works.

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

Re: A problem changing the cursor of METRO-buttons ?

Postby Antonio Linares » Mon Jun 29, 2015 9:01 pm

Uwe,

Try this:

AEval( oMetro:aControls, { | o | IF( o:ClassName() = "TMETROBTN", ( o:oCursor := oHand, o:bLostFocus := { || o:oCursor := nil } ), ) } )
regards, saludos

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

Re: A problem changing the cursor of METRO-buttons ?

Postby ukoenig » Tue Jun 30, 2015 7:15 am

Antonio,

thank You very much.

The problem :
there is NO response in metrobutton
with using bGotfocus or bLostfocus.

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.
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: No registered users and 26 guests