weird field restrictions



  • 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



  • 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? :|



  • 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,



  • 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.


Log in to reply