Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GeDialog SetReal sometimes works, then fails

    SDK Help
    0
    2
    201
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 02/03/2014 at 11:25, xxxxxxxx wrote:

      User Information:
      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!

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post