Username: Password:

How can i add pop up menu on a image



Hi,

i have added image on the classic dialog form.

i wnat that i should change the image at run time using pop up menu on it how it will be possible?

also is their is the text box or text area on that form i want to change the font of that text at run time?

Please suggest the solution for the same

regards,
virendra

fontnameset

If you know the name of the font you would like to change, use the fontnameset command. E.g.,

text.fontnameset(yourTextNode,"Chicago")

Just use whatever fontname you wish in place of "Chicago".

To answer you first question...

I assume your image is in a draw node, (not a sprite) and that the image you would like to change at run time is in a file. If that is the case the command would be...
draw.import(yourTextNode,"Drive_C:imageDir:myImage.bmp",1)

The filePath "Drive_C:imageDir:myImage.bmp" is dfScript way of saying
"C:\imageDir\myImage.bmp"

-Mitch