Display menu in code |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
Posted: 10 October 2008 at 5:43am |
I have a ribbonbar with SystemButton.
When I click the SystemButton, my popdown Menu appears, and remains on screen even if I move the mouse off the menu. This is good. 1. How can I make the popdown Menu appear like this using code? (I have tried ...ControlSystemButton.execute and this does make the Menu appear, but as soon as I move the mouse off it, the Menu disappears) 2. When I click on a non-valid item on the popdown Menu, the Menu disappears. How can I get it to remain on screen? (I have tried ....ControlSystemButtob.CloseSubMenuOnClick = False but this did not affect it). |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
Still no replies to this question.
Is this a really really difficult thing to do? |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
I still would like an answer to this. (End user reminded me that my app is annoying to use because of this :-) |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
Hi Chris,
I've tried this with 13.1 and the SystemButton menu disappears when the user moves the mouse over other CommandBar controls (e.g. QuickAccess), but not when moved over the non-commandbar portion of the form in both cases that you mention (user click, or code Execute call). Essentially, I see no difference in behaviour between user click and Execute calls. I also can't see the problem where the menu disappears on "non-valid item" click (although, I'm not sure what a non-valid item is...for my tests, I tried clicking a separator bar drawn via .BeginGroup = True, and the menu did not close). Here's the sample code I used (CommandBar and CommandButton control on form):
Can you provide a sample that demonstrates the problems you are experiencing so i can test it? |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
Thank you for super quick reply.
I have downloaded v13.1.0 and this behaves differently to my previous test. I think this has solved the problem for me. BUT it also shows new behaviour (which I do like, but am not sure how or why it is working -- ie. is there a flag to turn on/off this behaviour? Why does it not do this when called from code?). TEST 1: Click on the System Button with mouse. Main Menu is displayed. Move mouse off the menu area-- menu remains displayed. Move mouse over Quick Access Bar -- menu disappears. Move mouse back over System Button -- menu reappears <<<<< This is new behaviour. I like it. TEST2: Make Main appear on screen using code .Execute call. Move mouse off the menu area -- menu remains displayed. Move mouse over Quick Access Bar -- menu does not disappear. ****DIFFERENT TO ABOVE**** Move mouse back over System Button. no change. So you can see different behaviour if menu displayed with mouse click, compared to if menu displayed in code. (But my original problem has now been solved.) I would just like to know if the above difference (ie. menu appears automatically when mouse moved over System Button) can be turned on or off? |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |