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. Here is an example from a test program I am working on: C:\work.ooRexx\other\feature.requests\custom.draw.listview\listView>cdMulti.rex *-* Compiled method CUSTOMDRAWCONTROL with scope "CustomDraw" 92 *-* self~customDrawControl(IDC_LV_C, 'TreeView', onCustomDrawC) 50 *-* dlg~showListView(C) Error 98 running C:\work.ooRexx\other\feature.requests\custom.draw.listview\listView\cdMulti.rex line 92: Execution error Error 98.900: The control marked for custom draw with id 1005 is not a TreeView control C:\work.ooRexx\other\feature.requests\custom.draw.listview\listView> If I look up the numeric ID for the symbolic ID, IDC_LV_C I see that it is 1005. I also see that it is the ID for a list-view, not a tree-view. Line 92 displayed in the condition messages shows me I passed in 'TreeView' where I meant 'ListView'. So, the error tells me exactly what is wrong. If you are running your dialog programs using rexxhide, you will not see the error output. >I have a dialog that takes input and > the Ok button is selected. It should then hide some of the > Edit controls and show others and then allow more selections. > Somewhere in this process, the underlying dialog just > disappears. Most likely a condition is being raised, and you will see the condition text if you run the program from the command prompt. If your program has an extension that causes it to be executed with rexxhide, then just explicitly start it with rexx: C:\work.ooRexx\other\feature.requests\custom.draw.listview\listView>rexx cdMulti.rex *-* Compiled method CUSTOMDRAWCONTROL with scope "CustomDraw" 92 *-* self~customDrawControl(IDC_LV_C, 'TreeView', onCustomDrawC) 50 *-* dlg~showListView(C) > I have found that a Create or CreateCenter dialog statement > gives an error when the parameters after the style are > supplied, giving an error on parameter 8 being incorrect. I have seen quite a few programs where people have not counted the commas correctly for these 2 methods, and I'll bet you lunch, that's your problem here. ;-) > I also have found that a setData statement is not accepted > within the InitDialog method. It should be accepted. > Removing this statement > and removing the parameters 7 and 8 from the CreateCenter > statement allows the program to run through the acceptance > of the initial operator input. If you posted your code here, I could probably tell you what is wrong. > Is there a way for me to determine what or where the dialog > is being hidden or closed? I have traced some, but not everything > to attempt to detect this and no luck so far. The absolute best way is to run your programs from the command line while you are developing them. If you are already doing that, and you don't see any output, then you can post your code here and I'll help figure out what the problem. -- Mark Miesfeld ------------------------------------------------------------------------------ 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