Solved

TdxBarManager - adding a break line to menu at runtime

Posted on 2004-10-14
2
1,526 Views
Last Modified: 2008-01-09
Hi!
Im using Dev Express TdxBarManager for my main menu. My problem is that I cannot (dont know how to) insert menu break at runtime.
With TMainMenu its simple. You just put - as a caption for menu item and the line is drawn automaticaly. But with TdxBarManager this doesent work.
Can anybody help me?
Thx a lot.
0
Comment
Question by:datalabdd
2 Comments
 
LVL 6

Accepted Solution

by:
vadim_ti earned 125 total points
ID: 12305960

How to add a separator between items in a toolbar
ArticleID: 1274; Product: ExpressBars; Version(s): 5, 4; Technology: VCL; Updated: 7/21/2004

Description

The standard TToolbar allows you to create a separator between items. How can I do this for the ExpressBars toolbar?

Solution


You should access the necessary Item Link or the BarItem and set its BeginGroup property value to True. This will allow you to insert a separator before this Item Link. You may use the same code if you need to insert a separator between the items placed on a dxBarSubItem or dxBarPopupMenu.

  <adxBarButton>.Links[0].BeginGroup := True;

In Customization mode this can be done via the "Begin a Group" item of a BarItem's popup menu. Just right-click a BarItem to invoke the menu. Another way is to drag the desired BarItem to the right/left or to the top/bottom a bit to create/remove a separator.



0
 

Author Comment

by:datalabdd
ID: 12306270
yep ... this works ... thx a lot ;)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now