Hi Oliver, On Tue, Jul 19, 2011 at 1:19 PM, <os...@simsassociates.co.uk> wrote:
> The execute method of the dialog object (section 3.10.3) says that the > second parameter is the "resource ID of the dialog’s icon". > However, I cannot immediately get this to work (with a ResDialog). My icon > does not appear - instead, it's the default icon. This seems similar to your previous question of a few days ago. If the resource ID you are supplying matches the resource ID of a suitable ICON resource in the DLL, it will work. But, the key is a "suitable" icon resource. The operating system will not just load any image for the application icon. The image *has* to be an icon. Not only that, but the icon resource *has* to have a small icon image in it. In ooDialog, if the operating system refused to load the icon, then ooDialog just falls back and uses the default icon. So, most likely you are not using a image that is a suitable icon image. Here is the code for the Rexx program part of an example that works: /* Simple Dialog showing how to use an application icon. In this example * the icon is located in the resource only DLL file: ApplicationIcon.dll. The * symbolic ID for the icon is: IDI_APP_ICON which is defined in the appIcon.h * file. */ dlg = .SimpleDialog~new("ApplicationIcon.dll", IDD_DIALOG1, , "appIcon.h") dlg~execute("SHOWTOP", IDI_APP_ICON) ::requires "ooDialog.cls" ::class 'SimpleDialog' subclass ResDialog I'll send you the icon file and the resource script that goes along with it. Just compile the DLL file from that using ResEdit. -- Mark Miesfeld ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users