Solved

TdxBarManager - adding a break line to menu at runtime

Posted on 2004-10-14
2
1,537 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

13 Experts available now in Live!

Get 1:1 Help Now