tnt Posted May 30, 2006 Report Share Posted May 30, 2006 Hello, a while ago I've made a subvi that is able to get all controls of the toplevel-VI. This has been accomplished by getting all the controls[] refnums and then cycling through all the clusters/tabs/arrays to get an array of all refnums (only controls). Then when 1 of these items gets the keyfocus (cycle entire array), a popup-keyboard will appear. Now in a new project (still LV 7.1.1) I started using subpanels and noticed that the controls on the subpanel are not accessible when starting from the subpanel refnum. :headbang: (casting of a refnum to VI-type fails, casting to subpanel / paneltype does not give any access to a controls[]-property. As a workaround I've called the controls[]-property directly from the VI-refnum that is started in the subpanel, but I really would like to reach these properties starting from the top-level-VI-refnum. Is ther someone out there to give me a clue? THX, tnt Quote Link to comment
crelf Posted May 30, 2006 Report Share Posted May 30, 2006 Maybe I've misunderstood you, but is this what you're trying to do? Quote Link to comment
tnt Posted May 31, 2006 Author Report Share Posted May 31, 2006 Maybe I've misunderstood you, but is this what you're trying to do? That's what I'm using for the moment, what I really would like to achieve is to get access to the VI-ref (from Insert VI) starting from the subpanel-refnum itself (and NOT by getting all the controls when starting the subpanel). THX anyway, tnt 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.