height and width of the screen
Hi all, I know that it is not advisable to design a user interface based on the resolution of the device. But I need to know the width of the screen of the device in order to define some elements. I saw in central reference on something like SCREEN_PROPERTY_SIZE or something. But I can't get my head around it. Someone knows how to use it to retrieve the width of the screen... ??
You can retrieve using DisplayInfo...
http://developer.BlackBerry.com/native/reference/Cascades/bb__device__displayinfo.html
Something like...
inline int width() { return infoDisplay.pixelSize().rwidth(); } inline int height() { return infoDisplay.pixelSize().rheight(); } private: bb::device::DisplayInfo infoDisplay;
Tags: BlackBerry Developers
Similar Questions
-
get the height and width of the screen in QML?
How to get the height and width of the screen in QML?
Please search the forums before you make a new post. This post is still on the first page... http://supportforums.BlackBerry.com/T5/Cascades-development/correct-way-to-get-display-width-height-...
-
show the height and width of the screen
Is it possible to display the height and width of the screen in a labelfield?
Yes. To do this, ask yourself two questions:
(1) is it possible to display a string that I want in a LabelField? (The answer is Yes)
(2) is it possible to set the height and width of the screen in a string? (The answer is Yes)
(3) is it possible to find the height and width of the screen? (The answer is Yes)
Now, just try to find how to do it ask these three questions. #1 is right there in the documentation for class, LabelField . #2 is trivial if all goes well. # 3, take a look in the view class.
-
How to get the height and width of the screen of the blackberry device?
Can someone tellme how to get details of the screen of the blackberry device?
Display.getWidth () and Display.getHeight (). If this isn't what you want, let us know.
-
What is the best way to resize an image, but keep the height and width of the same original size or format?
I tried to use the function of the size of the Image, but when I changed the size of the image, the width has not changed with it.
Thanks for the tips!
Hi Landon.Luu,
You want to keep the relationship between the width and height to be the same?
Click the constraint between width and height to keep the ratio intact.
Kind regards
Claes
-
Height and width of the anchored frames
Hello
I wrote a script to automate the formatting of anchored frames, and what follows doesn't seem to work:
var = app frame. ActiveDoc.FirstSelectedGraphicInDoc.FrameParent;
framework. Alignment = Constants.FV_ALIGN_RIGHT;
framework. Height = 100;
framework. Width = 200;
When executing the script, the chart inside the anchored frame is selected and the image is aligned to the right, but the height and width of the had do not change to the pt 100 and 200 PT. I'm doing something wrong here?
I use Framemaker 10 on Windows 7 (64-bit).
Concerning
Bruno
Problem solved:
var = app frame. ActiveDoc.FirstSelectedGraphicInDoc.FrameParent;
framework. Alignment = Constants.FV_ALIGN_RIGHT;
framework. Height = 100 * 65536;
framework. Width = 200 * 65536;
1 pt = 65536
-
How to change the runtime of height and width of the front panel
How to change the front height and width during execution. Basically, I want to decide height or width according to some parameters that I'm in the moment of execution.
Ed johnsold was first
-
Get the height and width of the jpg or png of bitmap without loading the file
Is there a way to get the height and width of a bitmap, such as jpg or png file, without loading the complete file of the image first.
Thank you!
Hi JamesColeman,
While you can't get the width and height of the jpg or png without access to the file, you can get this information without access to the entire file. A PNG for example (in raw hex) indicates the width and height of the image it contains. The first 21 bytes contain the file-specific information such as name, etc, but just after the IHDR header 4 bytes indicate the width and the other 4 bytes indicate height. If enough for you to read the first 29 bytes of the PNG to be able to get its dimensions, which, while it still requires access to the file is much easier.
I have the code to read this information here and if you want to learn more about the specifications you can find information on this site.
Best wishes
André
-
Get the height and width of the object of a threshold
Hey guys,.
I am currently working on the extraction of the human sillouhette. Currently, I am trying to retrieve the height and the width of a human sillhouhette for further analysis. Are there any screws for this? Or if any of you can recommend a method? I really need help. The 2 images below should illustrate what I'm talking about. Note that I have several images (various) to analyze a video.... Help is really appreciated. Thank you.
Concerning
This task could be run with IMAQ particle analysis Report.vi.
Please note that this VI is installed with the Vision Development Module.
-
How to set the height and width of the field control?
Hello
I created a ButtonField I need to set the height and the width of the field fixed. When the offset application from one device to another device about the size of the buttons vary and also content in the field of the key also retractable. I want to put fixed every time I moved my request to the other device, the display of the button must be set. How to reach this give me some code examples. I'm new to blackberry.
ButtonField subclass and override the method getPreferredWidth().
class FixedWidthButtonField extends ButtonField{ private int width; FixedWidthButtonField( String label, int Width){ super( label); width = Width; } public int getPreferredWidth(){ return width; } }
(code by Jonathan Fisher)
-
Height and width of the image fill
So I'm setting up a website a page but I can not just know how to make an image to fill the page and still have content under. I'm sure you know what I mean and I do not know this gets asked a lot but I just can't understand it.
If necessary example: Apple Watch - Apple (notice how watches fill the page before scroll you)
Any help is appreciated,
Thank you
Hi Ben,
Please try following markets-
(1) create a rectangle
(2) fill the rectangle with the image required: check "option scale to fill" for fitting
(3) now according to the resizing option, you can select the stretch to the width of the browser and adjust accordingly, the height
(4) you can put a text box on the image according to your requirement
Please check below a screenshot of reference.
Hope this helps
Kind regards
_Ankush
-
accompanies the height and width of the textfield, and password fields
Dear friends in apex 4.1 when we create an application automatically creates a login page
with the user name and password in it field
So my question is can I increase the height and the width of the field user name and password in the login page
If it is possible please help.
and also I can't find the html as tag < input type = text... >
Where to find it?Hello
You can do this easily using css
So in APEX, you need to edit the textfield object > attributes HTML Form Eelement > put class = 'MyClass'
Thank you
-
Change the height and width of the video image...
File > new > sequence, then:
- Choose a preset that matches or is less similar to your videos, or,
- Click the general tab, change the editing for "Desktop" Mode and set the parameters as you need for your videos
Otherwise, drag a film clip to the button new item at the bottom of the project Panel (it looks like the dog-swamp of paper sheet) and created a sequence corresponding to your images.
-
Necessary to set the height and width of the image of itemRenderer for virtualization of the list
Hello
By default the spark list supports virtualization (which is cool), but I came across a problem with the list create all of the itemrenderers even when useVirtualization is set to true. After some debugging and the samples I made, it became clear he did not define the width and height on the image within the itemRenderer.
Is this a bug or an expected behavior?
<?xml version="1.0" encoding="utf-8"?> <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" autoDrawBackground="true" useHandCursor="true" mouseChildren="false" creationComplete="itemrenderer1_creationCompleteHandler(event)"> <fx:Script> <![CDATA[ import mx.events.FlexEvent; protected function itemrenderer1_creationCompleteHandler(event:FlexEvent):void { trace("created " + this.data); } ]]> </fx:Script> <!-- Without setting a specific height it will not work in virtualization! --> <mx:Image height="187" width="280" source="{data}" /> </s:ItemRenderer>
-
Discover the height and width of the selected content... ?
Hello world. !
I'm a new baby to the indesign script. In fact I link an Eps image to the picture box.
now I want the height and the width of the image in eps, angle and also need to coordinates X and Y...
someone help me... ?
Thanks in advance.
-yajiv
Substances, which gives the width and height.
The central point is at (geometricBounds [3] + geometricBounds [1]) / 2, geometricBounds [2] + geometricBounds [0]) / 2 (Alternatively, geometricBounds [1], geometricBounds [0] + width/2, height/2 - which is the same).
With regard to the angle, rotationAngle sounds all right, but compare to absoluteRotationAngle - which seems to be a total value of several nested objects and rotation.
Oh, and you want to shear as well? Each widget also has a shearAngle and, to top it off, an absoluteShearAngle as well.
Maybe you are looking for
-
Tecra S1 - Accupoint / mouse Touchpad has become crazy
Hello I bought my Tecra S1 second hand about 2 years ago and it was working fine until I realized missed me the video card driver, once installed the cursor on the screen went weird, he kept by adhering to one side of the screen for a long time, I un
-
LaserJet M1212nf ADF does not pick it up when scanning of the Acrobat PDF document
I recently bought this multifunction machine. The software installed without any problems. When you copy, the documents are taken from the ADF correctly, but if I use Adobe Acrobat to scan from the computer in PDF format, it does not appear to reco
-
"$US" automatically... How to make this stop?
Hello I have "joint currency" spreasheet But the numbers seem to AUTOMATICALLY add a 'US' before ' $'. How to make this STOP? Thank you very much Troy
-
I can't get FSX gold edition to work more than 10 seconds!
I can't edition FSX gold to work more than 10 seconds before the crash of the software. I reinstalled several times, even the demo we do the same thing! I get a message 'not compatible '. I tried all the settings in the compatibiliy box (inc by check
-
Cannot delete files locked in the temp folder
I emptied regularly delete all files in the temp via the function folder in the Tools menu of IE9 and also by searching on folder and deleting the contents of the temporary Local AppData file in the users folder. Ten days ago, I found there are some