Can I set the size of a GUI control in centimeters?

Hello

I know I can get the resolution of the monitor and with this set the display size of a control in a graphical interface. However, the actual size (in centimeters) actually depends on the dimensions (in centimetres) of the screen. I can't that programmatically?

Hello

I got it on my system (Win7Pro SP1) with a few modifications.

Attached a small sample project that creates a decoration of size in centimetres: you can use as the basis for your real needs.

Basically, the atlstr.h is only required for some manipulation which is not necessary (as mentioned by the author of the article, you logged in). In addition, you must include windows.h too for some statements and add setupapi.lib to the project. In addition, I did only minor changes: original lines are commented immediately before the actual run lines.

Tags: NI Software

Similar Questions

  • I can adjust the size of the text on the new mail / out, but can't set the size on the mail coming on my screen.

    Problem with the size of the text

    I can adjust the size of the text on the new mail / out, but can't set the size on the mail coming on my screen. Evil in my sight.

    Inhabitant of the desert

    Is this a comment or a question? If a question, care to share with us, what e-mail program you speak?

  • Programmatically set the size of a table control (not the number of col and lines)

    Hi all

    I am trying to create a little VI, in which the user selects the number of columns and rows in a table, and after clicking on a button 'OK', the table control is displayed in the control panel (to be filled in by the user). To do this, I use the nodes property to the number of columns and lines. I have no problem with that.

    However, I want to "limit" the size of the control table (control of himself, not the dimensions of the table) and make use of vertical and horizontal table, the scroll bars. I want to avoid it is that passes type 100 user and 100 lines and appears a huge table control.

    I could tho this by using an array instead of an array, via the node property "size", but I would use an insead table a table.

    Thank you very much

    Daniel

    With a table control, you cannot set the display size to be anything other than a multiple of a complete cell.

    If you are limited to a number of lines and columns.  If you want to resize with more control you also need to resize the control within the Bay, accessible via the property 'picture Element '.

    Another option (but seems huge exaggerated) is to place your table in a secondary and set the size of the secondary to the size you need and enable scrollbars for her.  It is not an option that I would choose but if it helps...

    Have it, your description of your user interface sounds not very intuitive.  How the user knows at any time exactly what cell they access if they have to scroll backwards?

  • How to set the size (height and width) 100% swf

    Hi all

    Here, I want to put my SWF height and width to 100%.

    If I want to increase my height by hanging out on my corner SWF then automatically the width should change.

    If the two should be 100% in all cases. How to get there.

    In the browser? Flash can not set the size of itself - its size is defined in the HTML code. You must use JavaScript to set the Flash object width and height on window resize event.

  • How can I set the default font size and type for the outgoing Hotmail mail?

    How can I set the default font size and type for the outgoing Hotmail mail?

    Hi Dale,

    What is the email client do you use?

    Outlook can be configured per - start Outlook-> Tools-> Options-> mail-> fixed Format and fonts... Select the font and size you need... Click ok on all screens.

    I hope this helps.

  • Set the size of fixed table

    Hello. I am developing a VI to a FPGA target and I'm trying to make sure who is using the VI can specify the size of an array of input when they instantiate (such as by the presence of an entry to the VI who said "maximum table size" or something). So far, it seems that the only way to do something like this is to go into the VI himself and manually set the size of table for each entry in the table for the VI (open the VI, do a right-click on each input array, select 'Set the size Dimension', choose 'fixed', set number of items). I would like to have a point where I can set the size of all tables at once (as in my case, they are all the same size) and let the person using the VI set it to the right size for which application they use it for (to be clear, let's say I have two uses for this VI and in one case (, I have a table of entry of size 100 and other use of size 1000, I would like to be able to put these in some way rather than do it through the dialog box). Thank you.

    It's a little more work, but it could be a case of good use for a memory block on the FPGA.  Make it bigger you wait, you need, and then store the actual number of items somewhere.  This will allow you to vary the amount of data without consuming large amounts of FPGA resources on an oversized table.

  • How to set the size of the frame in the controls of decoration

    Hello

    I paint frames or boxes using the templates in the control of "Décorations" in labview.

    Is there another way to set the size of the frames or boxes rather than drag? also, how can I change the color of the borders?

    Thank you

    Joyce

    Select the item.  Click the resize objects in the toolbar.  Choose the last of them, which shows a resizing in a speech bubble.  Now, a dialog box appears that allows you to set the height and width.

    For something of color, Shift right click to bring up the box tool.  Take the brush.  Click on the thing you want to change for example from the border.  It could now be the wrong color, do a right click so that brings up the color picker.  Now, select the color you want in fact.  If you want something to be transparent, choose the T in the upper right of the color dialog box.

  • How to set the size of text with the report generator

    Hello.

    I'm trying to set the size of the text with the report generator, but I find that I can't do this. Here is an example of the code that I use. Can someone tell me what I'm doing wrong please?

    Thank you, Alec

    I was generation from a word template.

    I hacked my version of the Toolbox to give me maunal indicator control "model? He had obtained his permenatly self stuck on "T". I exposed this flag outside the API, so I can control under certain weather conditions I may or may not use the model police.

    Does anyone know how to use this toolkit, or I did the right thing?

    Cheers, Alec

  • How to set the size of plot-legend with properties?

    Hello

    in the screeenshot I create 10 plots that are displayed in a xy chart.

    According to the number of plots of the legend is updated.

    How can we set the legend is highest of 5 plots and other plots 5 (or more) is visible if you are using the scroll bar?

    Thank you

    Solved.

    Name of the property is under: legend + size + high

  • My window size is about 1/4 "wider than my monitor screen. How to set the size of the window?

    My window size is about 1/4 "wider than my monitor screen. How to set the size of the window?

    Hello

    ·        You did it changes on your machine before this problem?

    ·        You have a LCD or TFT monitor?

    Usually in LCDs, there will be an option to set the button of the screen on the monitor resolution.

    You can also follow these links for the resolution of the monitor & check if it helps.

    Change the resolution of your monitor

    To change your screen resolution

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Set the size of the window for DOS applications running on the Windows XP Pro machine

    I have some old Basic (QBasic, Flodraw) DOS programs I still want to run occaisionally. 2002 was the last time I used them, so I don't know what OS was running then. When I run the application now that open windows are not ideally sized, the Flodraw is too big, I can't see it as much of the screen as I would, and QBasic is too small to get enough text to keep my train of thought.

    Anyone know how I can get control of the size of the window? I need create .pif or something like that?

    Thank you.

    Right click on the shortcut for the program icon, and then click Properties. You will see where you can set the size. MS - MVP - Elephant Boy computers - don't panic!

  • Photos for wallpaper are too big. How can I change the size to fit?

    Photos for wallpaper are too big. How can I change the size to fit?

    Hi demetman,

    Welcome to the Microsoft answers community site.

    Follow the steps below to set the desktop background and select the image to fit the display screen

    1. open the wallpaper by clicking on the Start button , by clicking on Control Panel, appearance and personalization, personalization, and then clicking desktop wallpaper.

    2 click on the image or color you want for your background.

    If the image you want to use is not in the list of background images to display, click the location of the image downwards arrow to view other categories, or click Browse to find the picture on your computer. When you find the image of your choice, double-click it. It will become your desktop wallpaper and appear in the list of desktop backgrounds.

    3. under how the image must be positioned, choose to have the picture fit the screen, tile, or be centered on the screen and then click OK, you can choose here to adapt to the screen.

    Microsoft reference Article: http://Windows.Microsoft.com/en-us/Windows-Vista/change-your-desktop-background-wallpaper

    I also suggest you check these Microsoft Windows Help & How - Articles:
    1: change the screen resolution
    2: get the best display on your monitor
    3: change your desktop wallpaper (wallpaper)
    4: Customizing the desktop: recommended links

    Let me know if it works. Good luck!

    Hope this information is useful.

    Thank you and best regards,
    KKS Vijay

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • How can I change the size of the image on my TV screen?

    original title: screen size

    How can I change the size of the image on my screen? I connected my laptop to my TV via a HDMI cable. I don't see the bottom top or side photo ei portionso: can not see the bar of tasks or x box. I lowered the resolution of the screen to something 720. but did not change the size of the screen

    Hi kimhealy


    You have set display up-to-date drivers installed?


    Method 1:

    Step 1 :
    To resolve the problem, you can check if uninstalling and reinstalling then the display driver allows.
    Also check if you have any exclamation point or cross the marks on the sides of display devices listed in Device Manager.

    a. click Startand then click Control Panel.

    b. click system and Maintenance, click Systemand then click on Device Manager.
    Note If Control Panel is in Classic view, double-click System, and then click Device Manager.
    If you are prompted for an administrator password or a confirmation, type the password, or click allow.

    c. in the Manager device, expand display driver, display devices, right-click and then click on Properties and on the driver tab, click Uninstall.

    d. When you are prompted to confirm that you want to remove the device, click OK.

    e. restart the computer.

    After the computer restarts, the drivers will be installed automatically.

    Step 2:

    If the problem persists I suggest you to check if you install the latest updated driver on the manufacturer's Web site to help you.


    You can also check out the link below and check if you get an updated video driver. You can install updates in optional updatesvideo card driver.
    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly


    Method 2:
    If you are on windows media center, you can also refer to the link below and check.

    http://Windows.Microsoft.com/en-us/Windows-Vista/how-do-I-improve-the-image-on-my-monitor-or-TV

    See also below the link-help

    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-your-computer-to-a-TV

     

    I hope this helps.

  • How to set the size of my screen?

    Original title: maintenance

    How to set the size of the screen

    Norm 21

    How to set the standard for screen size 21

    Resolution:
    Right-click on a free space of the desktop > Personalize > Display Setings > move the slider to the left or right to set the resolution. Check your user manual, see if she tells you what resolution is for your computer. My laptop is using 1280 x 800 pixels.

    Here is a table of the guide line:

    You can also try this method...
    Re - set DPI:
    Right-click on a free space of the desktop > customize > column to the left, adjust the size of police (in PPP) > uac prompt > click default scale (96 DPI).

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • How to set the size of the print topic

    I have a deskjet 3520 all in one and my computer is a computer laptop dv6 with prof. windows7 64 bit.

    I want to print traces of PCB so that I can make my own, but I do not know how to set the size

    with this printer. They take the entire page when I want to be 2.35x3.35.

    Don't know if it is possible with this printer.

    Any help would be apreciated.

    Last night, I figured out how to resize with IrfanView. It allows me to get the size I want in metric or inches

    and it's free.

Maybe you are looking for