XWidgetSoft Forum
https://xwidget.com/bbs/

My Task! 1.0 beta (& a little question to Qianc. or Tony )
https://xwidget.com/bbs/viewtopic.php?f=7&t=2723
Page 1 of 1

Author:  Armando [ March 11th, 2013, 10:41 am ]
Post subject:  My Task! 1.0 beta (& a little question to Qianc. or Tony )

A little help, for those who know code.
I want to:
By pressing a button, slide a panel and at the same time the same button rotates 90 degrees. I want to push the button to return to rotate 90 degrees (in reverse) and slide the panel (counter).
It should be easy ... but... I do not know how.
Thanks for the help!

Author:  qiancang [ March 11th, 2013, 8:42 pm ]
Post subject:  Re: Slide and rotate... HOW TO DO???

slidepanel1.silded = !slidepanel1.slided;
if(slidepanle1.slided) button1.rotateangle = button1.rotateangle+90;
else button1.rotateangle = button1.rotateangle-90;

Author:  Armando [ March 12th, 2013, 4:50 am ]
Post subject:  Re: Slide and rotate... HOW TO DO???

Qiancang:
Sorry but doesnt works :(
What can be happening?
This is the widget, please, take a look.
Attachment:
My Task! 1.0.XWidgetPkg [250.76 KiB]
Downloaded 437 times


THANKS QIANCANG!!

Author:  Armando [ March 14th, 2013, 5:58 am ]
Post subject:  Re: Slide and rotate, HOW...??? --- TO QIANCANG: see this p

Please, help with this! Thansk!

Author:  qiancang [ March 18th, 2013, 8:49 pm ]
Post subject:  Re: Slide and rotate, HOW...??? --- HELP!

Sorry, Armando, I made spell mistakes before :(
It works now.

Attachments:
my task.XWidgetPkg [400.97 KiB]
Downloaded 369 times

Author:  Armando [ March 19th, 2013, 5:40 am ]
Post subject:  Re: Slide and rotate, HOW...??? --- HELP!

Qiancang: excellent! thaaanks!
Just one question: is it possible for an object to rotate display throughout the rotation? (ie, now we sees only two positions: -90 degrees and +90 degrees).
Attachment:
My Task! (beta).XWidgetPkg [523.08 KiB]
Downloaded 371 times

Take a look if you want to this beta version of "My Task"
Attachment:
mytask! screenshots.jpg
mytask! screenshots.jpg [ 141.18 KiB | Viewed 5304 times ]

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/