FWH built-in RibbonBar !

FWH built-in RibbonBar !

Postby Antonio Linares » Tue Apr 28, 2009 8:41 am

Please have a look at next FWH built-in RibbonBar :-)
Image

Image
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: FWH built-in RibbonBar !

Postby anserkk » Tue Apr 28, 2009 10:40 am

Dear Mr.Antonio,

Its a good news and the Ribbonbar control looks really cool :D

FWH's own inbuilt control and no need to use 3rd party OCX controls. :D

Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: FWH built-in RibbonBar !

Postby James Bott » Wed Apr 29, 2009 11:46 pm

Very impressive Antonio!

Can we see some sample source code--not the ribbon source, but a sample of using it?

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: FWH built-in RibbonBar !

Postby Antonio Linares » Fri May 01, 2009 8:34 am

James,

Here you have a simple test:
Code: Select all  Expand view

#include "fivewin.ch"

function Main()

   local oRibbonBar, oGroup1, oGroup2, oGroup3, oGroup4, oBtn1, oBtn2, oBtn3, oBtn5

  DEFINE WINDOW oWnd TITLE "FWH RibbonBar"

   oRibbonBar := TRibbonBar():New( oWnd )

   oWnd:oTop := oRibbonBar
   
   oGroup1 := oRiBbonBar:AddGroup( 150, "Group 1" )
   oGroup2 := oRiBbonBar:AddGroup( 150, "Group 2" )
   oGroup3 := oRiBbonBar:AddGroup( 150, "Group 3" )
   oGroup4 := oRiBbonBar:AddGroup( 150, "Group 4" )
   
   oBtn1 := oGroup1:AddButton( 2,  2, 90, 60, "Test", { || nil },,, "keys.bmp" )
   oBtn2 := oGroup2:AddButton( 2, 62 , 90, 60, "Test", { || nil }, 3,, "keys.bmp" )
   oBtn3 := oGroup2:AddButton( 2,  2, 90, 60, "Test", { || nil },,, "keys.bmp", .T., .F. )
   oBtn4 := oGroup2:AddButton( 2, 64, 90, 60, "Test", { || nil },, 3,, "keys.bmp", .T., .T. )
   oBtn5 := oGroup3:AddButton( 2, 2, 90, 60, "", {|| nil },,, "lock.bmp" )

   ACTIVATE WINDOW oWnd  

return nil
 
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


Return to FiveWin for Harbour/xHarbour

Who is online

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