get the dimensions in pixels of office?

How can I query the findout the dimensions of the screen desktop system, the program runs on?

I need to popup a window full-screen without borders, up to now, I had control of the hardware, so I know that the resolution of the screen (1920 x 1200), but there is interest in a system of "just an application" so I have to deal appropriately with different (probably smaller) resolutions pixels maximum.

This window is basically a canvas tile controls programmatically created the only real question is so get the size of the screen running and creating tiles or print a message of error if the screen is too small for use (i.e. 800 x 600)

-wally.

int i, [9] w = {0}, [9] h = {0}, Nmonitors, monitor first, primary, [10] = {0}, albums [9] = {0}, left [9] = {0};

GetSystemAttribute (ATTR_NUM_MONITORS & Nmonitors);
GetSystemAttribute (ATTR_PRIMARY_MONITOR, & primary);
GetSystemAttribute (ATTR_FIRST_MONITOR, &first);)
Monitor [0] = first;
for (i = 0; i<>
GetMonitorAttribute (monitor [i], ATTR_NEXT_MONITOR, & monitor [i + 1]);
GetMonitorAttribute (monitor [i], ATTR_HEIGHT, &h[i]);)
GetMonitorAttribute (monitor [i], ATTR_WIDTH, &w[i]);)
GetMonitorAttribute (monitor [i], ATTR_TOP, & top [i]);
GetMonitorAttribute (monitor [i], ATTR_LEFT, & left [i]);
}

Thanks, the code snippet above seems to have all the info that I need to use only the CVI calls.  I usually mix CVI and Win32 call anyway, but this avoids having to dig up the documentation on the Win32 structure typedefs.

Thanks for the links to the Win32 multi-monitor documentation.

-wally.

Tags: NI Software

