Link to home
Start Free TrialLog in
Avatar of dinko1
dinko1

asked on

Delphi's DevExpress Ribbon Menu-Only Item

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?
Avatar of jimyX
jimyX

>   "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

Avatar of dinko1

ASKER

CheckMenuDropdown is not included in the dxBarButton
ASKER CERTIFIED SOLUTION
Avatar of dinko1
dinko1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
dinko1,
I see my comment assisted you to find the solution!
Avatar of dinko1

ASKER

by what means? because they are both one line?
different code
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.
Avatar of dinko1

ASKER

Ok now what? you want me to accept your solution? a non working line code? what you expect?
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:
https://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.
Avatar of dinko1

ASKER

i found solution on my own