How to get the physical size of the screen?
Hi all
How to get the physical width and height of the screen (not resolution) in inches or in centimeters?
Is there a method to do
Thank you very much
Display.getWidth () and Display.getHeight () you will get the number of pixels.
Display.getHorizontalResolution (); and Display.getVerticalResolution () to get the pixels per meter. Then by dividing appropriately you can find the actual size.
Tags: BlackBerry Developers
Similar Questions
-
How to get the screen back to how it should be as at the present time, it is on the side
Hello
Can your hel [, the screen of my laptop is not how it should be and is now on the side as a result of a slip of the hand and a bad button, but we do not know which key it is.
You can advice how to get on the screen back to normal.
Kind regards
Anthony Lawson
Hello
Try holding the CTRL and Alt keys, then press the arrow pointing upwards.
Kind regards
DP - K
-
How to get the screen coords of the node?
For example, TextBox in VBox inside TabPane tab.
Is it possible to obtain or calculate the screen from any corner of the TextBox element coordinates?I don't know how this will work because I think it does not account for the title of the window, but here is a code to help you get started.
double screenX = node.getScene().getWindow().getX() + node.getScene().getX() + node.localToScene(0,0).getX(); double screenY = node.getScene().getWindow().getY() + node.getScene().getY() + node.localToScene(0,0).getY();
-
How to get the screen saver photos slideshow goes completely after 2 minutes
Since I got windows 7 my photo slide show I had always put to screen saver turns off after 2 minutes. I love looking at all the photos of my grandchildren, my screensaver settings is correct, but I don't want my screen to go black after only a few pictures
Hi Emmauscapeofgoodhopesupportteam,
I think I have the solution to your problem, who can you look at pictures of your grandchildren.
As you said you have the correct settings for the screen saver, but your power management options can be verified.
Please follow the instructions below.
1. click 'START' and select 'control panel '.
2. click on 'Harware and its' option
3. now, select "Power Options" now you should see the options of 'Balanced or High Performance' under 'Select power management.
4. Select the "Balanced" option and click on "change plan settings".
5. now, you will find an option "Disable display" default is 'Never' and if not please change it to "never."
so this should keep your monitor after happening to the screensaver. If you want to be off after some time, you can select required time to the same option settings.
Concerning
PCS365.10
Just reply to your convenience.
-
How to get the system screen resolution
Hi all
I'm developing a flex application in adobe flex3. When I draw components in the design area flex builder is set to "Fit to window". so application are displayed on my monitor(17") correctly, but when I try to run the same application to another computer or a laptop of 14" display screen is different than the screen of the monitor is short, I need to scroll down to see the full page. My question is how can I make sure that the application should search for uniform on different platform/different browsers and different monitors (regardless of the dimensions of the monitor).And how can get the screen resolution of system during execution?
Thanks for all the help and support.Look in flash.system.capabilities. Note that any application based on a browser usually does not control how big be.
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
How to get the physical credit iTunes gift card?
How to get the physical gift card iTunes on your iTunes store account balance?
- You cannot buy an iTunes gift with in-store credit.
See the link below to buy physical gift cards for iTunes.
-
How to get the control screen to return to the size was about Windows Vista Edition Home Premium
HOW HE CAN GET THE SCREEN ON MY MONITOR TO PORTRAIT SIZE. SOME HOW I SLAP ON A TOUCH KEYBOARD ON ACCIDENT & THE SCREEN IS 90 DEGREES TO THE LEFT... HEAD TO SEE TILT SCREEN. ON THE SCREEN OF THE MONITOR FET IS PLACED IN A POSITION OF LANDSCAPE... I DON'T KNOW HOW DO TO MAKE TURN IN THE CORRECT POSITION.
THIE COMPUTER I AM INQUIRING IS THE TOP OF MY DESK. I USE MY LAPTOP TO FIND OUT A SOLUTION. I HOPE SOMEONE CAN HELP. ?
Hello
To bring your screen to normal hold down Ctrl + Alt and press one of the arrow keys on your keyboard.
Or you right-click Desktop select Graphics Options > Rotation.
-
How to get the actual size of control?
How to get the real size control when the preferred width/height is not defined but control have size which are automatically evaluated (for example contaier with the disposal of the battery)?
Try the LayoutUpdateHandler: https://developer.blackberry.com/cascades/reference/bb__cascades__layoutupdatehandler.html
-
I don't know if this is the right place to post this question, I develop software to support VMWare PCoIP and need to know how to get the host name of the physical machine (which manages the virtual machine and View Client) within a virtual machine before the user logs in Windows of the virtual machine.
I understand there are two ways to read the host name, via the HKEY_CURRENT_USER\Volatile Environment registry and environment variables, but they are available once the user is connected. I need info before the user connects.
Is there a VMware API that can be called or asked the host name?
Thank you.
Not on the broker, but there are the startup scripts to log on to the computer virtual itself: http://pubs.vmware.com/view-52/topic/com.vmware.view.integration.doc/view_integration_startsession_script.9.2.html
Note that these executed when a virtual desktop computer allocated connection, not to the point that the client connects - it is possible for the customer to not complete the connection (crash, cancel, network failure) and so any what solution you design must handle this.
Mike
-
How to get the size of the loaded swf file?
final/public class main extends Sprite
{
public void main()
{
loaderInfo.addEventListener (Event.COMPLETE, _onLoadCompleted);
}
private void _onLoadCompleted(event: Event): void
{
var tw: int = stage.width;
var e: int = stage.height;
TSW var: int = stage.stageWidth;
tsh var: int = stage.stageHeight;}
}
Above is my project simple as3 in flex builder 3.
My screen resolution is 1920 * 1080, when debugging, the SWF is stretched to the full EI client area, but the stage.stageWidth is 500 and the stage.stageHeight is 375, stage.widht and stage.height are 0, who can tell me why and how to get the right size of the SWF, named the area size customer of EI in this situation?
Thank you very much!
The HTML wrapper can resize the SWF later, so wait a frame and recheck stageWidth/stageHeight.
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
How to get the bar display of title in pixels text length?
Hello
Does anyone know how to get the length of the title bar text (in pixels) display? Just to clarify, that's what I'm looking for:
I don't see a CVI function for this. The attribute ATTR_TITLE_FONT for GetPanelAttribute (...) is only valid for the panels of the child which prevents me from using the GetTextDisplaySize (...) to get the size. Dive into the Windows SDK I can not even find an answer here. Any ideas? Thank you.
Figured out how to do this. Go to the SDK to get the font properties - is kind of nonobviousness. But once you have the font properties, you can create a font of meta in CVI, with properties, and once you have the meta font you can use GetTextDisplaySize (...) to get the size. For any future reference:
//define a NONCLIENTMETRICS structureNONCLIENTMETRICS ncmtest;//We have to set the cbSize parameter to the size of the passed structure before retrieving it ncmtest.cbSize = sizeof(NONCLIENTMETRICS); //Get NONCLIENTMETRICS structure result = SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncmtest, 0); //copy the title font name to a c-string while(ncmtest.lfCaptionFont.lfFaceName[i] != 0) { thefont[i] = (char)ncmtest.lfCaptionFont.lfFaceName[i]; ++i; } //null terminate thefont[i] = '\0'; //create meta font with title font properties. lfWeight & 0x700 indicates bold. CreateMetaFontWithCharacterSet() doesn't recognize DEFAULT_CHARSET so we replace it with VAL_NATIVE_CHARSET(?). uir_status = CreateMetaFontWithCharacterSet ("TheTitleFont", thefont, abs(ncmtest.lfCaptionFont.lfHeight), ncmtest.lfCaptionFont.lfWeight & 0x700 ? 1 : 0, ncmtest.lfCaptionFont.lfItalic, ncmtest.lfCaptionFont.lfUnderline, ncmtest.lfCaptionFont.lfStrikeOut, 0, ncmtest.lfCaptionFont.lfCharSet == DEFAULT_CHARSET ? VAL_NATIVE_CHARSET : ncmtest.lfCaptionFont.lfCharSet); //get titlebar text uir_status = GetPanelAttribute (panelhandle, ATTR_TITLE, thetext); //get title bar length uir_status = GetTextDisplaySize (thetext, "TheTitleFont", &height, &width);
I have a 79 for the duration of the screenshot above.
-
How to get the element selected listfield and goto next page?
Assalaamualikum
I try parsing the XML from a url and show in listfield.
problem:
How to get the selected item and passing the variable and than goto next page?
my code:
package parsepack;
import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;Import javax.microedition.io.Connector;
Import javax.microedition.io.StreamConnection;Import net.rim.device.api.system.Bitmap;
Import net.rim.device.api.system.Display;
Import net.rim.device.api.ui.DrawStyle;
Import net.rim.device.api.ui.Field;
Import net.rim.device.api.ui.FieldChangeListener;
Import net.rim.device.api.ui.Graphics;
Import net.rim.device.api.ui.Manager;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.component.ListField;
Import net.rim.device.api.ui.component.ListFieldCallback;
Import net.rim.device.api.ui.container.MainScreen;
Import net.rim.device.api.ui.container.VerticalFieldManager;
Import net.rim.device.api.xml.parsers.DocumentBuilder;
Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;to import org.W3C.DOM.document;
Import org.w3c.dom.Node;
Import org.w3c.dom.NodeList;extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
{Public Shared Sub main (String [] args)
{
xmlparsing app = new xmlparsing();
app.enterEventDispatcher ();
}public long mycolor;
Connection _connectionthread;
private static ListField _list;
private static Vector listElements is new Vector();.
public display display = new MainScreen();
MainManager VerticalFieldManager;
VerticalFieldManager subManager;public xmlparsing()
{
Super();
pushScreen (screen);final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");
mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
{public void paint (Graphics graphics)
{
graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);Super.Paint (Graphics);
}};
subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
{
protected void sublayout (int maxWidth, maxHeight int)
{
int displayWidth = Display.getWidth ();
int displayHeight = Display.getHeight ();Super.sublayout (displayWidth, displayHeight);
setExtent (displayWidth, displayHeight);
}
};Screen.Add (mainManager);
_list = new ListField()
{
public void paint (Graphics graphics)
{
graphics.setColor ((int) mycolor);
Super.Paint (Graphics);}
};
myColor = 0x00FFFFFF;
_list. Invalidate();
_list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
_list.setRowHeight (50);
_list.setCallback (this);
mainManager.add (subManager);
listElements.removeAllElements ();
_connectionthread = New Connection();
_connectionthread. Start();
}protected boolean navigationClick (int status, int time)
{
Try
{
Here, go to another screen if you need.}
catch (System.Exception e)
{
System.out.println ("Exception:-: navigationClick()" + try ());
}
Returns true;
}private class login extends thread
{
Public connection()
{
Super();
}public void run() {}
Doc document;
StreamConnection conn = null;
InputStream is = null;
try {}Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
docBuilderFactory.setIgnoringElementContentWhitespace (true);
docBuilderFactory.setCoalescing (true);
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
docBuilder.isValidating ();
is = conn.openInputStream ();
doc = docBuilder.parse (is);
doc.getDocumentElement () .normalize ();
List of NodeList = doc.getElementsByTagName ("ID");
for (int i = 0; i)< list.getlength();="" i++)="">
Node node = list.item (i) .getFirstChild ();
listElements.addElement (textNode.getNodeValue ());
}
} catch (Exception e) {}
System.out.println (try ());
} {Finally
If (is! = null) {}
try {is.close ();
} catch (IOException ignored) {}
} If (conn! = null) {}
Try {conn.close () ;}
catch (IOException ignored) {}
}} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
public void run() {}
_list. SetSize (listElements.Size ());
subManager.add (_list);
Screen.Invalidate ();
}
});
}}
' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
{
Your string = (String) listElements.elementAt (index);
int yPos = 0 + y;
g.drawLine (0, yPos, w, yPos);
g.drawText (, 5, 15 + y, 0, w);
}public {get {Object (ListField list, int index)
{
Return listElements.elementAt (index);
}
public int indexOfList (String prefix, ListField list, int, string)
{
Return listElements.indexOf (prefix, string);
}
public int getPreferredWidth (ListField list)
{
Return Display.getWidth ();
}
public final void insert (String toInsert, int index) {}
listElements.addElement (toInsert);
}' Public Sub fieldChanged (field field, int context) {}
}
}Thank you.
I told you that replace the navigationclick() method where initialize you your listfield
as I think that changing your code and then answer me
_list = new ListField() { protected boolean navigationClick(int status, int time) { Dialog.inform("hi"); return true; } public void paint(Graphics graphics) { graphics.setColor((int) mycolor); super.paint(graphics); } };
-
How to get the list of RDM?
Hi all
In our environment both of RDM is presented to different virtual machines in physical compatibility mode. It was very difficult for me to keep track
Could you get it someone please let me know, how to get the list of the RDM presented to ESXI 5.0 host?
Thank you!
Ravindra Reddy
Thank you... A P... for your response tools RV is the right tool, but I wanted to naa number of LUNS as well.
After 2 hours, I had below power CLI command to get the list of the virtual machine.
PowerCLI C:\ > Get - VM | Get-hard drive - DiskType "RawPhysical", "RawVirtual" | Select name, Parent, ScsiCanonicalName, DiskType | FL | Out-file C:\RDMlist.xlx
Thank you!
-
How to get the width and height of Flex Mobile view?
Hello
The following instructions can get the width and height of the current Flex app:
var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;
trace (application. Width);
trace (application. Height);
But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?
Thank you!
Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070
-
How to get the text have the same effect as the video?
Hello
For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.
For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?
A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.
EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.
Thank you
One way is to create a clip made up based on the title and the original clip. Then apply the effect.
Another way is to use an adjustment layer.
Good luck.
Russ
Maybe you are looking for
-
I was under the impression that the Apple ID password and home sharing password were one and the same, however, when I try and connect to the share house I get the message "home sharing could not be enabled because Apple ID or password is incorrect."
-
I want to add a fingerprint on my iphone 5s, but I can't. It shows unable to complete Setup touchid please go back and try again. Please help what should I do?
-
How do l recover my username and password to my email
How do l recover my username and password to my email
-
Hi community We are currently developing a standalone Server, installed c240 with a vic1225 (connected to a pair of vpc 5500 nexus). We have bare metal windows 2008 R2 os installed and active nic teaming ((802.3ad) with the enictool.) Now we want to
-
Search for text in the file Excel, Explorer, does not.
Have a workbook (.xlsm). In a cell, there is a simple text value (not the result of a formula). The value is "Homestreet. I type Homestreet in the search box on Windows Explorer. By the Explorer, the file is not found. Many users report similar c