XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 4:05 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Supress Right-Click Menu
PostPosted: November 11th, 2014, 7:29 am 
Offline
User avatar

Joined: October 13th, 2014, 1:04 am
Posts: 13
Hello.
Is there any chance to suppress the right-click (on Widget) menu?
But still allow left-clicks? (so mouse-through is not an option)

Thanks for your insight!

-yinas

_________________
-- TheYinas --
on DeviantArt: http://yinas.deviantart.com/


Top
 Profile  
 
PostPosted: November 11th, 2014, 7:49 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I never use it but check if this is what you want:
- Right click on XW icon tray -> Options
- Under "Other" tab select "Disable all widgets Pop-up menu".

Please check better the program's menu before open a topic.
Thank u

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: November 11th, 2014, 7:56 am 
Offline
User avatar

Joined: October 13th, 2014, 1:04 am
Posts: 13
ok maybe i should not open any topics anymore at all.
as you can see, i have built quite the functionality into my first (!) widget. without asking about anything beforehand.
my main computer broke down yesterday, so i can not develop anything, from photos to apps, nor continue working on my widget(s).
but it's fine, if you are annoyed by me trying to be productive and asking about (possibly difficult) solutions before going from idea>design to implementation stage,
i understand, and will refrain.

thankyouverymuchandhaveaniceday

_________________
-- TheYinas --
on DeviantArt: http://yinas.deviantart.com/


Top
 Profile  
 
PostPosted: November 11th, 2014, 8:42 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
theyinas wrote:
ok maybe i should not open any topics anymore at all.
as you can see, i have built quite the functionality into my first (!) widget. without asking about anything beforehand.
my main computer broke down yesterday, so i can not develop anything, from photos to apps, nor continue working on my widget(s).
but it's fine, if you are annoyed by me trying to be productive and asking about (possibly difficult) solutions before going from idea>design to implementation stage,
i understand, and will refrain.

thankyouverymuchandhaveaniceday

Maybe you didn't understand very well the meaning of my words. I didn't tell you that you can't ask for help here! This section is for this after all. I only SUGGEST you, before open a new topic navigate through the program's menus. And if you still have difficulties to find something, then the people here can help you. But since your pc broke down you can't even check the options.. So maybe it will be better for you have a working pc so you can check in real time our replies.
Also you can check this section for further help:
viewforum.php?f=10

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: November 11th, 2014, 9:23 am 
Offline
User avatar

Joined: October 13th, 2014, 1:04 am
Posts: 13
yeah well sorry, thats how it sounded...
yes it would be better to have a working pc :/
right now i am on an old laptop to access forums like this properly, and collect my design thoughts...

_________________
-- TheYinas --
on DeviantArt: http://yinas.deviantart.com/


Top
 Profile  
 
PostPosted: November 11th, 2014, 9:43 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I'm glad that you understand my thoughts... I hope that you can use your pc again soon and share your widgets. :)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: November 11th, 2014, 3:38 pm 
Offline

Joined: November 9th, 2014, 12:23 am
Posts: 12
I second this question - I've tried fiddling about in script and settings to suppress the popup menu on a particular element where I want the right click to perform a different function. e.g. I might want a digit to be left click to increase, right click to decrease. But right click always brings up the popup menu.

Any way to disable the menu for particular elements?


Top
 Profile  
 
PostPosted: November 11th, 2014, 5:13 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
i have the same idea before,
but i don't remember what i did before,

for now, i can only think of sending esc key to widget after popup menu,
to close the menu right after it shown,
maybe not the best way but think of it as a temporary solution

example:
Code:
var wsc=new ActiveXObject("WScript.Shell")

function widgetOnPopupMenu()
{
   widget.ForceToFround()
   wsc.SendKeys("{Esc}")
   setTimeout("sendthekey",100)
}

function sendthekey()
{
     widget.ForceToFround()
     wsc.SendKeys("{Esc}")
}


explanations:
1. first it will create an activex object
2. i have used ForceToFround() to make the widget in focus, to prevent sending key to another program incorrectly
3. SendKeys() will send the key to the program in focus (it will simulate the key press by activex object)
4. i have sent key 2times to prevent any possibility of the menu occurance
5. i have used settimeout() to do the 2nd sendkey() with delay of 100ms


Note:
don't forget to link the widgetOnPopupMenu() function to its Event


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group