FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Hover bitmap like WINDOWS 8
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Hover bitmap like WINDOWS 8
Posted: Sun Apr 29, 2012 11:00 PM
Hello Antonio,
can you please show how to make a hover effect like in Windows 8.
Thanks in advance
Otto
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Hover bitmap like WINDOWS 8
Posted: Tue May 01, 2012 10:30 PM
Hello,

Background is painted in method paint with:
GradientFill( ::hDC, 1, 1, ::nHeight, ::nWidth - If(::lRound,2,0), eval( ::bClrGradNormal, ::lPressed ) )
Is it possible to have a round gradient?
Thanks in advance
Otto


Code (fw): Select all Collapse
if ::lMOver .and. nTypeButton != 3
    
        do case
           case nTypeButton == TYPE_NORMAL

              if ::lSelected
                  GradientFill( ::hDC, 1, 1, ::nHeight, ::nWidth - If(::lRound,2,0), eval( ::bClrGradSelectPress, ::lPressed ) )   
              else
                  GradientFill( ::hDC, 1, 1, ::nHeight, ::nWidth - If(::lRound,2,0), eval( ::bClrGradNormal, ::lPressed ) )  
                  
                   
             endif
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Hover bitmap like WINDOWS 8
Posted: Wed May 02, 2012 04:51 AM
Hello Antonio,
also in fivewin-touch-demo this hover effect is missing.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Hover bitmap like WINDOWS 8
Posted: Wed May 02, 2012 08:19 AM

Otto,

The hover effect is when the mouse is over the text or simply when the mouse is over the image ?

I am afraid two images may be needed to switch them, or to modify the function DrawTransparent() to apply a filter to the transparent area. Some research would be needed for this, to find the right way to do it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Hover bitmap like WINDOWS 8
Posted: Wed May 02, 2012 10:31 AM

Hello Antonio,
do you plan to extend fivewin-touch that we get this feature.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Hover bitmap like WINDOWS 8
Posted: Wed May 02, 2012 11:12 AM

Otto,

Yes, we can try to find a way to implement it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Hover bitmap like WINDOWS 8
Posted: Wed May 02, 2012 11:19 AM

Hello Antonio,
great. Thank you.
Best regards,
Otto

Continue the discussion