StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Feature Updates
 Requests
 [OPEN] SubMenu and closing of PopupMenu
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tia34531

18 Posts

Posted - 12/09/2013 :  14:31:01  Show Profile  Reply with Quote
Hi.....

Would it be possible to create submenus just like Windows Context menus, and
close PopupMenu automatically when it is unactivated also just like Windows'.

Rob

USA
2605 Posts

Posted - 12/09/2013 :  14:39:05  Show Profile  Visit Rob's Homepage  Reply with Quote
I'll add this to the requests for the future, the submenu functionality is a little more complicated in the current implementation.
Go to Top of Page

tia34531

18 Posts

Posted - 12/09/2013 :  14:48:00  Show Profile  Reply with Quote
Ok.. thanks...What about closing when unactivated?
Submenus can be popped up by adding an item to connect another function(i.e. another popupmenu) although it's not a regular one..

Edited by - tia34531 on 12/09/2013 14:51:43
Go to Top of Page

Rob

USA
2605 Posts

Posted - 12/10/2013 :  09:51:14  Show Profile  Visit Rob's Homepage  Reply with Quote
Closing when unactivated works for me. Meaning, I draw the gesture to show the popup menu and if I click anywhere else on the screen, it goes away.

Or are you referring to something else?
Go to Top of Page

plunt

Italy
88 Posts

Posted - 12/10/2013 :  15:35:48  Show Profile  Reply with Quote
quote:
Originally posted by Rob
I draw the gesture to show the popup menu and if I click anywhere else on the screen, it goes away.

It not work for me in xp.
I must to click a empty item.
Go to Top of Page

Rob

USA
2605 Posts

Posted - 12/13/2013 :  16:24:10  Show Profile  Visit Rob's Homepage  Reply with Quote
Ack! I forgot that I added some script in my action to activate the S+ window and post a NULL message to it before showing the popup, that will cause the popup to close on focus change (it's a Windows thing, not S+)

I may end up adding it inside the S+ code, but I need to think it through to make sure that's the best course of action, as I hate to add hardcoded logic to something that someone may not want to have happen:
local swnd = acFindWindow("STROKESPLUS",nil)
acActivateWindow(swnd)
acDelay(20)
acPostMessage(swnd, 0x0000, 0, 0) 
acDelay(20)
acCreatePopupMenu(gex, gey, "Item 1,Item 2,-,New Menu,-,Item 3,-,Close Menu", ",", "popupMenu")
Go to Top of Page

plunt

Italy
88 Posts

Posted - 12/14/2013 :  01:13:22  Show Profile  Reply with Quote
this work, ty
Go to Top of Page

tia34531

18 Posts

Posted - 12/15/2013 :  12:54:40  Show Profile  Reply with Quote
It works ..thank you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000