Results 1 to 3 of 3

Thread: bug in ctlstate() - can't initialize control in declaration

  1. #1

    bug in ctlstate() - can't initialize control in declaration

    I just noticed this bug in ctlstate.
    throw this code in a non-modal panel:
    Code:
    ...
    xx = ctlstate("E",true,20,"xx_UDF");                    
    ...
    
    // dummy UDF
    xx_UDF: a { info(a); }
    You'll notice that when the panel is displayed that the ctlstate button is not initialized to ON.

    Dontcha love having to type parameters that get ignored.

    Somewhere, over the rainbow....

  2. #2
    Quote Originally Posted by GregMalick

    Dontcha love having to type parameters that get ignored.
    oh i adore them.


    this is a "known bug", at least known by those in the mailing list.

    workaround: just after you create the control, use setvalue() immediately after to "initialise" your control.
    "The hardness of God is kinder than the softness of men, and His compulsion is our liberation." - C.S. Lewis


  3. #3
    Yep, I'm already onto the workaround. Just love the extra code. Yum!

    Somewhere, over the rainbow....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •