How to get the real size of the screen?
Hi all
I want to get the size of the BACKGROUND object screen AREA.
I tried to call
my_main_screen.getMainManager () .getVirtualWidth ();
or
my_main_screen.getMainManager () .getVisibleWidth ();
But they always return 0.
How to get this size? Thank you!
Hey there. You can summarize this article:
then you replace in your test screen
protected void onUiEngineAttached(boolean attached) { String width = String.valueOf(getMainManager().getWidth()); String height = String.valueOf(getMainManager().getHeight()); Dialog.alert(width + " : " + height); }
That you will get the result. On my 9630 Simulator, I saw the following values for the width and height: 480 and 333 respectively.
I hope it works for you.
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 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
-
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 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.
-
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.
-
Someone tried to hack my account and now I can't in my mail. How to get the lock down?
I tried to log on my hotmail and it says it is locked due to too many failed attempts to connect. Someone tried to hack my account and now I can't in my mail. How to get the lock down?
Hello
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
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 decimal value of a string of international currency
Hi all
How to get the decimal values to a string of international currency.
Finally, we get to the real problem.
You can use location functions or write your own using string functions already mentioned...
http://developer.BlackBerry.com/native/documentation/Cascades/device_platform/internationalization/
-
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
-
How to get the podcast of the website on the phone
I was told to put that feed into the PODCASTING app on your iOS device.
The site in question is https://randirhodes.com/how-to-get-the-podcast/
I paid for a premium podcast, now how o I get this podcast to appear on my iphone 6 s more in the podcast app?
Podcasts > select my Podcasts > press the '+' > Add Podcast > paste the URL that you got on the site.
Maybe you are looking for
-
Updated Airport Extreme 7.7.7 is DNS Horrible Performance
Since the update to the 7.7.7 firmware yesterday, all queries DNS to Airport Extreme now take several * seconds * to complete. Of course, this makes the horribly slow general Internet usage. All the DNS requests sent directly to my access provider o
-
Cannot download the software because the entry in the downloads window says "canceled."
Internet access: Juno dial-up. Browser: Firefox 18.0.2. OS: Windows XP Pro. No antivirus program. I could not download the software of three websites. When the Firefox downloads window opens, it lists the file I want to download, but under this file
-
I can install windows 7 on HP Pavilion n203nx 15. I find all the drivers then?
-
Play games with problems with the fkeys
I just bought my computer hp laptop and started playing World of Warcraft then with the F keys instead of use the capabilities it increases or decreases the brightness or volume instead of playing with the bios, what else can I do to fix this
-
Can someone help me with this problem?
Hi, I bought a Dell Latitude 630 refurbished with windows xp pro preloaded on it, but I didn't notice that there a number of vista COA on the bottom of it and I've eliminated the system to reload a new windows xp pro system because she was very slow