XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Aug 19日 03:02

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2012年 Jun 26日 17:33 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 268
Hi
What is the best way to open and close or show and hide a widget from a button click in another widget ?
Example, a button click in a time display widget could open a calendar widget, then another click to close or hide the calendar widget ?
What code would do this? :)
Thank you...


And of course the answers are use a shortcutcore.... to the widget.xwl file. or the link-path in the button properties :oops:


Top
 Profile  
 
PostPosted: 2012年 Jun 30日 05:42 
Offline
User avatar

Joined: 2012年 Jun 12日 11:05
Posts: 257
Location: Barcelona
Good question! I also want to know!
Tell as, Tony!

And: It would be nice if you also could set the position where it will open the widget, size, etc..


Top
 Profile  
 
PostPosted: 2012年 Jul 1日 08:25 
Offline
User avatar

Joined: 2012年 Jun 10日 05:57
Posts: 315
you again :D

to open widget:
startupWidget(foldername,x,y);


to close widget:
button1 is on time widget
function button1onclick()
{
msg(message:string,foldername)
//foldername is the foldername of the widget to which you want to send the message
}

onmsg is the event of calendar widget(the last one)
function widgetonmsg(msgstring)
{
//if(msgstring=="close")
close();
}

hide widget:widget.visible=false
show widget:widget.visible=true
ps: onmsg event is not available in debug, you must to run the widget to test


Top
 Profile  
 
PostPosted: 2012年 Jul 1日 11:54 
Offline
User avatar

Joined: 2012年 Jun 12日 11:05
Posts: 257
Location: Barcelona
Excellent! thanks qiancang!
Armando


Top
 Profile  
 
PostPosted: 2012年 Jul 1日 22:48 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 268
Thank you qiancang... very nice :)


Top
 Profile  
 
PostPosted: 2014年 Mar 4日 15:38 
Offline

Joined: 2014年 Mar 4日 08:23
Posts: 11
Hi Meme,

I saw your question about open and close one widget from another and tried to implement it.
But I cannot get it to work.

Could your post an example of some code that works with actual foldernames and message strings.

Thanks,


Top
 Profile  
 
PostPosted: 2014年 Sep 2日 04:42 
Offline

Joined: 2014年 Sep 2日 04:39
Posts: 1
very nice and great post...........

_________________
Decrease your exam stress by using our latest braindumps.com and best quality COMPTIA and Massachusetts Institute of Technology (MIT) . We provide with 100% pass guarantee along with wikipedia and selftestengine.


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

All times are UTC - 8 hours


Who is online

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

Powered by phpBB® Forum Software © phpBB Group