Solved

Delphi's DevExpress Ribbon Menu-Only Item

Posted on 2011-02-25
9
1,782 Views
Last Modified: 2013-11-23
I want to create a menu item inside the ribbon. I tried with regular BarButton setting ButtonStyle to bsDropDown and DropDownMenu to a popup menu.  The problem is that button is clickable and it doesnt open the menu. you have to push the small arrow. is there any way to have menu-only item? with no single clicks?
0
Comment
Question by:dinko1
  • 5
  • 4
9 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 34989181
>   "The problem is that button is clickable and it doesnt open the menu."
You can use "CheckMenuDropdown" to popup the menu on the ToolBar Button Click or even on MouseMove:
procedure TForm1.ToolButton1Click(Sender: TObject);
begin
  ToolButton1.CheckMenuDropdown;
end;

procedure TForm1.ToolButton1MouseMove(Sender: TObject; Shift: TShiftState;
  X, Y: Integer);
begin
  ToolButton1.CheckMenuDropdown;
end;

Open in new window

0
 

Author Comment

by:dinko1
ID: 34989397
CheckMenuDropdown is not included in the dxBarButton
0
 

Accepted Solution

by:
dinko1 earned 0 total points
ID: 34989399
I found solution

procedure TfrmMain.dxBarButton1Click(Sender: TObject);
begin
  dxBarButton1.DropDown();
end;
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 24

Expert Comment

by:jimyX
ID: 35001045
dinko1,
I see my comment assisted you to find the solution!
0
 

Author Comment

by:dinko1
ID: 35001336
by what means? because they are both one line?
different code
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35001683
By the means your question was open for two days without any comment or solution, and after my comment you found the solution. And they are not just one line they are similar in the keyword and how it's done. Anyways I am not objecting here but whenever experts assist you in the finding of a solution at least give credit since they spent time in directing you to the right track.
0
 

Author Comment

by:dinko1
ID: 35002569
Ok now what? you want me to accept your solution? a non working line code? what you expect?
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35002949
Hmmm, this was your very first question on EE, that explains the situation. You need to read the EE guidance and help to be familiar with things over here.

You can start with this page:
http://www.experts-exchange.com/help.jsp#hs=26&hi=366

Please no misunderstanding, of course I am not expecting you to accept my comment as an answer but if you think you arrived to the solution through my contribution then at least give the minimum points for assistance.

I did not want things to turn this way but I just wanted to say that. And after I have said it, you really need to know that experts here are excited and work for the sake of assisting others, and of course some points, but nothing else, there is no any other sort of profit.

And now I am not expecting anything.
0
 

Author Closing Comment

by:dinko1
ID: 35025217
i found solution on my own
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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