On Sun, Jul 3, 2011 at 11:14 AM, <[email protected]> wrote:

> **
>
> I ran the example on page 38 of the ooDialog Reference (r7012).
> It worked fine - now I understand the use of DlgData and its advantages.
> (Btw, the sample has a typo - no "." on "DlgData" in the "dlg =
> .BuildDialog~new..." statement. Also, an "IDC_" missing from resource names
> for radio buttons and checkbox.)
>

Okay, thanks for spotting those.  Comes from writing code in an xml document
and not testing it in the real world.



>
> The code is below.
>
> Two problems I met:
> (a) The console output (no user inpuit - just show dialog then close it)
> was:
> D:\ ... >builddlg
> 'CONTINUE' is not recognized as an internal or external command, operable
> program or batch file.
> Do Release Build.
> Where did the "CONTINUE" error come from? It appears at the same time as
> the dialog.
>


'continue' comes from the C programming language where is serves roughly the
same purpose as 'iterate' in the Rexx language.  In this case it comes from
this line:

if numericID == -1 then continue

in the setDataStem() method of the PlainBaseDialog.  I was obviously
thinking in C when I wrote it.  I just fixed it.



>  (b) How do you get the radio buttons to accept a click? I did this for
> ProductView, but I cannot now see (or remember) what I did!!
>


There are two types of radio buttons, regular radio buttons and auto radio
buttons.  With auto radio buttons, the operating system handles setting the
state of the radio buttons within a group.  When one button is clicked the
operating system sets the state of that button to checked and the other
buttons to unchecked.

The radio buttons here are regular buttons, and it is the programmer's
resposibility to manage the check states.  Which isn't done in this
program.  The best fix is to make the buttons auto radio buttons.  Same
problem as above, I wrote the snipets of code off the top of my head and
thought it was too simple to need testing.  ;-(

Well, actually I just looked and see that I didn't include the whole
program, you produced the .rc file.  In the resource editor, set the 'auto'
style for the radio buttons.  Normally you would also use the 'Auto' style
for check boxes.

--
Mark Miesfeld
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to