XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 May 22日 15:26

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: 2014年 Nov 29日 20:16 
Offline
User avatar

Joined: 2012年 May 12日 20:32
Posts: 560
[Tutorial] How to change widget background with menuItem

We can change widget's background image with last version of XWidget(etc: v1.07)

Demo widget download:
Attachment:
iCalendar3(2).xwp [326.9 KiB]
Downloaded 121 times


with the "iCalendar 3" demo widget ,wo can show how the new "muti-background" function works.

1. Create MenuItem in WidgetDesigner, set the click action etc: !ChangeImgSrc=bg,bg2.png , the "bg" is the Image Control name, and the "bg2.png" is the new image file name
Attachment:
changeImgSrc.jpg
changeImgSrc.jpg [ 373.32 KiB | Viewed 1099 times ]


2. Send this widget to your android phone and click it to show these two Menuitem
Attachment:
MenuItems.jpg
MenuItems.jpg [ 284.57 KiB | Viewed 1099 times ]


3. click menuitem then the image control "bg" will load the bg2.png
Attachment:
MultiBackground.jpg
MultiBackground.jpg [ 434.41 KiB | Viewed 1099 times ]

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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