In Exercise08 of the ooDialog Guide, I've introduced drag/drop of Product
and/or Customer onto the Order Form.   
All works fine except for the following sequence:
(a) Surface an Order Form (by dbl-clk on OrderForm icon in the Order
Management dialog)
(b) Surface a Product (dbl-clk on Product List then dbl-clk on any item in
the listview)
(c) Drag the Product to the OrderForm. 
In this case, the following error occurs:
Error 97 running D:\...\Exercise08\Order\OrderFormView.rex line 809: Object
method not found
Error 97.001:  Object "ECPRODNUM" does not understand message "SETTEXT"
 
However, this error does not occur if, before the first drag of a product to
the order form, I click on the "Order Lines" tab on the Order Form.
 
I believe what's happening in the error situation is that the Order Lines
control dialog is not being initialised properly. It's necessary first to
click on the Order Lines tab. After that, I can drag a product onto the
Customer tab and all works fine (except of course I don't see the result
until the Order Lines tab is clicked) or onto the Order Lines tab. 
 
So to my question: How do I initialise a control dialog that is initially
hidden (i.e. not on top) without clicking on its tab?
Is it just a matter of invoking ~execute for both control dialogs as part of
the OrderForm's initialisation?
Or is this not possible? My initial attempts to do this result in errors.
 
Many thanks for any help. Btw, the code is in
svn.code...ooDialog\trunk\examples\userGuide/Exercises/Exercise08.
 
--
Oliver Sims
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to