[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - [Bug] widget.bringToFront not working? CLOSED

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 16th, 2024, 6:56 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: October 14th, 2014, 2:45 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
I have a menu option that when selected should display a layer complete with images and controls.
When that occurs I would like the widget Position = Bottom to become Position = topmost.

I have used the following functions that seem to be applicable:
widget.forceToFround();
widget.bringToFront();

The forceToFround (sic) is an interesting mis-spelling but regardless neither seem to function. The widget stays firmly in the background. Does anyone have any other method of successfully pulling the widget to the topmost position in code?


Last edited by yereverluvinuncleber on October 18th, 2014, 6:01 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: October 14th, 2014, 2:52 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
But why should do this though code..??? In the design, just move this layer on top and add a second "press on to close" component on this layer to close it again..
The designing with XW is much more easy and less complicated than Rainmeter. Many times, the complicated things need only a simple thought! :)

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


Top
 Profile  
 
PostPosted: October 14th, 2014, 3:46 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
I'm not sure my explanation made it clear. The widget is layered, position = bottom.

When I run select the menu option I want the whole widget to be position = topmost, not the layer. I'd be happy to just place the layer on top but I realise the engine won't do that. It is the whole widget I want to bring forward.

The reason for doing it in code is because the function exists and the IDE prompts you providing the facility. If it exists within the IDE/engine then it ought to work. If it works then it simply fulfils the function required. That's all I need. In this case the IDE will not help.

PS. I have no knowledge of rainmeter.


Top
 Profile  
 
PostPosted: October 14th, 2014, 4:49 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
XWidget, as you know, HAS the default right click option for all the widgets to select their position. Personally I don't think is very functional have a widget on topmost position, that means have it on top of any window/screen. I don't know for the others but I never use it..

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


Top
 Profile  
 
PostPosted: October 14th, 2014, 5:12 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
It is occasionally useful to bring a widget forward and if it had been possible to do so in code then I would have used it. I don't really care if the widget's position is 'topmost' or 'normal' as long as I can bring it forward.

If it doesn't work (and I don't think it does) then I won't be able to use it.

If you and anyone else can try those two :

widget.forceToFround();
widget.bringToFront();

and see if they can make them work then please do - and then please report back. If they don't work, when the documentation properly gets going we can mark these as non-operational.


Top
 Profile  
 
PostPosted: October 17th, 2014, 5:44 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362


Top
 Profile  
 
PostPosted: October 17th, 2014, 9:16 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Same as hamid, I also use windowZPosition to control window positions of alerts, message, input boxes and a docked menu bar.

windowZPosition = 0;
alert("Add location is not empty");
windowZPosition = 2;

windowZPosition = 0;
eval(CoreToEdit).cmd(null, "!ShowSetting" );
windowZPosition = 2;


Top
 Profile  
 
PostPosted: October 17th, 2014, 10:31 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362


Top
 Profile  
 
PostPosted: October 18th, 2014, 3:33 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Very useful - thanks will experiment now.


Top
 Profile  
 
PostPosted: October 18th, 2014, 6:03 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
My experimentation is complete. Thank you for the solutions.

widget.WindowZPosition=-1 //Bottom
widget.WindowZPosition=0 //Normal
widget.WindowZPosition=1 //TopMost
widget.WindowZPosition=2 //KeepTopMost

- is the way to change the zorder of an Xwidget in relation tot he other widgets and it does the job perfectly for me. Changed this post to CLOSED.


Top
 Profile  
 
PostPosted: August 15th, 2017, 4:51 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Can this snippet of information make its way into the documentation PLEASE.


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

All times are UTC - 8 hours


Who is online

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