Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » GuiLock when creating widgets
GuiLock when creating widgets [message #38415] Fri, 14 December 2012 18:03 Go to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi,

C++ question: I notice that we can't make widgets without GuiLock now (at least in debug) and I have a base class that contains a widget derived from Option. This object gets made automatically when I create instances of the object that contains the derived widget.

Is there a way to set GuiLock without have to do it every time I create one of my objects? Is there somewhere in a constructor or something please?

Like I say this most likely just showing my ignorance of basic C++.

Thanks for any help,

Nick






Re: GuiLock when creating widgets [message #38478 is a reply to message #38415] Wed, 19 December 2012 22:39 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
nixnixnix wrote on Fri, 14 December 2012 12:03

Hi,

C++ question: I notice that we can't make widgets without GuiLock now (at least in debug) and I have a base class that contains a widget derived from Option. This object gets made automatically when I create instances of the object that contains the derived widget.

Is there a way to set GuiLock without have to do it every time I create one of my objects? Is there somewhere in a constructor or something please?

Like I say this most likely just showing my ignorance of basic C++.

Thanks for any help,

Nick



Principally, with current paradigma, no. It is simple - you want to do GUI (anything that calls directly or indirectly to CtrlCore, with some exoplicit exceptions), you need to use GuiLock.
Previous Topic: How does widget/variable destruction in U++ work?
Next Topic: WhenMouseOver?
Goto Forum:
  


Current Time: Fri Mar 29 11:49:21 CET 2024

Total time taken to generate the page: 0.01826 seconds