XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 6:52 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Widget Position
PostPosted: September 4th, 2012, 7:03 am 
Offline
User avatar

Joined: August 29th, 2012, 2:34 am
Posts: 56
Is it possible to set the position of the widget to the top most and then back to the button most inside the code?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Widget Position
PostPosted: September 4th, 2012, 8:23 am 
Offline

Joined: August 11th, 2012, 3:13 am
Posts: 25
widget.WindowZPosition = 2 (keep topmost) / 1 (topmost) / 0 (normal) / -1 (bottom)


Top
 Profile  
 
 Post subject: Re: Widget Position
PostPosted: September 5th, 2012, 12:58 am 
Offline
User avatar

Joined: August 29th, 2012, 2:34 am
Posts: 56
Thanks man! :D

_________________
Image


Top
 Profile  
 
 Post subject: Re: Widget Position
PostPosted: September 5th, 2012, 2:12 pm 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
Thanks! Very usefully!
Armando


Top
 Profile  
 
 Post subject: Re: Widget Position
PostPosted: November 7th, 2014, 1:09 pm 
Offline
User avatar

Joined: October 13th, 2014, 1:04 am
Posts: 13
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.

_________________
-- TheYinas --
on DeviantArt: http://yinas.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Widget Position
PostPosted: November 11th, 2014, 7:19 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
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


Top
 Profile  
 
 Post subject: Re: Widget Position
PostPosted: November 11th, 2014, 7:27 am 
Offline
User avatar

Joined: October 13th, 2014, 1:04 am
Posts: 13
Thank you Hamid, that is what i need !
Haven't really worked with the "widget." properties much yet.
Will try soon :D

_________________
-- TheYinas --
on DeviantArt: http://yinas.deviantart.com/


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 14 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:  

Powered by phpBB® Forum Software © phpBB Group