Whoa there Mark! I didn't mean to offend anyone. This dialog stuff is the
greatest since the wheel as far as I'm concerned. I just needed a little more.
And you, my friend, supplied it.
Many thanks.
Earl
On Sep 14, 2011, at 3:59 PM, Mark Miesfeld wrote:
> On Wed, Sep 14, 2011 at 12:12 PM, Earl Hodil <eho...@mail.open-softech.com>
> wrote:
>
> Is there a way to create a MultiIntegerBox class without starting from
> scratch? Has anybody already done this? I need to input and validate a date
> and MultiInputBox is nice, but… it leaves a lot to be desired. If I could
> merge it with IntegerBox, I'd have what I need. I just don't know how to do
> that.
>
> You could probably do this, of course it depends on exactly what you by "it
> leaves a lot to be desired":
>
> Find
>
> ::class 'MultiInputBox' subclass PlainUserDialog public
>
> in OODPLAIN.cls. Copy and paste the entire class definition into your
> program and rename the class something you are comfortable with, like
> MultiIntegerBox as you say.
>
> Then in this line:
>
> self~AddInputStem(101, 10, sy+4+10, maxlen+4, len, entries.)
> add the style string, which is the arg right after entries. Like this:
>
> self~AddInputStem(101, 10, sy+4+10, maxlen+4, len, entries., "NUMBER")
>
> that will create the edit controls with the integer only style. That should
> (might) be good enough for your needs.
>
> Rather than put the new class definition in your program, if you're
> ambitious, you could create your own 'required' file and put it in there.
> Then you could use it any of your programs.
>
> I personally would save a copy of OODPLAIN.cls and then just add it to the
> OODPLAIN.cls file, right under the ::class 'MultiInputBox' definition.
>
> --
> Mark Miesfeld
>
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users