hexagon logo

Dialog Box

I am making dialog boxes with Cypress Enable. Is there any way to insert a picture into a dialog box?

I'm looking to do something similar to what Marked Sets does, where I have a picture that is a button for the operator to click on. Is this even possible to do in Cypress Enable?
Parents
  • Vpt, it worked! Now I have another issue I am trying to get past. Basically, I want to create something similar to the Marked Sets box. With your example, it displays all of the pictures, and if I ask for:

    results = bitmapDlg.List1
    it of course gives a number starting from 0 to signify what picture was chosen. I want to grab the filename. Using this code in the Dialog function section:
     	 Case 2 ' Click
      		fileName = ShortFilepath & DlgText("List1")
      		DlgSetPicture "Picture1", fileName
      		results = fileName


    I can get the filename, but I can't use the results variable in the actual script, in this case. How can I get the results to match the filename of the picture I have selected?
Reply
  • Vpt, it worked! Now I have another issue I am trying to get past. Basically, I want to create something similar to the Marked Sets box. With your example, it displays all of the pictures, and if I ask for:

    results = bitmapDlg.List1
    it of course gives a number starting from 0 to signify what picture was chosen. I want to grab the filename. Using this code in the Dialog function section:
     	 Case 2 ' Click
      		fileName = ShortFilepath & DlgText("List1")
      		DlgSetPicture "Picture1", fileName
      		results = fileName


    I can get the filename, but I can't use the results variable in the actual script, in this case. How can I get the results to match the filename of the picture I have selected?
Children
No Data