Using ResDialog, I cannot initially display data in an edit control. The
test I ran to try to isolate the problem is as follows:

I have two identical programs, except that one uses RcDialog while the other
uses ResDialog. Both use the same .rc file, the former directly, the latter
via the DLL compiled from it. 

There is an edit control in the dialog that I am trying to populate as
follows:

    ::method initDialog
      expose prodNo
      prodNo = self~newEdit("IDC_PROD_NO")
      prodNo~settext("ABC123")
 
With the RcDialog version, the value "ABC123" appears in the edit control.
However, with the ResDialog version, it does not - nothing appears - even
though the ~setText statement returns zero (i.e. success). 

In both cases, the styles (in response to ~getStyle) are trhe same:
VISIBLE TAB ENABLED AUTOSCROLLH READONLY LEFT

Here's the odd part. I also have a menu item "RefreshData". The event
handler method is as follows:

    ::method refreshData
      expose prodNo
      prodNo~settext("XYZ789")

Selecting "Refresh Data" on the menu displays "XYZ789" for BOTH versions of
the dialog. 

Huh? I'm sure it's probably me, but if it is, I can't see where.









------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to