focus on the whole verticalfieldmanager
Hello
I have a VerticalFieldManager (vfm_main), and I put 2 horiz.field Manager + 1 Vfm in vfm_main.
I want to set focus on any vfm_main and not on managers individual sub...
How to do it?
I want a list of the items to display as a view of the application of standard e-mail, where the sender, date-time and subject, appear as a row of vfm.
Help, please
has resolved...
Tags: BlackBerry Developers
Similar Questions
-
Firefox Inspector not to focus on the element by click on inspect.
The new firefox for developers is out, I downloaded and used as your primary browser.
However, I discovered that the Inspector not to focus or show the direct element that I inspected. He just open the inspector window & show the tag of the whole body.
Is this something new to Firefox? or from the Add-ons of mine?This happens to you all the time or only in specific cases?
This can happen if the elements are no longer present if the focus is removed from the web page that will happen if you try to inspect the item via the context menu.
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.
- Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
- Do NOT click on the reset button on the startup window Mode safe
-
TableLayoutManager doesn´t focus in the Manager with two focusable elements
Hello
I m using TableLayoutManager in my project. It is an example of my problem:
I have this code:
public MyScreen() { setTitle("TableLayoutManager_Example"); VerticalFieldManager vfm0 = new VerticalFieldManager(); vfm0.setBorder(BorderFactory.createSimpleBorder(new XYEdges(10, 10, 10, 10), Border.STYLE_TRANSPARENT)); VerticalFieldManager vfm = new VerticalFieldManager(); vfm.setBorder(BorderFactory.createRoundedBorder(new XYEdges(5, 5, 5, 5))); TableLayoutManager table = new TableLayoutManager(new int[] { TableLayoutManager.USE_PREFERRED_SIZE, TableLayoutManager.SPLIT_REMAINING_WIDTH, }, null, 0, Manager.NO_HORIZONTAL_SCROLL | Manager.NO_VERTICAL_SCROLL); LabelField lb=new LabelField("Label1 "); HorizontalFieldManager hfm=new HorizontalFieldManager(); TextField tf=new TextField(); LabelField lb2=new LabelField("Label2",Field.FOCUSABLE); tf.setText("Text"); tf.setMaxSize(5); hfm.add(lb2); hfm.add(tf); LabelField lb3=new LabelField("Label3"); LabelField lb4=new LabelField("Label4",Field.FOCUSABLE); table.add(lb); table.add(hfm); table.add(new SeparatorField()); table.add(new SeparatorField()); table.add(lb3); table.add(lb4); vfm.add(table); vfm0.add(vfm); add(vfm0); }
The problem is that I have can´t emphasis in the TextField. If I just add lb and hfm components to the table, it works, but if I add other components focuss (as example) I can´t focus in the TextField, the emphasis in Label4:
What can I do?
Thank you.
I ve found a good solution. I ve replaced the TableLayoutManager navigationMovement method. This is the code:
/** * Navigation movement to allow for both cell to cell within a columns and row movement */ protected boolean navigationMovement(int dx, int dy, int status, int time) { int focusIndex = getFieldWithFocusIndex(); int dirY = (dy > 0) ? 1 : -1; int absY = Math.abs(dy); for (int y = 0; y < absY; y++) { focusIndex += _columns * dirY; if (focusIndex < 0 || focusIndex >= getFieldCount()) { //#ifdef BlackBerrySDK4.5.0 this.invalidate(); //ref #217 //#endif return false; } else { Field f = getField(focusIndex); if (f.isFocusable()) { f.setFocus(); } else y--; // do it over again } } int dirX = (dx > 0) ? 1 : -1; int absX = Math.abs(dx); for (int x = 0; x < absX; x++) { focusIndex += dirX; if (focusIndex < 0 || focusIndex >= getFieldCount()) { //#ifdef BlackBerrySDK4.5.0 this.invalidate(); //Ref #217 //#endif return false; } else { Field f = getField(focusIndex); if (f.isFocusable()) {////////////////////////NEW CODE ///////////////////////////////////// if(f instanceof Manager){ int fieldsInManager=((Manager)f).getFieldCount(); if(fieldsInManager>0){ for(int i=0;i
I'm looking for a manager within the cell. If I found it, I put emphasis in its elements. It works with a Manager with one or more of the focus object elements.
If you see it is good, you can add this code to your original code
Thank you.
-
I created a CustomListManger of extemding VerticalFieldManager. for lines, I created a CustomRow Manager by extending Mnager.
When I display the list, I am not able to focus on the CustomRowManager I added. Focusable property is enabled for the CustomRowManager and the CustomListManger.
Any help is welcome!
I used the thread below to solve the solution:
http://supportforums.BlackBerry.com/T5/Java-development/help-focus-on-managers/TD-p/1240859
-
Hello! I'm new with this!
Here's my problem:
I make an aplication that show a bunch of photos, the thing is that I'm using 2 buttons! the first to show previous picture and seconds to display the next image.
When I ask the next photo (Pentecost of second push button) I want to again focus the second button, but it does not work and I do not know how...
When I ask this question the next photo, the new screen is pushed and the first button's focus, like this photo
How can I configure the managers to keep the focus of the second button?
Here is my code
HorizontalFieldManager hfm = new HorizontalFieldManager(); VerticalFieldManager vfm = new VerticalFieldManager(Field.FIELD_HCENTER ); prev = new screen("<", screen.COLOUR_BACKGROUND, Field.FOCUSABLE ); prev.setChangeListener(boton); hfm.add(prev); EncodedImage bit = EncodedImage.getEncodedImageResource(_filePath+_num+_ext); Bitmap imageScaled = new Bitmap((Display.getWidth() - 50) , Display.getHeight() ); bit.getBitmap().scaleInto(imageScaled, Bitmap.FILTER_LANCZOS); BitmapField bmf = new BitmapField(imageScaled); hfm.add(bmf); next = new screen(">", screen.COLOUR_BACKGROUND, Field.FOCUSABLE | Field.HIGHLIGHT_FOCUS); next.setChangeListener(boton); hfm.add(next); vfm.add(hfm);
Sorry for my English = (and thank you!
Welcome to the forums!
Just tell the Manager to set the focus to the desired button, when it is displayed (and probably exposed).
Replace your
VerticalFieldManager vfm = new VerticalFieldManager(Field.FIELD_HCENTER );
with something like
VerticalFieldManager vfm = new VerticalFieldManager(Field.FIELD_HCENTER ) { protected void onDisplay() { getField(2).setFocus(); } };
or, better yet, set your neighbor as
next = new screen(">", screen.COLOUR_BACKGROUND, Field.FOCUSABLE | Field.HIGHLIGHT_FOCUS) { protected void onDisplay() { setFocus(); } };
Good luck!
-
I create the application such as chat window.
I used VerticalFieldManager, AutoTextEditField and RichTextField.
AutoTextEditField - tap the message.
RichTextField - add the chat messages
RichTextField is add in VerticalFieldManager.
How to scroll the VerticalFieldManger to see the full content of the message without losing focus on the AutoTextEditField.
Override navigationmovement. This is example how im using it.
protected boolean navigationMovement(int dx, int dy, int status, int time) { if (dy==1) {
int newscroll = mains.getVerticalScroll(); int pageheigh = mains.getHeight(); mains.setVerticalScroll(newscroll+50); invalidate(); return true; }
return super.navigationMovement(dx, dy, status, time);}
50. This is the step. This is very good work for me (but must create if newscroll <0 and="" if="" newscroll="">the field of cat yourmanager)
area = VerticalFieldManager()
Hope this makes you help.
Best regards, Peter.
0> -
Focus on the bitmap image in a HorizontalFieldManager
Hello
I have a bitmap in a HFM, I did focusable (bitmap).
Problem is when the bitmap is concentrated, the HFM together in turn blue, as if she was herself focused.
I try to put the bitmap in a value for money that I put in the HFM to limit the focus to the HFM, but it did not work.
No idea how I can do?
There is the code:
HorizontalFieldManager imageHfm = new HorizontalFieldManager(Field.USE_ALL_WIDTH) { protected void paint(Graphics graphics) { graphics.setBackgroundColor(0x000000); graphics.clear(); super.paint(graphics); }};VerticalFieldManager imageVfm = new VerticalFieldManager(Field.FIELD_RIGHT); Bitmap loginButton = new Bitmap(Bitmap.getBitmapResource("login1.png"), DrawStyle.RIGHT) { public boolean trackwheelClick(int status, int time) { connectionWrapper(); return true; } }; imageVfm.add(loginButton); imageHfm.add(imageVfm);
Hello
While the size of your equal to your bitmapField HorizontalFieldManager().
You can do this way
HorizontalFieldManager rowManager = new HorizontalFieldManager() {}
' public void sublayout (int width, int height) {}
Super.sublayout (LooknFeel.Width, bitmap.getBitmapResource("SignIn.png"). GetHeight());
setExtent (LooknFeel.WIDTH, Bitmap.getBitmapResource("signin.png").getHeight ());
}
{} public void paint (Graphics g)
g.setBackgroundColor (Color.BLACK);
g.fillRect (0,0,LooknFeel.WIDTH,getHeight ());
g.Clear ();
Super.Paint (g);
}
};Here I had only set the height according to my bitmap, you must set the width and height.
Please let me know if it solves your problem or not.
-
Storm cannot focus on the field that wasn't a show on the first screen
Hi all
I have an application works very well on all devices except the device of the storm.
If there are field mutil-focus on the screen, if the fields are not display when the display is launched,
even if you move the screen to show, it can be still not developed.
my request:
/* * App.java * * ©
, 2003-2005 * Confidential and proprietary. */ import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.ui.component.*; /** * */ public class App extends UiApplication{ public static void main(String arg[]){ UiApplication app = new App(); app.enterEventDispatcher(); } public App() { pushScreen(new AScreen()); } public class AScreen extends MainScreen { private VerticalFieldManager vfm = new VerticalFieldManager(); public AScreen() { super(NO_VERTICAL_SCROLL); PartScrollableManager man = new PartScrollableManager(true); this.add(man); man.addHeadField(new ButtonField("Head")); for(int i=0;i<2;i++){ man.addBodyField(new LabelField("label"+String.valueOf(i),Field.USE_ALL_HEIGHT|Field.USE_ALL_WIDTH|Field.FOCUSABLE)); } man.addBodyField(vfm); addField(); for(int i=3;i<10;i++){ man.addBodyField(new LabelField("label"+String.valueOf(i),Field.USE_ALL_HEIGHT|Field.USE_ALL_WIDTH|Field.FOCUSABLE)); } //man.addFootField(new ButtonField("Foot")); //man.addFootField(new EditField("Foot","")); } private void addField() { for(int i=0;i<9;i++){ vfm.add(new EditField(String.valueOf(i),"")); } } public boolean trackwheelClick(int status,int time){ Field f = this.getLeafFieldWithFocus(); if(f instanceof ButtonField){ synchronized(UiApplication.getEventLock()){ if(vfm.getFieldCount()==0){ addField(); }else vfm.deleteAll(); } return true; } return false; } } } /* * PartScrollableManager.java * * ©
, 2003-2005 * Confidential and proprietary. */ import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.ui.*; import net.rim.device.api.system.Display; /** * */ public class PartScrollableManager extends VerticalFieldManager{ private int MANGER_HEIGHT = Display.getHeight(); private VerticalFieldManager headManager; private VerticalFieldManager footManager; private VerticalFieldManager bodyManager; private boolean isBorder; int rheight = 0; public PartScrollableManager(boolean border) { super(USE_ALL_HEIGHT | USE_ALL_WIDTH | NO_VERTICAL_SCROLL); isBorder = border; headManager = new VerticalFieldManager(USE_ALL_WIDTH |NO_VERTICAL_SCROLL); footManager = new VerticalFieldManager(USE_ALL_WIDTH |NO_VERTICAL_SCROLL); bodyManager = new VerticalFieldManager(USE_ALL_WIDTH |VERTICAL_SCROLL){ protected void sublayout(int width,int height) { int count = this.getFieldCount(); int h = 0; for(int i=0;i this.getHeight()) return super.touchEvent(ev); if(ev.getEvent()==TouchEvent.DOWN){ try{ setFocus(ev.getX(1),ev.getY(1),0); }catch(Throwable ex){ System.out.println("ex : " +ex.toString()); } } boolean result = super.touchEvent(ev); int size = ev.getMovePointsSize(); if(size>=2){ int vheight = this.getVirtualHeight(); int dheight = this.getVisibleHeight(); int xs[] = new int[size]; int ys[] = new int[size]; int ts[] = new int[size]; ev.getMovePoints(1,xs,ys,ts); int dy = ys[size - 1] - ys[0]; verticalScroll = Math.min(Math.max(verticalScroll - dy, 0), rheight - dheight); try{ setVerticalScroll(verticalScroll); }catch(Throwable ex){ System.out.println("ex : " +ex.toString()); } } return result; } }; this.add(headManager); this.add(bodyManager); this.add(footManager); headManager.add(new SeparatorField()); footManager.add(new SeparatorField()); } private void drawBorder(Graphics g) { int color = g.getColor(); g.setColor(Color.BLACK); XYRect rect = g.getClippingRect(); g.drawRect(0,0,rect.width,rect.height); } public void addHeadField(Field f){ headManager.insert(f,headManager.getFieldCount()-1); } public void addFootField(Field f){ footManager.add(f); } public void addBodyField(Field f){ bodyManager.add(f); } public void setHeight(int height){ MANGER_HEIGHT = height; } protected void sublayout(int width,int height) { layoutChild(headManager,width,height); layoutChild(footManager,width,height); layoutChild(bodyManager,width,height); setPositionChild(headManager,0,0); setPositionChild(bodyManager,0,headManager.getHeight()); setPositionChild(footManager,0,Display.getHeight()-footManager.getHeight()); setExtent(Display.getWidth(),MANGER_HEIGHT); } } What is wrong with my code?
any advice would be appreciated.
Hi guys,.
I found the reason.
for touchscreen, when setExtent, you define the actual size, so when you scroll, it will work correctly.
Otherwise, so just set as visiable, it will never be setFocus on the field which is visible beyond.
I guess RIM internal API regal setExtent is life-size on the touch screen, not even as no touchscreen.
It is visiable size and size of the actual content.
See you soon.
-
for debugger, shortcut moves keyboard focus to the component source from research
I'm in the debugger and use the search function to find a definition of the function by pressing ctrl + d. I select the function definition.
It works great so far, but the focus of the cursor is always in the search window. In general, I now want to set the focus on the source pane (so I can scroll, set breakpoints, etc.). However, I can't find a shortcut to the source window. Y at - it a shortcut or other quick way without using the mouse?Thank you
BenI couldn't find a shortcut or the other, then maybe suggest to add such a feature.
Firefox Developer Tools ideas - ideas for the development of Firefox tools:
-
I have a bad habit of having several tabs open. If I click on a link that translates the whole browser becomes unresponsive, how do I close the tab offending rather than having to close the entire browser and losing all my tabs?
It is not a bad habit, it's normal.
Unfortunately, there is currently no way to 'kill' a single tab without picking up Firefox.
A few times a week I get "not responding" when I exceed the amount of memory Firefox can use. Usually about 60-90 seconds, I can close Firefox by using the menu, either:
- "3-bar" menu button > button "power".
- (menu bar) File > Exit
- These same keys in order:
Alt f x
Freezes caused by other reasons could not out, in which case you get stuck. Prevention is the best cure.
This support article covers some common reasons for freezes: Firefox crashes or does not - how to fix.
Since the Flash plugin can also cause this problem and it is used everywhere around the web, I suggest the following to minimize potential problems with Flash in your troubleshooting:
(1) to avoid unnecessary pain on the sites where the Flash is not really essential, try to set the Flash on Click-to-Play (Ask 'activation'). This will delay the Flash start on a page, until you approve.
To set 'Ask to activate', open the page modules using either:
- CTRL + SHIFT + a
- "3-bar" menu button (or tools) > Add-ons
In the left column, click on Plugins. Search 'Shockwave Flash' and always change 'enable' to 'ask to activate '.
With this setting, when you visit a site that wants to use the Flash, you should see a notification icon in the address bar and usually (but not always) one of the following values: a link in a gray rectangle dark in the page or an information bar sliding between the toolbar and in the page area.
The plugin notification in the address bar icon usually resembles a little Lego block, dark gray. (If it is red, Flash must update.)
The delay in the activation of Flash can help distinguish between the problems caused on the initial page load, put in folds and script activation vs Flash/loading bar.
If you see a good reason to use Flash, and the site looks trustworthy, you can go ahead and click on the notification icon in the address bar to allow Flash. You can trust the site for the time being or permanently.
But some pages use Flash only for tracking or play ads, so if you do not see an immediate need for Flash, feel free to ignore the notification! He will just stand here in case you want to use it later.
(2) a common cause of errors in script does not work in Windows Vista and later is the feature of mode of the Flash player plugin. This feature has the security benefits, but it seems to have serious compatibility problems on some systems. You can disable it using the page modules. Either:
- CTRL + SHIFT + a
- "3-bar" menu button (or tools) > Add-ons
In the left column, click on Plugins. On the right side, find 'Shockwave Flash' and click on the link for more. Then uncheck the box for "Enable Adobe Flash protected mode" and try it for a day to see if that helps you.
-
Is it possible to not only open several tabs at startup, but also focus on the last?
At the start, I want to focus on the tab on the very good. By default, firefox focuses on the left tab when opening multiple tabs at startup.
Subject: solution of config?
tab-mixplus does not helpNot that I know of.
Note that you can use Ctrl + 9 to go to the last tab.If you reopen the tabs of the previous session automatically then the focus is on the tab selected when you close Firefox.
-
I'm looking for advice: I wanted to update firefox - updates (he describes himself as 'security') has failed. I looked on this website for advice. He said to download the whole version. I did it and the file will not work. I can't update the browser or load a new version.
That raises red flags in my brain (rightly or wrongly). I know all sorts of things I could try, but having had security problems recently, I would appreciate guidance / wisdom on the matter. I maybe paranoid, but it seems that something is wrong.
The old version of my browser works ok for now.
Help, please.Try this:
- Download the full Firefox installation program and save the file to the desktop
https://www.Mozilla.org/en-us/Firefox/all.html - Start the installation by double-clicking on the desktop icon
If you keep problems, disable your anti-virus temporarily.
- Download the full Firefox installation program and save the file to the desktop
-
How to print only the text selected on a Web page and not the whole page?
After you have selected a segment of a web page for printing, I go to the icon for printing and that clears the selection, leaving only the whole page as the selection to print.
"The feature to print just selected text in a Web page doesn't seem to be a function of Firefox."
If you use the toolbar print button, from the preview window before printing 29 Firefox open rather than the "Printing dialog window" as with the previous versions. using the button print in the upper left corner of the preview, takes you to the "print dialog window. "selected text" does not persist through the preview window; no way to print a selection of text using the toolbar print button. (a bug report has been filed on this change - regression.)
As cor - el mentioned if you start printing via the keyboard, instead of using the button print, you should be able to print a "selection" of the text.
WFM - works for me -
In a sequence of CTF, is it possible to obtain a text file of clips in sequences display (name and duration)? There is a display of text file for clips (cmd-9). Zoom the timeline makes this visible annotation for shorts, cancels but the ability to see the whole sequence of the time line. Of course, it would help my editing.
TIA
In Final Cut Pro 7, you can use editing > find command to search on used clips in the sequence. See if there is an equivalent command in FCE. Unfortunately, I can't determine that at first hand on my system. (In addition, if you are still interested whereas FCP X, there the so-called Timeline index which provides quick access to a list of markers, clips, effects, etc..)
Good luck.
Russ
-
Firefox frequently loses focus of the window
It seems that Firefox frequently loses focus of the window when I opened a new page. It can be a bookmark, a link open in a new tab using CTRL-click left or whatever. The following scenario always translates into the window loses focus (for me).
- Open Firefox.
- Open this link and save it.
- Close, and then reopen Firefox.
- Open the page just a bookmark using the bookmarks list and do not touch the window.
I read this page a day, so when I launch Firefox and open the page, I click on it in order to scroll, etc...
Firefox 13, Windows 7 Home Premium 64-bit
I wish this site had 'Preview' for its positions. Geez Louise.
This can be caused by a recent update of Flash 11.3.
See:
- https://support.Mozilla.org/KB/keep-Flash-up-to-date-and-troubleshoot-problems
- https://support.Mozilla.org/KB/Flash-crashes-or-does-not-load-Firefox-13
- http://forums.Adobe.com/thread/1018071?TSTART=0
- http://blogs.Adobe.com/asset/2012/06/inside-Flash-Player-protected-mode-for-Firefox.html
You can also try 11.2 Flash you can download it via this link:
Maybe you are looking for
-
I just upgraded to a pace 5268AC router and can connect is more to my Airport base station. The base station does not appear in Airport utility. Any suggestions?
-
Impossible to get two printers same work (MG5420) on the same network home wireless
I bought another MG5420 this week and I tried to configure it on my home wireless network. It's on the wireless network. However, the canon print utility seems could not find and it always go to the original one (old). How to make both of them wor
-
Question of blackBerry Smartphones trying to remove policy
Hi guys -. I recently bought a temporary BB of eBay, an 8820 to be exact. I have some difficulty, eliminating the it her policy. I use a Mac and use the method of the command prompt on this site. However, whenever I do, it tells me the password is in
-
BlackBerry 8820 smartphones - some questions... before I get it
Going to switch to t-mobile... 1. If I do not get the data plan, can I still go online using my router? 2. don't AIM on this charge in the form of SMS (text messages)? I've seen mixed responses about how if its RIM it uses data and if it is OZ so it
-
CSA REFUSE execution of the EXE, BUT DO NOT THE READ.
We have V4.5.616 CSA I would like a rule which denies running the exe, but allows reads them. The rule I have for now denies both. If a user opens a directory that contains the reading part is triggered to exe, I want only the rule to trigger if they