FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A problem changing the cursor of METRO-buttons ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A problem changing the cursor of METRO-buttons ?
Posted: Mon Jun 29, 2015 08: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.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: A problem changing the cursor of METRO-buttons ?
Posted: Mon Jun 29, 2015 09: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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A problem changing the cursor of METRO-buttons ?
Posted: Tue Jun 30, 2015 07: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.

Continue the discussion