cambio graduale di luminosità in ribbonbar

Moderator: Enrico Maria Giordano

Post Reply
marzio
Posts: 129
Joined: Wed Apr 04, 2007 6:54 am

cambio graduale di luminosità in ribbonbar

Post by marzio »

E' possibile ottenere un cambio graduale di luminosità quando il mouse è posizionato su un gruppo della ribbonbar, come avviene in office?
grazie
marzio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: cambio graduale di luminosità in ribbonbar

Post by Antonio Linares »

Marzio,

Could you please provide a screenshot ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
marzio
Posts: 129
Joined: Wed Apr 04, 2007 6:54 am

Re: cambio graduale di luminosità in ribbonbar

Post by marzio »

it is necessary a video not a screenshot.
when you move the mouse cursor over a group in fivewin's ribbonbar the group became brightness instantly.
in word 2007 (and other office program) the group became brightness slowly (in half or one second).
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: cambio graduale di luminosità in ribbonbar

Post by Antonio Linares »

This is the code currently used to paint a RibbonBar panel:

Code: Select all

METHOD Paint() CLASS TRPanel

   local aInfo    
   local aRect :=  GetClientRect( ::hWnd )
   
   aInfo := ::DispBegin()   
   
   FillRect( ::hDC, GetClientRect( ::hWnd ), ::hBack )

   ::DispEnd( aInfo )
   
return NIL
We should figure out how to delay it.

Does the color intensity changes progressively in such little time ?
regards, saludos

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

Re: cambio graduale di luminosità in ribbonbar

Post by Antonio Linares »

neither in Windows 10 Ms Paint RibbonBar
regards, saludos

Antonio Linares
www.fivetechsoft.com
marzio
Posts: 129
Joined: Wed Apr 04, 2007 6:54 am

Re: cambio graduale di luminosità in ribbonbar

Post by marzio »

Secondo me la grafica di office in 2010 e 2013 è molto peggiorata,
microsoft non sa più cosa fare di nuovo. quando le finestre non sono a pieno schermo sono poco distinguibili da quello che c'è dietro.
comunque si in meno di un secondo fa una animazione probabilmente di alcune gradazioni di azzurro di diversa luminosità,
anche quando togli il mouse dal gruppo fa una animazione inversa da chiaro a scuro.

In fact the graphics in office 2010 and 2013 is much worse, microsoft no longer knows what to do new.
When a windows or a dialog are not in full screen are hardly distinguishable from what is behind.
However, in less than a second makes an animation probably some shades of blue vary in brightness.
even when you move away the mouse from the Group, it makes a reverse animation from light to dark.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: cambio graduale di luminosità in ribbonbar

Post by Antonio Linares »

To implement an animation we should use a timer.

Thinking about it...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: cambio graduale di luminosità in ribbonbar

Post by Silvio.Falconi »

or use sleep ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: cambio graduale di luminosità in ribbonbar

Post by Antonio Linares »

that would block the application execution
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply