Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / How to "Paste image" in a BlueGui window??

Author
Message
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 15th Mar 2006 23:10
How do i do it? I Tried paste image in a window created with bluegui. But it doesnt work. Someone please help me!
driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 16th Mar 2006 06:57
make a panel, and paste the image to that. just make sure the panel is the same size as the image. use setPanelImage handle gadget, [str filename] | [int image] to do it.

I have a lil' white jacket that lets me hug myself forever.
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 16th Mar 2006 09:23 Edited at: 16th Mar 2006 09:25
It doesnt work .. i made the panel exact same size as the image. But nothing shows up when i use the command you told me.

PicPanel=CreatePanel(0,0,384,288,Main)
Load Image "data.jpg",1,1
setPanelImage PicPanel,1

Nothing shows up at all
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Mar 2006 19:53
You need to include a memblock related command somewhere in your source code to force the compiler to include the memblock plugin (needed by BlueGUI to load DBPro images).

The help file entry for setPanelImage has more information on this.


BlueGUI Windows Plugin
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 21st Mar 2006 23:34
OK. Thanks all for the helpful answers. It works now :o)

Login to post a reply

Server time is: 2024-11-22 00:37:17
Your offset time is: 2024-11-22 00:37:17