Similar Questions

  • Could not get the matrix of pixels per 'ImageToArray' VI...

    I have run the 'ImageToArray' example, but you see, I can't get the matrix of pixels in the image.

    could someone help me?

    Thank you very much!

    I deal with problems, thank you!

  • ScriptUI: get the dimensions of the container using the automatic formatting?

    No there is no way to get the dimensions of a ScriptUI container that uses the automatic formatting?  What container root (Panel or window)?  I'm writing a presentation for a group and I would like to react to the dimensions of the window or Panel, as it is resized, but it seems that this info is still not defined when the automatic formatting is used for containers of the ancestor.  No there is no way to know what size of the containers of the ancestor is without write handlers of layout custom for each of them?

    I think that it is either

    .size
    

    or

    .bounds
    

    which returns the values.

  • How to get the dimensions of pageItems?

    Hi all

    I want to get the dimensions of all the parts WRT a page. So far, I am able to get the exact dimensions of the graphics framework.

    But in the case of a block of text, Im getting different values than expected.

    I'm after that...

    IGeometry create 1) in the following sequence...

    pageItemRef-> IGraphicFrameData->-> IGeometry IHierarchy

    (2) PMRect xyz =IGeometry-> GetPathBoundingBox (transformationMatrix);

    where transformationMatrix is obtained according to page.

    IM from the transformationMatrix of even for two cases that is the graphic and the text block. But it gives me wrong output in case of text block.

    ex,

    My graphics framework are co - ord.

    "LeftBottom': '(150.5,259)."

    "RT": "(340 259)."

    "RightTop': '(340,147.5)."

    "TopLeft": "(150.5,147.5)"... which are correct WRT

    While it shows textframe co - ord as -

    "LeftBottom": "(-152.25,469.5)", "

    "RT": "(152.25,469.5)."

    "RightTop': '(152.25,322.5)."

    "TopLeft": "(-152.25,322.5)" "

    How can I get right coordinates? Please suggest me something...

    I found the solution to my problem...

    So, in the case of the text block, I've created interfaces in order...

    IMultiColumnTextFrame---> IFrameList---> ITextFrameColumn---> IGeometry

    Can use this IGeometry to find the dimensions of the framework text.

  • When you use the Polygonal Lasso with 13 elements, I get the message 'no pixels are not selected to more than 50% ' why and how to remedy?

    When you use the Polygonal Lasso with 13 elements, I get the message ' WARNING: no pixel is selected to more than 50 percent. "  Why - and how to fix it?

    Make sure that the correct layer is selected.

    Decrease the amount of feathers.

  • How to get the dimensions of the area within the window of the scene?

    Hello

    I am able to get the size of a window using stage.getWidth () and stage.getHeight (), which gives the dimensions of the window, including the border. But how the size of the dimensions within the window, which is the area inside the border of the window?

    I had created a way to understand this by calculating the difference between the sides of my initial scene and my step. I called this window filling, which is essentially the thickness of the border on the sides and up and down.

    This method of calculation for available surface area in a window is not reliable when a window is maximized, because the thickness of the border of the window shrinks when enlarged. And if your stage size is larger than your scene, then you will get a wrong value.

    There must be a way to get this area. I need it to do correctly scaling.

    Thank you
    Jose

    Published by: jmart on 22 August 2012 23:58

    I did it by adding a 'master' component to the stage

    mainScene = new scene (masterPane, 430, 430);

    The master component is just a container that contains all the content but will resize the window resize event and therefore will always have the right width and height.

    masterPane = new Pane();
    masterPane.getChildren () .add (root);

    Due to that you can resize your content based on

    Double screenWidth = masterPane.getWidth ();
    Double screenHeight = masterPane.getHeight ();

    Here is an example. You can zoom (scrollwheel), pan (click and drag) and Center + scale on the screen (middle button) (only if the content is a square, there is a bug if the content is greater than the width, which I had no time to eliminate now but you get the point)

    import javafx.animation.Animation;
    import javafx.animation.ParallelTransition;
    import javafx.animation.ParallelTransitionBuilder;
    import javafx.animation.RotateTransition;
    import javafx.animation.RotateTransitionBuilder;
    import javafx.animation.ScaleTransition;
    import javafx.animation.ScaleTransitionBuilder;
    import javafx.animation.Timeline;
    import javafx.animation.TranslateTransition;
    import javafx.animation.TranslateTransitionBuilder;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseButton;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.ScrollEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    
    public class Test extends Application
    {
        Stage primStage;
        Scene mainScene;
        Group root;
        Pane masterPane;
        Point2D dragAnchor;
        double initX;
        double initY;
    
        public static void main(String[] args)
        {
            launch(args);
        }
    
        @Override
        public void init()
        {
            root = new Group();
    
            final Pane pane = new Pane();
            pane.setStyle("-fx-background-color: #CCFF99");
    
            pane.setOnScroll(new EventHandler()
            {
                @Override
                public void handle(ScrollEvent se)
                {
                    if(se.getDeltaY() > 0)
                    {
                        pane.setScaleX(pane.getScaleX() + pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() + pane.getScaleY()/15);
                    }
                    else
                    {
                        pane.setScaleX(pane.getScaleX() - pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() - pane.getScaleY()/15);
                    }
                }
            });
    
            pane.setOnMousePressed(new EventHandler()
            {
                public void handle(MouseEvent me)
                {
                    initX = pane.getTranslateX();
                    initY = pane.getTranslateY();
                    dragAnchor = new Point2D(me.getSceneX(), me.getSceneY());
                }
            });
    
            pane.setOnMouseDragged(new EventHandler()
            {
                public void handle(MouseEvent me) {
                    double dragX = me.getSceneX() - dragAnchor.getX();
                    double dragY = me.getSceneY() - dragAnchor.getY();
                    //calculate new position of the pane
                    double newXPosition = initX + dragX;
                    double newYPosition = initY + dragY;
                    //if new position do not exceeds borders of the rectangle, translate to this position
                    pane.setTranslateX(newXPosition);
                    pane.setTranslateY(newYPosition);
    
                }
            });
    
            int x = 0;
            int y = -40;
            for(int i = 0; i < 5; i++)
            {
                y = y + 40;
                for (int j = 0; j < 5; j++)
                {
                    final Rectangle rect = new Rectangle(x, y, 30 , 30);
                    final RotateTransition rotateTransition = RotateTransitionBuilder.create()
                            .node(rect)
                            .duration(Duration.seconds(4))
                            .fromAngle(0)
                            .toAngle(720)
                            .cycleCount(Timeline.INDEFINITE)
                            .autoReverse(true)
                            .build();
                    rect.setOnMouseClicked(new EventHandler()
                    {
                        public void handle(MouseEvent me)
                        {
                            if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
                            {
                                rotateTransition.setToAngle(0);
                                rotateTransition.stop();
                                rect.setFill(Color.BLACK);
                                rect.setScaleX(1.0);
                                rect.setScaleY(1.0);
                            }
                            else
                            {
                                rect.setFill(Color.AQUAMARINE);
                                rect.setScaleX(2.0);
                                rect.setScaleY(2.0);
                                rotateTransition.play();
                            }
    
                        }
                    });
    
                    pane.getChildren().add(rect);
                    x = x + 40;
    
                }
                x = 0;
    
            }
    
            pane.autosize();
            pane.setPrefSize(pane.getWidth(), pane.getHeight());
            pane.setMaxSize(pane.getWidth(), pane.getHeight());
            root.getChildren().add(pane);
    
            masterPane = new Pane();
            masterPane.getChildren().add(root);
            masterPane.setStyle("-fx-background-color: #AABBCC");
            masterPane.setOnMousePressed(new EventHandler()
            {
               public void handle(MouseEvent me)
               {
                   System.out.println(me.getButton());
                   if((MouseButton.MIDDLE).equals(me.getButton()))
                   {
                       double screenWidth  = masterPane.getWidth();
                       double screenHeight = masterPane.getHeight();
                       double scaleXIs     = pane.getScaleX();
                       double scaleYIs     = pane.getScaleY();
                       double paneWidth    = pane.getWidth()  * scaleXIs;
                       double paneHeight   = pane.getHeight() * scaleYIs;
    
                       double screenScale  = (screenWidth < screenHeight) ? screenWidth : screenHeight;
                       int    screenSide   = (screenWidth < screenHeight) ? 0 : 1;                 
    
                       double scaleFactor = 0.0;
                       if(screenSide == 1)
                       {
                           scaleFactor = screenScale / paneWidth;
                       }
                       else
                       {
                           scaleFactor = screenScale / paneHeight;
                       }
    
                       double scaleXTo = scaleXIs * scaleFactor;
                       double scaleYTo = scaleYIs * scaleFactor;
    
                       double moveToX  = (screenWidth /2) - (pane.getWidth()  / 2);
                       double moveToY  = (screenHeight/2) - (pane.getHeight() / 2);
                       TranslateTransition transTrans = TranslateTransitionBuilder.create()
                           .duration(Duration.seconds(2))
                           .toX(moveToX)
                           .toY(moveToY)
                           .build();
                       ScaleTransition scaleTrans = ScaleTransitionBuilder.create()
                           .duration(Duration.seconds(2))
                           .toX(scaleXTo)
                           .toY(scaleYTo)
                           .build();
                       ParallelTransition parallelTransition = ParallelTransitionBuilder.create()
                          .node(pane)
                          .children(transTrans,scaleTrans)
                          .build();
                       parallelTransition.play();
                   }
               }
            });
    
        }
        public void start(Stage primaryStage)
        {
            primStage = primaryStage;
            mainScene = new Scene(masterPane, 430, 430);
            primaryStage.setScene(mainScene);
            primaryStage.show();
        }
    }
    
  • get the product code for microsoft office that is installed in my new computer___

    need the product code for microsoft office

    Here are four utilities that will display your product keys:

    Belarc Advisor: http://www.belarc.com/free_download.html
    (He did a good job of providing a wealth of information.)

    Also: http://www.magicaljellybean.com/keyfinder.shtml
    and: http://www.nirsoft.net/utils/product_cd_key_viewer.html
    and RockXP: http://www.majorgeeks.com/download4138.html which has additional features

    If your new PC comes with a trial version of Office that you had to purchase MS Office to continue to use it.

    Microsoft Office 2010 technology guarantee
    http://Office2010.Microsoft.com/en-us/Tech-guarantee/Microsoft-Office-2010-technology-guarantee-FX101825695.aspx

    Microsoft Office 2010 technology guarantee: FAQ
    http://Office2010.Microsoft.com/en-us/Tech-guarantee/Microsoft-Office-2010-technology-guarantee-FAQ-HA101812304.aspx

    Microsoft Office 2010 technology guarantee program
    http://OEM.Microsoft.com/script/contentPage.aspx?PageID=565882

    Qualifying products for Office 2007 and Office 2010 upgrade product
    Office 2007 Office 2010 product qualification upgrade product
    Office Ultimate 2007 Office Professional 2010
    Office Professional 2007 Office Professional 2010
    Office Small Business 2007, Office Professional 2010
    Office Standard 2007 Office Home and Business 2010
    Office Standard 2007 military reconnaissance Office Home and Business 2010
    Office home and Student 2007, Office Home and Student 2010
    Office Basic 2007 Office Home and Business 2010
    Office personal 2007 (to the Japan only) Personal 2010 (the Japan only)

    Word 2007, Word 2010
    Excel 2007 Excel 2010
    PowerPoint 2007 PowerPoint 2010
    OneNote 2007 OneNote 2010
    Access 2007 Access 2010
    Outlook 2007 Outlook 2010
    Outlook with business contact 2007 Outlook 2010 Manager *.

    Project Standard 2007 Project Standard 2010
    Project Professional 2007 Project Professional 2010
    Publisher 2007 Publisher 2010
    Publisher 2007 Academic Publisher academic 2010
    Visio Standard 2007 Visio Standard 2010
    Visio Professional 2007 Visio Professional 2010

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • How can I get the dimensions of the composition?

    I am creating a plug-in that expands the size of the output buffer.

    Currently, the user must manually set the input layer, such as the output corresponds to the model after the expansion of the buffer.

    I want to do is make an option that creates and the size of the composition of output such as a not updated entry on the scale fits directly into the model.

    I intend to do this in a last step using PF_COPY.

    My problem is that I can't get the size of the publication.

    How do I do that?

    I'm on 2015 SDK and I want my plugin to work in AE and first CC

    the following steps will have the size of the model:

    1 AEGP_GetEffectLayer()

    2 AEGP_GetLayerParentComp()

    3 AEGP_GetItemFromComp()

    4 AEGP_GetItemDimensions()

    However, it would be the size of the model in full resolution. Be aware that if you

    you will need to take into account the factors of downsample.

  • Get the dimensions of Clipping Path

    Hi all!

    OK, so I looked a bit around and have not found what I'm looking for.

    I'm a loop in all placedItems in the active document.

    Checking to see if it is selected, and by placing the name of the element placed above him.

    The issue I'm running into is so its in a clipping mask then the location of the tag is far (its where the place would be if it has not been cut out)

    So I need to get the location of the clipping of the positioned element mask and allows to set the text there.

    Thank you

    -Boyd

    Once again:

    You need not to loop through your selection and all of your placed items.

    I mean something like this:

    var aDoc = app.activeDocument;
    var theSel = aDoc.selection;
    // for the first selected item
    if (theSel[0].typename == "PlacedItem") {
        // --- // get the name and position
        //alert("without clipping mask");
        alert(theSel[0].file.name);
        //alert(theSel[0].position);
        } else {
            if (theSel[0].typename == "GroupItem" && theSel[0].clipped) {
                if (theSel[0].pageItems[1].typename == "PlacedItem") {
                    // --- // get the name and position
                    //alert ("with clipping mask");
                    alert (theSel[0].pageItems[1].file.name);
                    // --- // but furthermore you need some maths to find the correct values of the clipped image
                    //alert ("clipping mask position: " + theSel[0].pageItems[0].position);
                    //alert ("placed item position: " + theSel[0].pageItems[1].position);
                    }
                }
            }
    

    Have fun

  • get the specific channel pixels

    Hello world!

    Nobody knows
    How to get to the Pixel values of each channel separately? I want to transform RBG to XYZ and I change channel od pixels. Pleasse help!

    A filter could simply use AdvanceState calls as usual.

    And if you want to convert RGB to XYZ, you need all 3 channels at the same time, not separately.

  • ORA-13268: error to get the dimension of the USER_SDO_GEOM_METADATA

    I get an error message if I send my application using ODP.NET .NET (Oracle Spatial) request. I use OR operator and SDO_WITHIN_DISTANCE. Please find the following query. The application works perfectly when I run the query in SQL Developer

    SELECT * from TABLE1
    ....
    WHERE SDO_WITHIN_DISTANCE (GEODATA. FORM, (SDO_CS. TRANSFORM (sdo_util.from_gml311geometry ("< srsName = gml:Point" SDO:4326 "xmlns:gml =" http://www.opengis.net/gml">))
    < xmlns:gml = "http://www.opengis.net/gml" > 50 14 gml:pos < / gml:pos >
    ((((< / gml:Point > '), 4326)), 'distance = 9999.98906889') <>'True '.
    ))
    OR (COLUMN1 IN)
    (SELECT * from TABLE 2)
    WHERE SDO_WITHIN_DISTANCE (GEODATA. FORM, (SDO_CS. TRANSFORM (sdo_util.from_gml311geometry ("< gml:LinearRing xmlns:gml ="http://www.opengis.net/gml"srsName =" SDO:4326 ">"))
    < xmlns:gml = "http://www.opengis.net/gml" > 50 14 gml:pos < / gml:pos >
    < xmlns:gml = "http://www.opengis.net/gml" > 1 gml:pos 1 < / gml:pos >
    < gml:pos = "http://www.opengis.net/gml" > 20 20 xmlns:gml < / gml:pos >
    < xmlns:gml = "http://www.opengis.net/gml" > 80 80 gml:pos < / gml:pos >
    < xmlns:gml = "http://www.opengis.net/gml" > 50 14 gml:pos < / gml:pos >
    ((((< / gml:LinearRing > '), 4326)), 'distance = 9999.98906889') <>'True '.
    ))))

    I have a table with SRID 4326 GEODATA and I created the index also.

    "((((If I replace"(</gml:Point >'), 4326)), ' (distance = 9999.98906889') <>'True' "with" < / gml:Point > '), 4326)), 'distance = 9999.98906889') = 'True' "everything works fine.

    Its very urgent. Any help would be greatly appreciated.

    Duh! The news of the error was in the subject line. I totally missed it.

    The correct syntax seems to be "'), 4326))(, ' distance = 9999.98906889') = 'True'" according to the documentation space:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e11830/sdo_operat.htm#SPATL1041
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e11830/sdo_complex_queries.htm#SPATL1279

    All the examples and description of use contain the equals symbol prior to 'True '. I have not found one without it.

    I'm not an expert by any means of space. So, I don't know why Developer SQL supports a syntax without the equals symbol. It is perhaps a question on the SQL Developer forum or the forum space.

  • How can I get the chart inserted with "Senior officer" at the center inside a table column?

    I'm trying to insert graphics into the columns of the table using 'Frame' above, but the inserted chart, don't Center not within the column, such as the text of paragraph. Horizontal alignment settings seems to be ignored for the chart.

    I can solve this problem by changing the image containing the graph in the reference page, alternatively by changing the margins of cell parameter in the paragraph designer but neiter of these solutions is really good. I would like a solution that really centers the chart in the column of table not only simulates, as I like it to be compatible with the design of future changes in master pages, etc. of lika.

    Is there a nice way to fix this?

    It seems rather as if senior / lower frame is always aligned to the left. This isn't just a problem of Table. It does the same thing in ordinary text blocks.

    I worked in a store, at home, we knew as our column width (which was constant) and controlled the placement of art in affecting the graphic block of reference Page at the address named full column width, then precisely position the art to the breast.

    Were I faced with columns or cells of variable thickness, I had probably not use FA/FB, but rather a framework anchored in graphic design, anchored at the point of Insertion, to a specific tag para (say CellAnchor), which is centered. The NextPgfTag would be CellBody.

  • How to get the dimensions information will appear next to the mouse cursor when the design / selection

    Hello

    On an old computer that I have que j' ai utilise used Illustrator for when I want to draw or making selections, close the cursor in a small black box with white text, there will be information dimenstions. It was similar to what you'd find in the window > Info Panel but simplified and you'll know how the selection you do is great. I have searched all over preferences and can't find it. I can't say if I imagined it somehow or what, but I hope that someone knows what I speak and know where to find. Thank you.

    Use of smart guides: Cmd/Ctrl + U

  • Bridge 6.2.0.179 does not display the dimensions of the PNG files in the metadata Panel - and can't get off.

    After the upgrade to the last bridge, the metadata panel displays is no longer the width and height of a PNG image. It still works for other types of files, such as jpg.

    I have to use Explorer to get the dimensions for a bunch of PNG. Very inconvenient. I wanted to downgrade the last bridge, but it seems that it is no longer available.

    I tried to completely uninstall the CC (and pref.) and reinstall. No joy.

    Just updated bridge this morning (6.3.0.177) and happy to say on my system (OS X El Capitan 10.11.6) that the dimensions of the png is now displayed after several months of not having at their disposal!

  • I "upgraded" my Microsoft Office to Office 365, and now I don't have a buttons for Acrobat in the ribbons in all Office programs. I use Acrobat Pro XI. How can I get the link Acrobat buttons installed in the Ribbon?

    I upgraded my Microsoft Office suite to Office 365 and lost the Acrobat buttons in the Ribbon on each program. How do I get the buttons to install on Office 365 ribbons?

    Acrobat 11 supports Office 2013. For the 2016 desk stand, you need Acrobat DC.

    -Dov

Maybe you are looking for