fuzzycontrolfreak Posted May 23, 2008 Report Share Posted May 23, 2008 Hello there, I usually have trouble designing stand-alone applications on my laptop's widescreen. After i finish the vi, i usually switch to an 800x600 or 1280x600 so that I can easily scale and position the objects in my front panel. Isn't there any smarter way to do this?!! I also have another issue with letting the users use the OS, I have been frequently asked to let the user type a password in order to be able to exit the application and access the windows explorer, is this achievable via G-code or do I have to implement it using other language?! Thankyou very much,,, Bedair Quote Link to comment
jgcode Posted May 23, 2008 Report Share Posted May 23, 2008 QUOTE (fuzzycontrolfreak @ May 22 2008, 03:08 PM) I usually have trouble designing stand-alone applications on my laptop's widescreen. After i finish the vi, i usually switch to an 800x600 or 1280x600 so that I can easily scale and position the objects in my front panel. Isn't there any smarter way to do this?!! Hi fuzzycontrolfreak The following may help (or may be overkill) If you need multiple GUI interfaces e.g. standard 4:3 for some users and also for other users to take advantage of widescreen or a massive display then you can use a technique to seperate the GUI from the main VI engine. You code one engine VI that handles all the guts of the program. And you code up multiple VIs to handle the GUI. All GUI's contain the same controls but you can manipulate them natively for your desired resolution. The GUI VIs are quite simple. The engine is the same so you minimise code maintaince but gain the advantage of different screens. Use a config or monitor display property node etc.. to call the desired res GUI. To implement it code wise - one way to do it is to use dynamically registered events to subscribe to the GUI (the other I have seen is to use queues). Then just run the GUI and keep it's FP in memory as it has no code (it doesn't need it) that allows it to continue run. I have played with this design a little bit. I like the concept. Props to VI Engineeing as I personally saw it first in their course manual. :worship: [ Quote Link to comment
TobyD Posted May 23, 2008 Report Share Posted May 23, 2008 QUOTE (fuzzycontrolfreak @ May 22 2008, 12:08 AM) I usually have trouble designing stand-alone applications on my laptop's widescreen. After i finish the vi, i usually switch to an 800x600 or 1280x600 so that I can easily scale and position the objects in my front panel. Isn't there any smarter way to do this?!! If you have a specific screen size requirement you can use a frame from the decorations palette to define your front panel and/or block diagram boundaries. As you drag the frame a tooltip will tell you how big it is. Just set it to 800x600 or 1280x600 and keep your code within those boundaries. If your laptop screen is smaller that that it still won't all fit on the screen at the same time, but it will give you a reference to work with as you scroll around. -Toby Quote Link to comment
Yair Posted May 23, 2008 Report Share Posted May 23, 2008 QUOTE (TobyD @ May 22 2008, 07:15 PM) As you drag the frame a tooltip will tell you how big it is. Or you can use the http://forums.ni.com/ni/board/message?board.id=170&message.id=260737' target="_blank">resize dialog: 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.