Black Pearl Posted November 5, 2009 Report Share Posted November 5, 2009 I'm trying to hijack the CTRL+N shortcut to start with a template vi instead of a blank vi. I guess my problem is, that I have the wrong ConPane for the lv_new_vi.vi . In some old threads I found discussions about it, but there was no code to extract the ConPane (maybe due to the server crash). Felix Quote Link to comment
Yair Posted November 5, 2009 Report Share Posted November 5, 2009 I posted a VI which does this in this thread, but as you said, the attachments are missing. You can use the report to a moderator button on the post to ask the moderator to find the function. I also posted a document in that thread (reply 21) which shows the various plugin overrides you can use. I can't look at either of them at the moment, but if memory serves, the conpane for the VI is the 4-2-2-4 pane with an I32 output wired to the top-right corner. I believe it should be 1 if you want to cancel the creation of a new VI or 0 if you want to allow it (or the other way around, or it might have been 1 and 2). 1 Quote Link to comment
Yair Posted November 8, 2009 Report Share Posted November 8, 2009 Here's the document. It doesn't mention what the output value should be, but as I said, the only valid values I know of are 1 and 0. LabVIEW_Dev_Environment_Event_Callbacks.rtf 1 Quote Link to comment
Black Pearl Posted November 9, 2009 Author Report Share Posted November 9, 2009 (edited) Got it! The name of the control must be 'return value'. Guess they use GetValue property somewhere. Felix Edited November 9, 2009 by Black Pearl Quote Link to comment
Yair Posted November 9, 2009 Report Share Posted November 9, 2009 You're right. I didn't notice that now because I was actually looking at a subVI which had the output labeled something like "create new VI?". Quote Link to comment
Black Pearl Posted November 9, 2009 Author Report Share Posted November 9, 2009 If anyone wants this topic documented, get involved on the blue side: http://decibel.ni.com/content/docs/DOC-6673#cf Felix Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.