ToolBar ( TO Antonio )

ToolBar ( TO Antonio )

Postby lailton.webmaster » Thu Feb 18, 2010 12:53 am

Hi Antonio,

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

Image

Thanks
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: ToolBar ( TO Antonio )

Postby James Bott » Thu Feb 18, 2010 2: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: ToolBar ( TO Antonio )

Postby lailton.webmaster » Thu Feb 18, 2010 4: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.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: ToolBar ( TO Antonio )

Postby James Bott » Thu Feb 18, 2010 6:54 am

Do you mean like this?

Image

Code: Select all  Expand view  RUN
// Purpose: Sample buttonbar with gradient background
// Author : James Bott, jbott@compuserve.com
// 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 ::oMessage:add()
      menuItem "Event..."
      menuItem "Contact..." //action ::oContact:add()
      menuItem "Charge..." //resource "dollar" action ::oCharge:add()
      menuItem "Matter..." //action ::oCase:add()
      menuItem "Document..."
      menuItem "Task..." //resource "task" action ::oTask:add()
      menuItem "Note..."
      menuItem "Reminder..."
   endmenu
return oMenu

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

Re: ToolBar ( TO Antonio )

Postby lailton.webmaster » Thu Feb 18, 2010 8:55 am

yeah

thanks
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: ToolBar ( TO Antonio )

Postby ukoenig » Thu Feb 18, 2010 7: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.

Image

Image

Best regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: ToolBar ( TO Antonio )

Postby lailton.webmaster » Thu Feb 18, 2010 8:59 pm

Sure friends, color is solved by james,
and about this, what do you tell me ?

Image

How make this ? :D
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: ToolBar ( TO Antonio )

Postby ukoenig » Thu Feb 18, 2010 10:33 pm

James has shown with his example, how to define a Popup-Menue :

Image

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 :lol:
Last edited by ukoenig on Thu Feb 18, 2010 10:42 pm, edited 1 time in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: ToolBar ( TO Antonio )

Postby lailton.webmaster » 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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: ToolBar ( TO Antonio )

Postby ukoenig » 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 :

Image

Best Regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: ToolBar ( TO Antonio )

Postby lailton.webmaster » Thu Feb 18, 2010 11:35 pm

:)

Yes, i wanna this, more native in fwh,

is it possible ?
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: ToolBar ( TO Antonio )

Postby James Bott » Fri Feb 19, 2010 2:53 am

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

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

Re: ToolBar ( TO Antonio )

Postby lailton.webmaster » Sat Feb 20, 2010 4:20 pm

Waiting for Antonio see this post.

think that he can make this.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: ToolBar ( TO Antonio )

Postby Antonio Linares » Sat Feb 20, 2010 4: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

Image
regards, saludos

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

Re: ToolBar ( TO Antonio )

Postby Otto » Sat Feb 20, 2010 5: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests