GuiTextEditSliderCtrl Question
by Ronald J Nelson · in Torque Game Engine Advanced · 05/29/2008 (9:07 pm) · 4 replies
I have found that I would rather use this control than some of my more cumbersome popup menus and would like a small bit of information in regards to the format field.
I see when I do a seach for it in my script that it was used in several places in the editorGui and ParticleEditorGui but there are many different settings done in that field and I am curious how they work before I go ripping things apart.
Here is one example:
format = "%3.0f";
I am assuming "f" means a float value but what is the significance in changing the 3.0 value? I see several different numbers used for that and just want some clarification. One more question, if I wanted to make this a non-float would I do something like this?
format = "%3";
I see when I do a seach for it in my script that it was used in several places in the editorGui and ParticleEditorGui but there are many different settings done in that field and I am curious how they work before I go ripping things apart.
Here is one example:
format = "%3.0f";
I am assuming "f" means a float value but what is the significance in changing the 3.0 value? I see several different numbers used for that and just want some clarification. One more question, if I wanted to make this a non-float would I do something like this?
format = "%3";
#2
Additionally, is there some reason that relative sizing does not work on it? Everytime I click on it it resizes back to its default.
05/30/2008 (3:59 pm)
Thanks MAtt but I tried to use that to use just an integer or decimal and it did not work at all.Additionally, is there some reason that relative sizing does not work on it? Everytime I click on it it resizes back to its default.
#3
05/30/2008 (4:01 pm)
One more thing, are the slider arows supposed to flicker? Not the whole button, just the black part of the arrow.
#4
05/30/2008 (5:25 pm)
OK this is a bug for the resizing when in relative sizing mode. It resizes the window vertically as soon as you push one of the arrows. I guess I will post a bug and see if anything stirs up.
Torque 3D Owner Matthew Jessick
Check out: www.cplusplus.com/reference/clibrary/cstdio/sprintf.html
for formatting codes available for the engine's dSprintf function and others like this.