About Store Forum Documentation Contact



Post Reply 
Property, can't get focus
Author Message
neo22 Offline
Member

Post: #1
Property, can't get focus
Hi,

I have a problem with Property.
I use it in my code like it's used in the tutoriel
Code:
Memx<Property> myProps;
and
Code:
AddProperties(...);
to add them to my gui Window.

I have a problem when the Property get updated (on Gui.update()), the button that appear on the right (for Int and Flt values) works, the TextLine does display the proper value but i cant get the focus on it.

http://youtu.be/uGziQmDj6sY more details in the video

Any clues?
03-03-2013 10:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Property, can't get focus
Hi,

Sorry I don't know what could be wrong, I use Properties plenty of times in the engine, and it works ok.

There is a tutorial in 2.0 "05-gui/16-properties", you can check it and see if you're doing something differently.

Perhaps you're manually setting focus to some other element each frame GuiObj.activate
or hide/show an object the same frame
GuiObj.hide, GuiObj.show
03-04-2013 05:19 PM
Find all posts by this user Quote this message in a reply
neo22 Offline
Member

Post: #3
[Fixed] Property, can't get focus
Ok problem solved.
I was doing a check on each frame to see if a property is wrong and then activate or desactivate the validating button.
thanks for the quick answer.
03-04-2013 05:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply