FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ToolBar ( TO Antonio )
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 12:53 AM
Hi Antonio,

How make a toolbar this style in fwh ?
is possible ?



Thanks
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 02:27 AM

Lailton,

Well it looks like a regular FW buttonbar. Is there something about it that you don't know how to do, like separators, drop-down menus, icons, color?

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 04:10 AM

James,

No, i wanna a toolbar the same of picture, ( Style )
I try using ToolBar sample more style not is good

Item, icone, separator i know make, more i wanna use buttonbar with style futuristic, beautiful more withuot use
ocx, skin etc..

thanks.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 06:54 AM
Do you mean like this?



Code (fw): Select all Collapse
// Purpose: Sample buttonbar with gradient background
// Author : James Bott, <!-- e --><a href="mailto:jbott@compuserve.com">jbott@compuserve.com</a><!-- e -->
// Date   : 2/17/2010

#include "fivewin.ch"

function main()
   local oWnd, oBar, oBmp

   define bitmap oBmp file "bar.bmp"

   define window oWnd title "Test Buttonbar"

   define buttonbar oBar size 26,26 of oWnd 2007
   oBar:bClrGrad:={| lInvert | if(! lInvert,;
                      { { 0.75, nRGB( 255, 255, 255 ), nRGB( 230, 230, 230 ) },;
                      { 0.25, nRGB( 230, 230, 230 ), nRGB( 238, 238, 238 ) } },;
                      { { 0.25, nRGB( 255, 253, 222 ), nRGB( 255, 231, 151 ) },;
                      { 0.75, nRGB( 255, 215,  84 ), nRGB( 255, 233, 162 ) } } ) }

   define button of oBar file "search.bmp" noborder
   define button of oBar file "sort.bmp" noborder
   define button of oBar file "searchb.bmp" noborder group
   define button of oBar file "searchf.bmp" noborder
   define button of oBar file "srchfldr.bmp" noborder group
   define button of oBar file "around.bmp" noborder group menu newmenu()


   activate window oWnd

return nil

//---------------------------------------------------------------------------//

function NewMenu()
   local oMenu
   menu oMenu popup
      menuItem "Mail Message" resource "newmail" //action ::add()
      menuItem "Event..."
      menuItem "Contact..." //action ::add()
      menuItem "Charge..." //resource "dollar" action ::add()
      menuItem "Matter..." //action ::add()
      menuItem "Document..."
      menuItem "Task..." //resource "task" action ::add()
      menuItem "Note..."
      menuItem "Reminder..."
   endmenu
return oMenu

//---------------------------------------------------------------------------//
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 08:55 AM

yeah

thanks

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 07:24 PM
With the next Buttontool-Update it is possible,
to create, add and test different Menue-Styles for a Buttonbar.
A new Menue-Painter is added to the Bar-Section.





Best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 08:59 PM
Sure friends, color is solved by james,
and about this, what do you tell me ?



How make this ? :-)
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 10:33 PM
James has shown with his example, how to define a Popup-Menue :



DEFINE BUTTON oBtn3 OF oBar FILE "Bitmap3.bmp" MENU newmenu() ;
...
...
it creates a small extra Button right-hand side to the Main-Button.
It is just a small arrow and hard to see. Maybe James knows a Solution, if it is possible to change this ?

With the Bitmap on the left-hand side, You want to grab and move the Buttonbar ?

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 10:41 PM

Not :cry: , it´s default of fivewin.
I already knew how add menu, item etc..

I wanna the same result of picture, ( CHANGE STYLE OF TOOLBAR )

And yes, i want can move too.

later i wanna use four toolbar side by side.
i do it today using ocx. more i want try remove ocx of my app and use only fwh native,
more to this i need this feature.

Thanks

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 11:25 PM
I understand

We need 2 extra Buttons : one on the left-hand side to move the Bar and another
one on the right-hand side to config the Bar with 2 Options : 1. resize Buttons, 2. add/delete a Button from Bar.

I found a example to explain :



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: ToolBar ( TO Antonio )
Posted: Thu Feb 18, 2010 11:35 PM

Yes, i wanna this, more native in fwh,

is it possible ?

:)

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: ToolBar ( TO Antonio )
Posted: Fri Feb 19, 2010 02:53 AM

I don't think these things are possible without changes to the FW source. These changes would be welcome.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: ToolBar ( TO Antonio )
Posted: Sat Feb 20, 2010 04:20 PM

Waiting for Antonio see this post.

think that he can make this.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ToolBar ( TO Antonio )
Posted: Sat Feb 20, 2010 04:32 PM
Lailton,

FWH provides standard support for Windows Toolbars and Rebars. Please review FWH\samples\Rebars.prg, though actually seems to be crashing with 10.1 (or it may be Windows 7).

We need to check it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: ToolBar ( TO Antonio )
Posted: Sat Feb 20, 2010 05:37 PM

Hello lailton,
have you thought to change to FIVEWIN RibbonBar. I think this is the way to go for navigation.
Best regards,
Otto