05-12-2009 08:35 AM
05-12-2009 10:35 AM
05-13-2009 02:43 AM
Hi Thoric,
thank you for your reaction.
I have tried what you suggest. If I select "Allow default run-time shortcut menus, there are two items: Copy data, Save image. If I switch it off. There is no right click pop-up menu at all.
The image which I display is originali extracted from AVI file and goes trough several edge detection and overaly procedures. But I dont think that this can have any influence on the right click pop-up menu.
05-13-2009 03:10 AM
Hi xombox,
I took a look at the Image property "Zoom to fit mode" (Is this the one you are using?) - I do not think this has any influence over the items visible in the shortcut menu.It simply ensures the image is zoomed to fit the viewable area of the image control.
Why the image control should have different shortcut menus when built into an application is something I can't explain. I'll keep digging, but maybe somebody else can shed some light on this?
05-13-2009 03:39 AM - edited 05-13-2009 03:40 AM
I can't understand yet why the Image control has some unique shortcut menu entries in the development environment that are not visible in built applications, so I've written a little workaround for you. You can customise the shortcut menu items for any front panel control and handle the events for these in the code.
I use this NI Tutorial to develop the following, which I hope is helpful:
In the block diagram, you will need to write some code to capture the Shortcut menu events and turn on Zoom to Fit for the Image control:
If you do this with a sensible loop around the event case and a timeout of around 100ms, then the result will be a customised shortcut menu item than allows you to turn on Zoom to Fit for the Image.
10-02-2009 08:50 AM
Hello. Thank you for your posting.
I have similar problem and I am trying to my "zoom to fit" button in my front window. Anyway, I cannot find "zoom to fit mode" property node. Could you let me know the path of "zoom to fit mode" property node.
Thanks.
10-02-2009 09:26 AM
YKey wrote:
[...]Could you let me know the path of "zoom to fit mode" property node.[...]
This property is only available in the IMAQ image display control. The 2D image control does not have this property.
If you use the IMAQ image display control, you can find the property in the property list as the third from bottom (at least in LV 2009 eng.). Possibly, you have to scroll down the property selection.
hope this helps,
Norbert
10-03-2009 05:17 PM
Thank you Norbert,
I still cannot find 'zoom to fit mode' property. The third from the bottom is 'snapshot mode' in my case. I am using LabVIEW 8.5. I am attaching my screen. Please give me good comments.
Regards,
Youngkey
10-03-2009 05:21 PM
I am attaching a large image.
10-05-2009 03:10 AM - edited 10-05-2009 03:15 AM
Hm, it seems that this is a new feature of the image control. I am using LV 2009......
Norbert
[Edit]: I just checked the readmes and the feature was introduced with NI Vision 8.6 Developement Module.