Skip to main content

How to insert picture in dialog box

Hi,
I'm trying to insert a picture into my dialog box. However, my picture did not appear. I use DlgSetPicture "Picture1", "C:\Users\Desktop\Butterfly.bmp". Any sample script that could assist me here.
Thank you in advance. William

Brian Element Tue, 04/14/2015 - 07:15

Hi William,

Make sure that the bitmap exists in that location.  Another problem I have seen is sometimes even though it has a bmp it isn't a bitmap that IDEA will be able to understand, you have to remember that the editor is pretty old.  So you might want to open the image and resave it to see if that works.

Brian

William Yong Wed, 04/15/2015 - 00:19

Thanks Brian for the advice.
Another thing is could I actually click on the picture instead of clicking on my pushbutton, in short, click on the picture and start my scripting rather than click on the pushbutton. How am I able to do that?
Cheers, William. 

Brian Element Wed, 04/15/2015 - 07:05

In reply to by William Yong

Hi William,

No unfortunately there is no way I know of using a picture as a button, it is just a picture.  I usually avoid them because of problems with having the right link, etc.  Nice to have but IDEA didn't take their functions far enough for them to be generally useful.

Brian

William Yong Sun, 04/19/2015 - 21:50

In reply to by William Yong

Hi there,
I still could not successfully insert a picture inside my dialog box and I'm pretty sure that the bitmap image is exist in the location that I save from. Any chance that someone could assist me here or attach a sample script that I could work on it.
Thank you in advance.
 

Brian Element Mon, 04/20/2015 - 07:27

Hi William,

I have attached a zip file with three different examples, the first is where the bmp is in the project folder, the second is where the bmp is in another folder and the thrid is when the bmp is under the project folder.  If it is still not working it might be your bmp is not in a format IDEA can read, I have seen that. 

Thanks

Brian

William Yong Tue, 05/05/2015 - 05:37

Sure Brian.
I have attached the sample script to insert a picture. A word of reminder here is to remember to change the bitmap file path properties under 'Misc'. My path is C:\Users\Desktop\IDEA\bmp\user.bmp, so please change to the path where the .bmp file is located.
Rgds, William
 
 
 

jvelasquez@lly… Thu, 03/07/2019 - 15:59

Hola, intenté con todos los scripts que subieron y no me salió. William, no entendí a qué te referís con 'Misc'. Agradezco su ayuda.