Jump to content

Fit objects in tab control in a lower screen resolution


Recommended Posts

Hello to all.

Thanks for helping me.

 

I have developed an application in a laptop of 15.6 inches.

Now I am creating a .EXE to deploy in a PLC of 15 inches.

All my front panel is a tab control which has controls and indicators inside.

 

The problem is that when I deploy de application I can not see a part of tab control (15 inches vs 15.6 inches).

How can I fit tab control to 15 inches easyly?

 

Thanks a lot.

Link to post
Share on other sites

LV metrics is in pixels, not in inches anyway. Your best bet is to develop from start for the exact number of pixels you have on the deployed screen. You could also try VI properties/Window size/Mantain proportions of window and VI properties/Window size/Scale all objects, or Scale object with pane on single controls, but the result may not be impressing, and this is a notorious flaw of LV. For finer control, you could specify programmatically the positions and sizes of all your objects with property nodes, which is certainly tedious.

Link to post
Share on other sites

Oh the pain of resizing LabVIEW UI's.  I learned tons of work arounds to make useful UI and UX in LabVIEW and several involve using having controls fitting to panes and using splitters, and subpanels in VIs.  If you do go with the Maintain Proportions of Window that ensegre suggested, I'd recommend starting with you UI as small as you expect to support, and then turn that setting on.  It tends to work a little better if you only make controls get larger, then resize back down to the original size.  If you have a UI and then try to make it smaller things get squished and overlap, then when you make it large again things are out of place.

Link to post
Share on other sites
20 hours ago, ensegre said:

LV metrics is in pixels, not in inches anyway. Your best bet is to develop from start for the exact number of pixels you have on the deployed screen. You could also try VI properties/Window size/Mantain proportions of window and VI properties/Window size/Scale all objects, or Scale object with pane on single controls, but the result may not be impressing, and this is a notorious flaw of LV. For finer control, you could specify programmatically the positions and sizes of all your objects with property nodes, which is certainly tedious.

 

18 hours ago, hooovahh said:

Oh the pain of resizing LabVIEW UI's.  I learned tons of work arounds to make useful UI and UX in LabVIEW and several involve using having controls fitting to panes and using splitters, and subpanels in VIs.  If you do go with the Maintain Proportions of Window that ensegre suggested, I'd recommend starting with you UI as small as you expect to support, and then turn that setting on.  It tends to work a little better if you only make controls get larger, then resize back down to the original size.  If you have a UI and then try to make it smaller things get squished and overlap, then when you make it large again things are out of place.

Thanks for answering. Yes I have tried to go with the Maintain Proportions of Windows that @ensegre suggesed, UI fits well (more or less...) but the problem is that I have some controls that their position is calculated programatically depending on ig user click on them.

So I am imagine that I have to use property nodes for each resolution right?

Thanks again.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By nikp
      Hello Lavag's,
      Currently developing an UI with custom titlebar like JKI Package Manager 2020, applications from MS Office etc. I have a laptop (1440 X 900) running windows 7 and a second monitor with resolution 1920 X 1080. Scale and layout options for both monitors are set to 100%. 
      "FP.State = Maximized" seems to work only when the resolutions for all monitors are equal or selecting the monitor with highest resolution as main screen.
      1. Laptop(1440 X 900) as main screen: FP.State = Maximized works fine in Laptop but not in second monitor. The Panel Bounds and Window Bounds are way out of the screen resolution.
                  
      Same as in case of JKI VI Package Manager (2020)
       
      2. Setting Window bounds and panel bounds manually:
      Some pixels appear in the another monitor when setting the Window Bounds and Panel Bounds manually. This sems to be also the case with NI-Package Manager
      Is there a way to make it work?  Any help is greatly appreciated.
       
      Regards,
      Nikhil.
       
      Custom Titlebar.vi
    • By Moes
      Hello everyone i am relative new to labview and currently i am bit stuck need help...
      i want to capture data with a digital trigger on my chassis PFI0 (9178), the pulse is 20ms long and occurs on my straingauge 9237 module.
      The pulse comes in 10 times in a row with couple of miliseconds between it, can i measure it every time and push it inside an array like a "last in first out" memmory to evaluate it slower for the user?
       
      I am currently struggeling with the loop dividing into more then one loop approach.
       
       
      How to breach out from accquire->store->plot in one loopdone right with good performance? I don't know how to shape the cure because there is a dependency from loop time to datapoints with the daqmx task inside of it :-/
      Capturing should always be possible and run in background and the user just uses the frontend to play around with filters (me learning what filter shape the cure in which way)
       
      It would be nice if someone can share their knowledge towards realizing multiple graphs from a pulse that comes in and is stored in a graph.
      I know my program is not pretty right now but with progress it will be nicer, function first to learn!

      WheatstoneSix_6.vi
    • By Taylorh140
      I am trying to use a mixed signal graph to plot a set of digital data (12 lines) and 4 arrays of analog data in XY format.  For the analog data I want each array to be assigned to a different group in the graph, but at runtime they seem to all default to Group 1 (the Pressure graph shown below).  I have been able to change them using the legend or the graph properties for each plot, but cannot find a way to do it programmatically.  Is there a property node that can be used to set this?
       

    • By Axelwlt
      Hi,
      Is there a way to make a type def behave as a Strict Type Def during development (so that cosmetic changes made to the .ctl are propagated), and as a Type Def. at runtime (so that the cosmetics can be still be changed with property nodes)?
      My use case is that the code just needs to colour the controls at runtime, the other property values are decided during development.
    • By hichem55
      Hello,
       
      I will take the CLD exam in two days and I would be grateful if anyone could help me in these two questions:
       
      1/ Do I have the ability to change a Cluster from the given UI into a Typedef?
      2/ In addition to Tip strips, Is it recommended to add some comments on the front panel or not?

      Thank you very much!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.