How to catch the absolute position Y field
Hi all
There are many field on the screen, he needs to scroll vertically to the browser of the entire domain.
When the user selects a field, I like to appear a kind of peak near this field.
However, the problem is that I can't get absolute position in Y field on the screen.
Here is my source code:
/* * VFMTester.java * * ©, 2003-2008 * Confidential and proprietary. */ import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.MainScreen; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.component.*; import net.rim.device.api.system.*; import net.rim.device.api.servicebook.*; import net.rim.device.api.ui.container.*; /** * */ public class VFMTester extends UiApplication{ public static void main(String args[]){ UiApplication app = new VFMTester(); app.enterEventDispatcher(); } VFMTester() { pushScreen(new AScreen()); } class AScreen extends MainScreen { VerticalFieldManager vfm; public AScreen() { super(); vfm = new VerticalFieldManager(); for(int i=0;i<40;i++){ vfm.add(new ButtonField("Button" + String.valueOf(i))); } this.add(vfm); } public boolean trackwheelClick(int time, int status){ ButtonField f = (ButtonField)vfm.getLeafFieldWithFocus(); final int h = f.getContentTop() - f.getManager().getVerticalScroll(); UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { UiApplication.getUiApplication().pushScreen(new PopupTest(h)); } }); return true; } } class PopupTest extends PopupScreen { int y; PopupTest(int y) { super(new VerticalFieldManager()); this.add(new LabelField("Pop up testing")); this.y = y; } public void sublayout(int width, int height){ super.sublayout(width, height); setPosition(20,y); } protected boolean keyChar(char c, int status,int time) { this.close(); return true; } } }
Only the first screen, works very well, on the second screen, it will jump to the top of the lower position.
Thanks in advance.
Here is my source code:
Field.getScreen().getFocusRect(XYRect);
Tags: BlackBerry Developers
Similar Questions
-
How to find the absolute position of the end of the text, it can be one or more,
How to find the absolute position of the end of the text, it can be one or more,
in the position I need to inseart the image of the size of the font that it friendly ordinary view sequiential - image as custom image
Please help us find the position of the text, and even for a function more, I demanded the conclusion the text length
I want to do we will be right and the other will be left how I can I align is their way to find the width of the label or text?
Thank you
This should help align your labels layouts, depending on what you did you do could go with absolute layout, docking station or stack (allows you to align the top to bottom or left to right)
I'm not too sure that everything, however, to determine the length of the text, I would think that you could store the text in a string and then somehow programmatically count each letter & do return a result... not exactly on how to do it but it's an idea
-
How to force the "absolute positioning"?
Hello
I want to ask a question about exporting CCS.
I read in http://www.adobe.com/devnet/fireworks/articles/export_css_images.html and a few other items, the placement mode is forced to "absolute positioning" where there is overlap of objects (or overlapping slices, which I am not sure of).
I tried with this and used the trick to manually create a pair of small slices overlapping on a page to force the absolute positioning. However, in doing so, is it definitively settle "absolute positioning" mode, even when there is neither duplication of objects or slices by setting in Fireworks?
Bob
I found a way after reading the discussion on the overlapping of text http://www.adobe.com/devnet/fireworks/articles/export_css_images.html:
1. create two text object.
2 move them so that they overlap.
as long as there is overlapping of text, the entire page will be exported using absolute positioning.
Bob
-
How to 'catch' the data in a field of apex_item.text
Hello
How can I catch the data, I write in a field of apex_item.text and copy it to another table.
Example:
Source table
Create table Hund( PRI_KEY number, Name varchar2(30) );
Classic report in the Apex:
Select APEX_ITEM.DISPLAY_AND_SAVE(1, PRI_KEY), APEX_ITEM.DISPLAY_AND_SAVE(2,Name), APEX_ITEM.TEXT(3,weight) as weight From Hund;
The weight of the column do not exist in the table Hund, but is it possible to catch what is written in the Apex Page (and put in another table)?
EDIT: Maybe a resolution with a Collection of APEX?
THX
René
René
F01 being a checkbox only lines checked are in the table.
This means that when the box is checked for lines 1 and 3. Only the rows are in the table in the f01.
Then, when for the second race hollow the loop index is 2. You treat rank 3 for the f01 table but the 2nd rank of the other tables.
You have to match the table value f03 with f01 table values to find the line number for the f20 table.
for i in 1..apex_application.g_f03.count loop for k in 1..apex_application.g_f01.count loop if apex_application.g_f03(i) = apex_application.g_f01(k) then UPDATE PRM_CHK_BSTBS_ABGL_EDIT SET KOMMENTAR=APEX_APPLICATION.G_F20(i) WHERE NUMMER_EINHEITLICH=to_number(APEX_APPLICATION.G_F03(i)); end if; end loop; end loop;
This will update the checked lines.
If you want to update all the lines to leave out the inner loop and instruction.
I don't see what you posted I have, this is the case, but it is not a good idea to mix apex_item and columns be updated regular.
Nicolette
-
How to set the vertical position of the oscilloscope (Simulation)
Hey guys...
I think do a very basic oscilloscope in labview (simulation only).
So I'll show 2-4 channels to the oscilloscope. For this I will use a waveform graph and show the parcels of 2-4 in the same graph.
But how to define the vertical position of the individual parcels (channels) for comparison?
Suggest an idea please...
Make additional changes the values in your table do you do whatever will be will be incorrect. For the offset adjustment, assign each parcel at a different scale y and set the minimum and maximum of the scale up and down the waveform.
-
BBM how to retrieve BBM be hacked or how to catch the pirate?
Hello everyone, I have a few requests here as member of my family comes from live be hacked:
-can I know if we provide BBN, PIN, could we know email ID used to register?
-How to retrieve the BBM be hacked?
-How to catch the pirate?
Thanks in advance!Most likely you allowed someone to get your credentials BBID, or you have been deceived into giving them upward.
This is the management of Blackberry users who have their BBID diversion...
-------------
In these scenarios, the user must email\contact our office of privacy protection
http://CA.BlackBerry.com/legal/privacy-policy.html
10. questions or concerns? How to contact us
BlackBerry welcomes your questions or comments about this privacy policy and the way in which we treat your personal information. If you have any questions, concerns, or you want to request access to your personal information under the privacy or data protection laws, please communicate with BlackBerry, either by e-mail or in writing and we will use commercially reasonable efforts to respond:
email: [email protected], or
write to one of the following offices of the nearest BlackBerry you:
BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 2200 University Avenue East, Waterloo, Ontario, Canada N2K 0 to 7
BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 200 Bath Road, Slough, Berkshire, United Kingdom SL1 3XE
BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 1 International Business Park, The Synergy Building, 2nd Floor, Singapore 609917
------------ -
How to catch the event storm rotation?
Hi all
As the title,
I want to know how to catch the rotation on the device of the storm?
Y at - it samples which I can draw?
Thank you
You can use the method getOrientation() class net.rim.device.api.ui.Display
Press the button Bravo thank the user who has helped you.
If your problem has been resolved then please mark the thread as "accepted Solution".
-
How to change the color of form fields
I don't know how to change the color of form fields. They default to gray, but I don't know how to make a different color.
Gray does not match the color scheme of my landing page!
Thank you!
I think you have two options when you are working on a landing page with an embedded format:
- You can change the background color of the entire form field set by selecting the shape, and then clicking on the Toolbox. In the window that opens go to the second (on a paint brush icon) and select the background color you want.
- You can change the background color of the actual fields in the form by adding CSS styles. Select the Toolbox, go to the last tab (Tools Extract page) and in the middle of this window, you will see "head | CSS | JS"- select this average CSS tab and enter the style code to get the color you want. Here is an example of code you can put in it. Note that #000000 is the color code for black. Here is more information about the code: css - background in the input fields and text color? - stack overflow
-
How to move the mouse position of puppetry, followed by position in photoshop?
How to move the mouse position of puppetry, followed by position in photoshop?
In Photoshop, handles (guides) are creating/editing mode shape with the pen tool. Select the layer with mousetrack in his name, and then in the pen tool, you should see a small "x" indicating the location of the handful of mousetrack. Press and hold the appropriate keyboard qualifier (for example, Ctrl on Windows) to select the 'x' and then drag it to the intended location.
-
How to adjust the display width of fields?
work in jdev 11.1.2.3.
the form looks like DESIGNER Visual, all fields of the same length, and there is no width attribute to adjust. When run, some too long display fields.
How to adjust the display width of fields in the design?
Thank you.Hello
You don't need to repeat once again, unless you have changed the properties after initial drag and drop.
If you have changed, use the value #{bindings.yourAttribute.hints.displayWidth} to the columns property.
label = "#{Bindings.Name.hints.label} '"
required = "#{Bindings.Name.hints.Mandatory} '"
* Columns = "#{Bindings.Name.hints.DisplayWidth}" *.
maximumLength = "#{bindings.name.hints.precision} '"
shortDesc = "#{bindings.name.hints.tooltip}" id = "it38" > "
Thank you
NGO -
How to get the current position from the point of view
can I know how to get the current position of the view?
Edited by: anIdiot July 27, 2011 22:011 - get belvedere of the universe:
u = new SimpleUniverse (canvas3D);
ViewPlat = u.getViewingPlatform (); view of the universedefinition viewplat: ViewingPlatform ViewPlat;
2 - get look a transform of the platform in an existing Transform3D
ViewPlat.getViewPlatformTransform () .getTransform (t3d).
3 - Look at the trandform: t3d.get (Quater1, vector1); orientation object Get and coords
Kind regards.
JFP -
How to catch the end of an external task?
Hello
How to catch the end of an external task?
OS: Windows 2003
DB: 10.2.0.1
The code I wrote will run forever:
The work ends in fact, user_scheduler_job_run_details is updated (if you run the select statement in the loop in another session, it returns 1), but the selection running into the loop will always return 0.declare d date; n number; -- and more begin d := sysdate; dbms_scheduler.create_job( job_name => c_job, job_type => 'executable', number_of_arguments => 14, job_action => c_cmd, enabled => false, auto_drop => true ); dbms_scheduler.set_job_argument_value(c_job,1,'/c'); dbms_scheduler.set_job_argument_value(c_job,2,c_command); dbms_scheduler.set_job_argument_value(c_job,3,c_pw); dbms_scheduler.set_job_argument_value(c_job,4,c_pw_val); dbms_scheduler.set_job_argument_value(c_job,5,c_port); dbms_scheduler.set_job_argument_value(c_job,6,c_port_val); dbms_scheduler.set_job_argument_value(c_job,7,c_key); dbms_scheduler.set_job_argument_value(c_job,8,c_key_val); dbms_scheduler.set_job_argument_value(c_job,9,c_agent); dbms_scheduler.set_job_argument_value(c_job,10,c_batch); dbms_scheduler.set_job_argument_value(c_job,11,c_source); dbms_scheduler.set_job_argument_value(c_job,12,c_dest); dbms_scheduler.set_job_argument_value(c_job,13,c_log); dbms_scheduler.set_job_argument_value(c_job,14,c_yes); dbms_scheduler.enable(c_job); -- Job started, waiting... loop select count(1) into n from user_scheduler_job_run_details t where job_name = c_job and t.log_date >= d; exit when n > 0; dbms_lock.sleep(1); end loop; end;
Any help is appreciated.
Kind regards
LmocsiHello
It's strange, maybe you can try to use the timestamp type rather type date and with the help of an offset in the case where the work already finished for example d = systimestamp - second interval '1'
Another thing to watch is if you compare the dates in the same time zone, otherwise you must ensure that all sessions use the same time zone (setting the default_timezone attribute Planner can help).
Hope this helps,
Ravi. -
How to catch the exception in the sliders
Hello
How to catch the exception no. DATA FOUND/other exceptions with the cursor
so 1234 is not in my table, how to trap this.could help me pleaseDECLARE CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234; BEGIN FOR i IN c1 LOOP DBMS_OUTPUT.PUT_LINE(i.ename); END LOOP; END;
Published by: user4587979 on 27 May, 2010 03:46Maybe it's
declare CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234; lemp c1%rowtype ; begin open c1; loop fetch c1 into lemp; exit when c1%notfound; DBMS_OUTPUT.PUT_LINE(lemp.ename); end loop; if c1%rowcount = 0 then raise no_data_found; end if; close c1; end;
-
How to display the names of header fields in the next page in report6i
How to display the names of header fields repeated in the next page of report6i urgent please...
When I'm runing report in 1st page that showing only the header in page 2 information header information does not display only records appear. So I want to display the header in 2nd page also information.
You can help.Hello
Go for the model of report layout and select these elements/objects that do not display on the next page and pressing the F4 key to open the palette of the property and set the property Print object on to All the Pages , then it will appear on all pages.
-Clément
-
How to set the value of a field from the LOV of another field.
I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).
The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.
When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.
I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.
Can you please help? Thank you, LauraLaura,
It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.
Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.
1 do the P_STATE ' select list submits the Page.
2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".This is what will happen
a. when the State is selected Page will be submitted
(b) it will take the unconditional branch to himself and save the value of P_STATE
c. the calculation process / fills the value of the P_PROGRAM element when the page reloadsKind regards
Maybe you are looking for
-
Re: NB200-134 - battery not recognized in Windows XP
Hi gentlemen I have a 134 NB200 with Windows XP SP2 I have download the latest version of the driver all the but the system does not have a battery. Write "unknown device" after this attempt to install a driver for acpi microsoft but say data error.
-
I got this computer since Christmas and since it is nothing but trouble, especially with the Internet. All started saying I was connected when I wasn't really. Then it would just connect. These two questions were annoying, but temporary. They may las
-
OfficeJet Pro K8600DN: OfficeJet Pro K8600DN. Win 10 refuses to see the duplex unit
The printer is connected to a HP/Compaq PC 6300 Win 10. Fortunately, it prints monoface but Windows always responds with the message "the Document has been configured to print by using the Automatic Two-Sided Printing module, but module is not instal
-
Cannot start video rendering, check that you have an installation valid directx
I use Skype and that you cannot use the video due to the above error message
-
Bluetooth Windows 8 pavillion dv7 6100
Cannot get bluetooth works after Win 8 upgraded. Have installed the latest version of the Intel Proset software. I noticed the driver Intel Bluetooth to win 8 does not list my compatible (1000 N) adapter - probably the problem. Anyone know a solut