I display a bitmap image in an "about" dialog, and use the following code to
do so: 
 
    resImage = .ResourceImage~new( "", self)                 -- Create an
instance of a resource image
    image = resImage~getImage(IDB_PROD_ICON)     -- Create an image from the
Product bitmap
    stImage = self~newStatic(IDC_PRODABT_ICON_PLACE)~setImage(image) --
Create a static text and set the image in it
 
Having read the ooDialog Reference, I understand what's happening in this
code - it's:
(1) Create a ResourceImage instance
(2) invoke getImage on the ResourceImage instance in order to get an Image
instance 
(3) Set the Image instance into the image-static (or "picture") control.  
 
It's done this way (as I understand) because setImage on the Static control
needs an instance of .Image, but the only way I can get my image out of the
resource file (the *.dll) is to use an instance of .ResImage.
 
I guess my question is, is there a simpler way to do this? It seems a bit of
a long way round...
 
Thx,
Oliver
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to