Hi Oliver,
On Wed, Sep 7, 2011 at 10:59 AM, Oliver Sims <
oliver.s...@simsassociates.co.uk> wrote:
> Further to my last: I'm using ooDialog 4.2.0 7120 (which I'm almost sure is
> the latest download - although the download file says it's build 7123).
>
> I did some further investigation with the simplest program possible (and
> with the default ResEdit dialog but with an icon resource added):
>
> ================================================
> /* Test a Dialog Icon with an RcDialog */
>
> .Application~setDefaults("O", "myDlg.h", .false)
> dlg = .MyDlg~new("myDlg.rc", "IDD_DIALOG1")
> dlg~execute("SHOWTOP", "IDI_ICON1")
>
> ::requires ooDialog.cls
>
> ::class myDlg subclass RcDialog
> ================================================
>
> This worked fine. My dialog icon was there at the top left of the dialog.
>
> Then I compiled a resource DLL (using ResEdit) from the .rc file used with
> the above, and ran the same program but as a ResDialog:
>
> ================================================
> /* Test a Dialog Icon with a ResDialog */
> .Application~setDefaults("O", "myDlg.h", .false)
> dlg = .MyDlg~new("myDlg.dll", "IDD_DIALOG1")
> dlg~execute("SHOWTOP", "IDI_ICON1")
>
> ::requires ooDialog.cls
>
> ::class myDlg subclass ResDialog
> ================================================
>
> My dialog icon did not appear - I got the default dialog icon.
>
> Any thoughts?
>
You must be doing something wrong. <grin>
Seriously though, the only thing I can think of is the value of IDI_ICON1.
Is it less than 16? (Although if it is, it shouldn't have worked in the
RcDialog.)
You'll need to send me all the files, .rc, .h, etc., so I can take a look at
them One suspicion is that resEdit is not correctly compiling the .dll
file.
Send the files to my gmail account. Probably won't be able to reply until
next week.
--
Mark Miesfeld
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users