On Thu, Aug 11, 2011 at 7:44 AM, Mark Miesfeld <[email protected]> wrote:

>  On Thu, Aug 11, 2011 at 7:59 AM, Oliver Sims <
> [email protected]> wrote:
>
>> **
>> In the defineDialog method of a UserDialog program (listed below), I have
>> the following statement:
>>
>>   self~createStaticText(902, 40, 40, 200, 40, , "ABC")
>>
>> But the text "ABC" does not appear. Is this a bug?
>>
>
> I'm going to kind of hedge on my answer.  Is this a bug?  Not really, it's
> our old friend autodetection.
>


Maybe not a bug, but this had the potential to break existing programs, so I
fixed it.



>    Btw, this program used to work fine a couple of months ago.
>>
>
>
> I made a change a little while ago, to fix another bug I think.
>


The bug I fixed was that if the static control had a positive resource ID
and was immediately before a group of radio buttons, the auto detection code
would not check the proper radio button when the programmer would set the
attribute to checked.

While I was debugging that, I thought of a number of cases where, if the
programmer wanted to use auto detection, they would expect it to work for
static text controls.  Cases similar to the one I posted in the other
e-mail.

So, there was a bug with the radio buttons and another bug that the auto
detection was not consistent.

I just changed the implementation of the fix so that when the data attribute
for the static text control is created, the attribute's value is set to the
text of the control.  This preserves existing behavior.  It also allows the
programmer to use auto detection consistently.  They can set the attribute
to the value they want.

All in all, a good catch Oliver.

--
Mark Miesfeld
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to