XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 7:34 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ShowHideObj
PostPosted: January 15th, 2015, 12:57 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Hi guys!
Im creating a widget with several buttons to show/hide some shortcut panels, the problem is these panels are stacked on top of each other, so when i press "Button 1" not only has to show "Panel 1" but also has to hide "Panel 2", "Panel 3", "Panel 4", etc. Can someone help me with the script?

Thank you in advance! :)

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
 Post subject: Re: ShowHideObj
PostPosted: January 15th, 2015, 4:24 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
No need to use a script for this..
Just use the "Binding TooltipControl" subtab under "Attributes" tab.
(for "Select Control" select the corrisponding shortcut/button)

An example:
http://jimking.deviantart.com/art/XWiDo ... -371233709

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


Top
 Profile  
 
 Post subject: Re: ShowHideObj
PostPosted: January 15th, 2015, 9:17 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Hi jimking!, thanks for the reply, perhaps i didn't explained my self well, let me give it an other try, this is what i have in mind, each button corresponds to a completely different "set" of shortcuts, and the layers ( were the shortcuts are going to be) overlay, so when i press lets say "B1" the layers with the shortcuts of B2, B3, B4, etc need to hide, cause otherwise they will all be visible at the same time and its gonna be a mess.

Thank you again!

Attachment:
2015-01-15_140221.jpg
2015-01-15_140221.jpg [ 86.87 KiB | Viewed 5388 times ]


Attachment:
systemtempmonitorsmallv1.xwp [40.45 KiB]
Downloaded 253 times

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
 Post subject: Re: ShowHideObj
PostPosted: January 15th, 2015, 9:55 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
The "Binding TooltipControl" can be applied not only to a "text" but with any component,layer etc..
For the button 1 assign the "layer1" with the first part of the shortcuts, button 2 assign the "layer2" ect..

Now in this case I think that you need something like this: ;)
http://jimking.deviantart.com/art/Futur ... -360004839
(remember to uncheck the "visible" option for all the secondary layers)

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


Top
 Profile  
 
 Post subject: Re: ShowHideObj
PostPosted: January 20th, 2015, 8:23 am 
Offline
User avatar

Joined: December 18th, 2012, 12:23 am
Posts: 74
Hi jimking! i DID IT!! :D , Turns out i thought when something is Slided it stops blocking things that are behind, but it isn't so! So simply check the "Mouse Trough" checkbox and this solves it all!! now everything works alright! ...Daaayumm, it took some time but it finally worked! lol

Oook now the next thing! lol, I would like to edit the Menu names at the bottom trough some pop up menu or other means than from the xwidget editor, how can i do this? any ideas?

Thanks jimking!


Attachment:
nav_bottommenu_v1.xwp [747.36 KiB]
Downloaded 259 times

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
 Post subject: Re: ShowHideObj
PostPosted: January 20th, 2015, 9:34 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Quote:
Oook now the next thing! lol, I would like to edit the Menu names at the bottom trough some pop up menu or other means than from the xwidget editor, how can i do this? any ideas?

Hmm... This can be done assigning the txt/title to an extra "virtual" shortcutcore and using the "${displayName}" tag.
A small example is this full screen widget:
http://jimking.deviantart.com/art/My-Be ... -489882440

Leave the rest and concentrate on how I made and works the SIGN / text. ;)

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


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 10 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