> On Sat, Aug 25, 2012 at 6:04 AM, Art Heimsoth
> <artst...@artheimsoth.com> wrote:
>
>>> On Fri, Aug 24, 2012 at 8:15 PM, Art Heimsoth
>>> <artst...@artheimsoth.com> wrote:
>>>
>>>> I am trying to move several of my ooDialog programs to the
>>>> 4.2.0 release, but am having trouble.  I have found a couple
>>>> of places that are different, but the main trouble I am
>>>> having now is that the windows dialog disappears and I have
>>>> been unable to find out why.
>>>>
>>>
>>> Run your programs from a command prompt window and you will
>>> probably see the problem.
>>>
>>
>> I have been running it from a command prompt.
>>
> Okay.
>
> So, now you've fixed the create center method and you should have
> narrowed it down to just the setData() statement.
>
> If you use the setData() method the dialog disappears and if you
> take it out it works, correct?
>
No, if I have the setData() in the initDialog method, then I get the error:
  7299 *-* return self~setDlgDataFromStem(InternDlgData.)
   159 *-* self~SetData
    44 *-* MyDialog = .MyDialogClass~new(version,message)
Error 93 running C:\rexx\mitch\mac\loadlist.rex line 44:  Incorrect call to meth
od
Error 93.900:  The SETDLGDATAFROMSTEM method can not be invoked on a MYDIALOGCLA
SS when the Windows dialog does not exist

That area of code looks like:
  parse var defaultsize xsize ysize
  self~CreateCenter(xsize,ysize,progtitle "-" version, ,
          "THICKFRAME NOTMODAL MINIMIZEBOX MAXIMIZEBOX",,,8,100)

  /* connect to method if size/position/focus changes */
  self~ConnectPosChanged("Moved")
  /* Connect dialog control items to class methods */
  self~ConnectButton(1,"Ok")
  self~ConnectButton(2,"Cancel")
  self~ConnectButton(9,"Help")

  self~SetData
  return InitRet

Running without that specific setData() allows the program to display
the dialog and accept input from the first entry panel.  When I select
"Ok" to process the input, it appears that the code goes to my "Ok"
method, but also returns to the statement following the
MyDialog~Execute("SHOWTOP") statement which then causes the
program to exit.  This does not always happen and seems to be dependent
on how many methods I am tracing - still pursuing it further.
>
>>> If you posted your code here, I could probably tell you what is
>>> wrong.
>>>
>> If I can't find something over the weekend, I may take you up on
>> this.  I would need to build you a simpler case, as this module
>> is over 900 lines and requires external files to work.
>>
The code depends on an external text file and Word from Office but
I should be able to eliminate most of that or generate a simpler test
program.  Am working on that, but do not yet have it so am missing
some dependency to create the problem.

> You can open up a bug and attach the program rather than post that
> many lines.  Or, if you don't want to make it completely public,
> you can send it to me privately either to my gmail account which is
> just my last name at gmail.com, or to my SourceForge e-mail.  If it
> needs external Rexx files to work, just zip everything up together.
> If the external files are not Rexx files, many some executables
> that do processing, leave them out and I'll just bypass the calls
> to them.

No other executables are required, and I think I can slim it down
further..  Will keep you posted.  Thanks,

--
  Art Heimsoth 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to