User Data [SOLVED]
-
On 03/09/2015 at 03:22, xxxxxxxx wrote:
Hi,
I didn't need a group user data, so I've changed it to the stuff I need, and it worked...
Here is my code:
DynamicDescription* ddesc = myObject->GetDynamicDescription(); if (!ddesc) return false; DescID userDataID; BaseContainer bc = GetCustomDataTypeDefault(DTYPE_REAL); bc.SetString(DESC_NAME, "Left_Point"); bc.SetInt32(DESC_CUSTOMGUI, CUSTOMGUI_REAL); bc.SetBool(DESC_MINEX, false); bc.SetBool(DESC_MAXEX, false); userDataID = ddesc->Alloc(bc); EventAdd();
Thanks for setting me upon the right path!!
-
On 03/09/2015 at 03:31, xxxxxxxx wrote:
Hi,
One more thing though,
bc.SetBool(DESC_MINEX, true);
seems to do the same as:
bc.SetBool(DESC_MINEX, false);
I basically want to disable minimum and maximum values.
Any thoughts on this?Thanks in advance for your help and time!
-
On 03/09/2015 at 05:30, xxxxxxxx wrote:
Hi,
I have to note that I changed
bc.SetInt32(DESC_CUSTOMGUI, CUSTOMGUI_REAL); // To: bc.SetInt32(DESC_UNIT, DESC_UNIT_FLOAT);
Yet, the DESC_MINEX/MAXEX are still not working.
-
On 03/09/2015 at 09:49, xxxxxxxx wrote:
Hello,
DESC_MINEX and DESC_MAXEX seem to work fine here. Please notice that these description options only apply to float parameters. The limitation is applied with floating point precision, so when your value range is 0 to 100 the possible values are limited to 0.0001 to 99.9999. The precision of the GUI elements is limited so they may round the values.
Best wishes,
Sebastian -
On 03/09/2015 at 09:56, xxxxxxxx wrote:
Hi Sebastian,
It seems like I was looking for the wrong stuff.
What I want is to disable the minimum and maximum value.
Is that possible?
Thanks in advance for your help and time!
-
On 04/09/2015 at 00:18, xxxxxxxx wrote:
Hello,
what exactly do you mean with "disable the minimum and maximum value"? You don't have to set these values.
Best wishes,
Sebastian -
On 04/09/2015 at 01:27, xxxxxxxx wrote:
Hi Sebastian,
Well, if you create user data of data type float, you get two checkboxes (Limit Min/Limit Max) who are enabled by default. I simply want to disable them...
-
On 04/09/2015 at 09:43, xxxxxxxx wrote:
Hello,
it seems that these check boxes are enabled by default, so I think you can simply ignore them.
Best wishes,
Sebastian -
On 04/09/2015 at 11:09, xxxxxxxx wrote:
Hi Sebastian,
Well, I want them to be disabled
Is there any way to do that?
-
On 07/09/2015 at 00:23, xxxxxxxx wrote:
Hello,
as said before, it looks like that these checkboxes are enabled by default, independent of any settings. So it seems it is not possible to disable them using the parameter description.
Best wishes,
Sebastian -
On 07/09/2015 at 01:38, xxxxxxxx wrote:
Hi Sebastian,
Sorry, but in my opinion, that wasn't clear to me.
First, you said I can simply ignore them, the other time you say it's not possible to do;Anyways, it's clear now, thanks for your answer!!