XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Widget Size https://www.bbs.xwidget.com/viewtopic.php?f=7&t=4281 |
Page 1 of 1 |
Author: | Chronigan [ March 24th, 2014, 2:53 pm ] |
Post subject: | Widget Size |
Is there a way to change a widgets height and width from a function within the widget? What I'm asking is can I do something like Widget.Width = 578; from within a function and have the widgets width change to that? |
Author: | Chronigan [ March 24th, 2014, 6:07 pm ] |
Post subject: | Re: Widget Size |
Or is there a way to scale animated gif's? |
Author: | Jimking [ March 25th, 2014, 3:19 am ] |
Post subject: | Re: Widget Size |
Topic moved in "Help: XWidget Application" section. Please select the right section. Now about your question, you can use: (right click on the widget) 1) Window -> Zoom 2) Configure -> Position & Size. I suggest you to use the first option though to not alterate the real dimensions of the widget. |
Author: | Chronigan [ March 26th, 2014, 5:02 pm ] |
Post subject: | Re: Widget Size |
What I'd like to do is change the size of the widget during runtime based on the size of a animated gif, or scale a loaded gif to match the size of the wdget. |
Author: | Jimking [ March 26th, 2014, 5:09 pm ] |
Post subject: | Re: Widget Size |
Sorry but you mean to change the size of the widget when runs on the desktop, or using the designer, so you ask help for the Designer process.. |
Author: | hamid [ March 27th, 2014, 2:46 pm ] |
Post subject: | Re: Widget Size |
Chronigan wrote: Is there a way to change a widgets height and width from a function within the widget? What I'm asking is can I do something like Widget.Width = 578; from within a function and have the widgets width change to that? yes, it can be done exactly same way as you said, in the script editor, just place the lines of code in a function and call the function in some way: - you can call the function by clicking on a button (button1OnClick); - you can call the function on widget start (widgetOnLoad); - you can call the function from another function; - and ..... example: //don't forget to add function name [button1OnClick] in the [OnClick] of [Button1] Object in the function tab of Designer (to call button1OnClick function when button1 Clicked) Code: function button1OnClick()
{ widget.Width = 578; widget.Height = 480; } |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |