Hover bitmap like WINDOWS 8

Hover bitmap like WINDOWS 8

Postby Otto » 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
Image
Last edited by Otto on Wed May 02, 2012 4:53 am, edited 1 time in total.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Hover bitmap like WINDOWS 8

Postby Otto » 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: Select all  Expand view
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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Hover bitmap like WINDOWS 8

Postby Otto » Wed May 02, 2012 4:51 am

Hello Antonio,
also in fivewin-touch-demo this hover effect is missing.
Best regards,
Otto

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Hover bitmap like WINDOWS 8

Postby Antonio Linares » Wed May 02, 2012 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Hover bitmap like WINDOWS 8

Postby Otto » Wed May 02, 2012 10:31 am

Hello Antonio,
do you plan to extend fivewin-touch that we get this feature.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Hover bitmap like WINDOWS 8

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Hover bitmap like WINDOWS 8

Postby Otto » Wed May 02, 2012 11:19 am

Hello Antonio,
great. Thank you.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 103 guests