On 02/03/2014 at 11:25, xxxxxxxx wrote:
Cinema 4D Version: 13,14,15
Platform: Windows ;
Language(s) : C++ ;
Hi, this is my main issue right now:
In my iCustomGui I have added a control doing
AddEditNumberArrows(10002, BFH_FIT, 300);
I can always read the value from the control (the gadget) using:
Real realValue = 0;
Bool b = GetReal(10002, realValue);
Then the Boolean b is always TRUE and I can read the number.
But this fails:
Bool b = SetReal(10002, 66.3, 0.0, 100.0, 0.1, FORMAT_REAL);
it often fails in the virtual function Bool SetData(const TriState<GeData> &tristate) in my iCustomGui.
I haven't found a pattern yet, and ask here if some of you can recognize this problem. I know it is a little exotic to work with the iCustomGui, judging from the (lack of) response on such questions, but I hope you know what this can be!
On 02/03/2014 at 11:48, xxxxxxxx wrote:
The funny thing is, often when I post a question here, the small grey cells speed up.. and I discover a solution. In this case, I solved it this way:
I check if the gadget has been initialized, and if not, I manually have to call CreateLayout();
I guess very few of you who participate here in this forum program for the iCustomGui, but if, you might understand what the issue is, and perhaps this post will help you too.