[Oorexx-devel] Reliable 'isA' in the native API ?

2009-01-14 Thread Mark Miesfeld
Rick, I'm having what I assume is a scoping problem using the native API and can't figure out how to do what I want. In Rexx I can do this: stFont1 = self~getStaticControl(IDC_ST_FONT1) say 'Static control:' stFont1 'is a DialogControl?' stFont1~isA(.DialogControl) and get this output:

Re: [Oorexx-devel] Reliable 'isA' in the native API ?

2009-01-14 Thread Rick McGuire
Well, the best design pattern for something like this would be not do the test for the control type, but have a method call at the point where you need to distinguish between the objects and have the dialogcontrol override that method to produce the different behaviour. Another approach might be

Re: [Oorexx-devel] Reliable 'isA' in the native API ?

2009-01-14 Thread Mark Miesfeld
On Wed, Jan 14, 2009 at 6:54 PM, Rick McGuire object.r...@gmail.com wrote: Well, the best design pattern for something like this would be not do the test for the control type, but have a method call at the point where you need to distinguish between the objects and have the dialogcontrol

Re: [Oorexx-devel] Reliable 'isA' in the native API ?

2009-01-14 Thread Mark Miesfeld
On Wed, Jan 14, 2009 at 7:57 PM, Mark Miesfeld miesf...@gmail.com wrote: On Wed, Jan 14, 2009 at 6:54 PM, Rick McGuire object.r...@gmail.com wrote: Well, the best design pattern for something like this would be not do the test for the control type, but have a method call at the point where