LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

to save ctrl with confirmation dialog box

Hi all
i want to save ctrl but the problem is that when i call the savectrl function.it saves it but i dont know about its location etc.
actually i want when i call save ctrl function a confirmation dialog box is appeared and ask me for directory and type of file as in the case of other windows.
wait for some good reply. thanks
sia
0 Kudos
Message 1 of 2
(2,827 Views)
Hi, I suppose you are trying to use SaveCtrlBitmapToFile () function. This function accepts a pathname as an input, so you can set exactly where to save the image.

In case you want to give your customer a full navigate-and-select functionality you can add FileSelectPopup before saving the control. FileSelectPopup permits the user to navigate and select/write a filename. Provided that you choose "Save" as the button label, this function also checks for duplicates and emits the standard "File exist: cancel / overwrite" popup message. The pathname returned from this function can then be passed to SaveCtrlBitmapToFile function.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,822 Views)