RIBBON NATIVA AVANCES

Re: RIBBON NATIVA AVANCES

Postby Otto » Sun Jan 03, 2010 8:25 pm

Hello Antonio,
I changed the navigation from buttonbar to ribbon.
The ribbon works much better (more fluent) than my old ribbon imitation.
Antonio for a production-system I would need most the navigation with keyboard.
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: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: RIBBON NATIVA AVANCES

Postby Antonio Linares » Mon Jan 04, 2010 1:34 am

Otto,

We are working on a Method KeybMode() that first of all may show those little buttons with the letters.

This is still a work in progress but here you can review it:
Code: Select all  Expand view

METHOD KeybMode() CLASS TRibbonBar

   local oPanel, oBtn

   oPanel = TXPanel():New( 0, 0, ::nHeight(), ::nWidth(), ::oWnd )

   SetWindowLong( oPanel:hWnd, GWL_EXSTYLE, nOr( GetWindowLong( ::hWnd, GWL_EXSTYLE ), WS_EX_TRANSPARENT ) )

   BringWindowToTop( oPanel:hWnd )
   
   @ 20, 20 BTNBMP oBtn SIZE 20, 20 OF oPanel 2007

return nil

CLASS TXPanel FROM TPanel

   METHOD Paint() VIRTUAL

ENDCLASS
 

The idea is to place a transparent Panel on top of the Ribbon, so we can place some BtnBmps (or standard Buttons with accelerators) and the user may select the accelerator for each little button.
regards, saludos

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

Re: RIBBON NATIVA AVANCES

Postby Otto » Mon Jan 04, 2010 7:35 am

Antonio,
wouldn't
oPanel:SayBitmap(...)
oPanel:Say(...)
be better for speed reason?
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: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: RIBBON NATIVA AVANCES

Postby Antonio Linares » Mon Jan 04, 2010 8:24 am

Otto,

We can't use those cause the transparency attribute of the panel that we are using

Maybe we could set transparency for just one color, but anyhow we need accelerators there.
regards, saludos

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

Re: RIBBON NATIVA AVANCES

Postby MdaSolution » Tue Jan 05, 2010 5:08 pm

Mr Otto,
wich color you used for this test sample ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 92 guests