BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: BCB 5.0 Main Menu in a Toolbar?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
OBones
Guest





PostPosted: Thu Jan 06, 2005 8:06 pm    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote



Stephen R. Phillips wrote:

Quote:
Greetigns I would like to have a standard main menu in a tool bar such as
how the IDE in BCB 5.0 has it. The best I could do was create the main menu
and not assign it to the form then create bottons on the tool bar that
pointed to the menus. This just doesn't seem the best method too me.
Suggestions anyone?

In BCB6, the TToolbar has a Menu property, and the code does just this.
Unfortunately, BCB5 does not provide this. However, the TJvToolbar in
the JVCL 3 has added this ability among other things to the basic TToolbar.

This library of open source (MPL) components is available here:

http://jvcl.sf.net/

Cheers

Olivier Sannier
JVCL Coordinator

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Jan 06, 2005 8:39 pm    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote




"Stephen R. Phillips" <cyberman (AT) socket (DOT) net> wrote


Quote:
Greetigns I would like to have a standard main menu in a tool bar

You cannot. TMainMenu can only be placed on a form directly.

Quote:
such as how the IDE in BCB 5.0 has it.

That is not how the IDE does it. The IDE uses a TControlBar with a TToolBar
in it.


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jan 07, 2005 12:41 am    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote




"Stephen R. Phillips" <cyberman (AT) socket (DOT) net> wrote


Quote:
That is exactly how I did it yet the short cut keys do not work.

What is your EXACT setup?

Quote:
I set the buttons grouped to do that cute 'indent' thing

What are you talking about?

Quote:
Is it possible the messages aren't being sent to TmainMenu object
which probably is what sends the messages to the submenus?

Why are you still trying to use TMainMenu? I already stated earlier that it
does not support what you are asking for.


Gambit



Back to top
OBones
Guest





PostPosted: Fri Jan 07, 2005 7:44 am    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote

Stephen R. Phillips wrote:

Quote:
Actually I'm not but I'm wondering if the submenu short cut keys aren't
working because the TMainMenu is not attached to the main form and thus
isn't getting the keypress events.

Well, the thing is that to make this work you have to create popup menus
that you assign to the buttons. The way it's done in V6 ToolBar is to
create a temporary PopupMenu when the button is pressed, then assign it
to the ToolButton. The TJvToolbar does this as well, in a similar way.

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jan 07, 2005 6:26 pm    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote


"Stephen R. Phillips" <cyberman (AT) socket (DOT) net> wrote


Quote:
I am using a TControlBar with a TToolBar placed on it and
a series of TToolButtons placed on the TToolBar coresponding
to each of the 'horizontal' menu items in TMainMenu, the Menu
property is assigned to these menus.

Don't use TMainMenu for that. Use separate TPopupMenu instances instead.


Gambit



Back to top
Nathaniel L. Walker
Guest





PostPosted: Sat Jan 08, 2005 9:24 am    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote

Does JVCL work with BCB 4 Pro?

"OBones" <obones_ssspp (AT) fsdqfs_altern (DOT) org> wrote

Quote:
Stephen R. Phillips wrote:

Greetigns I would like to have a standard main menu in a tool bar such
as
how the IDE in BCB 5.0 has it. The best I could do was create the main
menu
and not assign it to the form then create bottons on the tool bar that
pointed to the menus. This just doesn't seem the best method too me.
Suggestions anyone?

In BCB6, the TToolbar has a Menu property, and the code does just this.
Unfortunately, BCB5 does not provide this. However, the TJvToolbar in
the JVCL 3 has added this ability among other things to the basic
TToolbar.

This library of open source (MPL) components is available here:

http://jvcl.sf.net/

Cheers

Olivier Sannier
JVCL Coordinator



Back to top
OBones
Guest





PostPosted: Sat Jan 08, 2005 11:12 am    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote

Nathaniel L. Walker wrote:

Quote:
Does JVCL work with BCB 4 Pro?

I don't think so.
The JVCL 3 is working with and tested against BCB 5 and up, Delphi 5 and up.
Maintaining compatibility with such an old version of the VCL would mean
that a lot of functionnalities are lost and a coding overhead for which
we don't have the resources.

Sorry about that

Olivier Sannier
JVCL Coordinator

Back to top
Fishface
Guest





PostPosted: Sat Jan 08, 2005 6:27 pm    Post subject: Re: BCB 5.0 Main Menu in a Toolbar? Reply with quote

Stephen R. Phillips wrote:
Quote:
Greetigns I would like to have a standard main menu in a tool bar such as
how the IDE in BCB 5.0 has it. The best I could do was create the main
menu and not assign it to the form then create bottons on the tool bar that
pointed to the menus. This just doesn't seem the best method too me.
Suggestions anyone?

Dis wat chew on?
http://community.borland.com/article/0,1410,18082,00.html



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.