Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    weird field restrictions

    SDK Help
    0
    4
    297
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 02/03/2006 at 03:35, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      In a GeDialog i create text field using
      <CODE>AddEditNumberArrows(AVERAGE_, BFH_LEFT, SizeChr(100),SizePix(13));</CODE>

      but it seems to have some weird restrictions... First time a number is written in, it accepts only numbers between 0 and 100. All insertions following that one work ok (accepts every number)... I double-checked i hadn't done something stupid myself, but didn't find anything that could affect fields this way.

      Anyone had same problems, and could help me get rid of it?

      Thanks in advance,
      Regards

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 03/03/2006 at 10:51, xxxxxxxx wrote:

        no one? 😐

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 03/03/2006 at 17:11, xxxxxxxx wrote:

          The only thing that I can think of is an initial call to a plain setter like SetPercent() is being accidentally called with 'AVERAGE_' as the id (it has a default limit of 0.0 to 100.0 which would be taken as 0 to 100 for a LONG, for instance).

          Then when you insert afterwords, your code is properly checking and setting (using SetLong(AVERAGE_), for instance)?

          Either way, that is the first place that I'd look since AddEditNumberArrows() means nothing here. It is the setter for the GadgetPtr id that makes the difference on what is allowed for entry and how it is displayed.

          HTH,

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 04/03/2006 at 04:47, xxxxxxxx wrote:

            solved, thanks.

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