XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Jun 26日 12:48

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2015年 Jan 24日 07:53 
Offline

Joined: 2014年 Mar 10日 10:38
Posts: 8
I'm sure this is simple but I just must be missing the boat here. Looking to change the location of a layer when an image is clicked. Here's what I have...

if (layer1.Top=4)
{
layer1.Top=129
}
else
{
layer1.Top=4
}


Thank you for helping me see the light!


Top
 Profile  
 
PostPosted: 2015年 Jan 24日 11:39 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 267
if (layer1.Top==4)
{
layer1.Top=129
}
else
{
layer1.Top=4
}


Top
 Profile  
 
PostPosted: 2015年 Jan 25日 10:14 
Offline

Joined: 2014年 Mar 10日 10:38
Posts: 8
That's done it, just a hacking my way through, thank you


Top
 Profile  
 
PostPosted: 2015年 Jan 26日 01:21 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4496
The difference is in the first line. As I see @meme added a second "=" in the script.

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


Top
 Profile  
 
PostPosted: 2015年 Jan 26日 05:33 
Offline

Joined: 2014年 Mar 10日 10:38
Posts: 8
Yup, might of seen that before in PERL but I'm an amateur to say the least!


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 7 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