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

Widget Position
https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2082
Page 1 of 1

Author:  vlad [ September 4th, 2012, 7:03 am ]
Post subject:  Widget Position

Is it possible to set the position of the widget to the top most and then back to the button most inside the code?

Author:  flibio [ September 4th, 2012, 8:23 am ]
Post subject:  Re: Widget Position

widget.WindowZPosition = 2 (keep topmost) / 1 (topmost) / 0 (normal) / -1 (bottom)

Author:  vlad [ September 5th, 2012, 12:58 am ]
Post subject:  Re: Widget Position

Thanks man! :D

Author:  Armando [ September 5th, 2012, 2:12 pm ]
Post subject:  Re: Widget Position

Thanks! Very usefully!
Armando

Author:  theyinas [ November 7th, 2014, 1:09 pm ]
Post subject:  Re: Widget Position

hello.
to revisit this question:

is it possible to set the widget's position via code? absolut (in pixel) or relative (eg 10% of resolution) or even monitor number?
thank you for your insight.

OFFTOPIC: the title is a little misleading (as is the option in the widget's context menu), as it regards the layer the widget resides, not it's position.

Author:  hamid [ November 11th, 2014, 7:19 am ]
Post subject:  Re: Widget Position

Quote:
is it possible to set the widget's position via code? absolut (in pixel) or relative (eg 10% of resolution) or even monitor number?
thank you for your insight.

you can use absolut (in pixel) like this:

Example:
Code:
widget.Top=100
widget.Left=100
widget.Width=300
widget.Height=200




for relative (in percent),
you can create a formula for your own

Example:
Code:
widget.Left=10/100*DesktopWidth

Author:  theyinas [ November 11th, 2014, 7:27 am ]
Post subject:  Re: Widget Position

Thank you Hamid, that is what i need !
Haven't really worked with the "widget." properties much yet.
Will try soon :D

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