problem with appearance of pane tab
The following code creates a tab simple part Manager with 2 tabs and simple LabelField for the tab labels. In the image as an attachment, you will see that there is a solid experience behind the LabelField. I tried to give transparent backgrounds of the LabelField, but who has not removed this experience. How can I get rid of this experience?
import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.component.pane.*; import net.rim.device.api.ui.decor.*; public class BugRptTabs extends UiApplication { public static void main(String[] args) { UiApplication instance = new BugRptTabs(); instance.enterEventDispatcher(); } public BugRptTabs() { pushScreen( new BugScreen() ); } private class BugScreen extends MainScreen { public BugScreen() { super( Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR | Manager.NO_HORIZONTAL_SCROLL | Screen.DEFAULT_CLOSE | Screen.DEFAULT_MENU ); // setup the tab model with 2 tabs PaneManagerModel model = new PaneManagerModel(); model.enableLooping( true ); // create a transparent background Background bg = BackgroundFactory.createSolidTransparentBackground( Color.BLACK, 0 ); // setup the first tab VerticalFieldManager vfm = new VerticalFieldManager( Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH | Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL ); LabelField lbl = new LabelField( "Content for tab 1", Field.FOCUSABLE ); vfm.add( lbl ); MyLabelField myLbl = new MyLabelField( "Tab 1", Field.FOCUSABLE ); myLbl.setBackground( bg ); Pane pane = new Pane( myLbl, vfm ); model.addPane( pane ); // setup the second tab vfm = new VerticalFieldManager( Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH | Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL ); lbl = new LabelField( "Content for tab 2", Field.FOCUSABLE ); vfm.add( lbl ); myLbl = new MyLabelField( "Log", Field.FOCUSABLE ); myLbl.setBackground( bg ); pane = new Pane( myLbl, vfm ); model.addPane( pane ); // select the tab to be displayed model.setCurrentlySelectedIndex( 0 ); // setup the rest of the components HorizontalTabTitleView titleView = new HorizontalTabTitleView( Field.FOCUSABLE ); titleView.setNumberOfDisplayedTabs( 2 ); titleView.setModel( model ); PaneView paneView = new PaneView( Field.FOCUSABLE ); paneView.setModel( model ); PaneManagerView view = new PaneManagerView( Field.FOCUSABLE | Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL | Manager.USE_ALL_HEIGHT | Manager.USE_ALL_WIDTH, titleView, paneView ); view.setModel( model ); model.setView( view ); // set the background color of the tabs bg = BackgroundFactory.createSolidBackground( Color.BLACK ); titleView.setTabBackground( Field.VISUAL_STATE_ACTIVE, bg ); titleView.setTabBackground( Field.VISUAL_STATE_FOCUS, bg ); titleView.setTabBackground( Field.VISUAL_STATE_NORMAL, bg ); // set the background color of the remainder of the // title area (behind the tabs) titleView.setBackground( Field.VISUAL_STATE_ACTIVE, bg ); titleView.setBackground( Field.VISUAL_STATE_FOCUS, bg ); titleView.setBackground( Field.VISUAL_STATE_NORMAL, bg ); // configure the Controller HorizontalTabController controller = new HorizontalTabController(); controller.setModel( model ); controller.setView( view ); model.setController( controller ); view.setController( controller ); // add the tab manager to the MainScreen this.add( view ); } private class MyLabelField extends LabelField { public MyLabelField( String str ) { super( str ); } public MyLabelField( String str, long style ) { super( str, style ); } protected void paint(Graphics graphics) { graphics.setColor( Color.WHITE ); super.paint( graphics ); } } } }
A few other changes were necessary to 6.0. I removed titleView.setTabBackground (Field.VISUAL_STATE_FOCUS, bg); andtitleView.setBackground (Field.VISUAL_STATE_FOCUS, bg); and changed the way the labels have been added.
Rather than use a focusable LabelField, do the lbl1 and lbl2 LabelFields not focusable and create a NullField focusable. Add the two of them to a HorizontalFieldManager and also use the label to your component.
This allows the screenshot I attached (using the same Simulator with which you test).
Tags: BlackBerry Developers
Similar Questions
-
Hello. I'm just a beginner and I downloaded the itunes 12.3.3 update and now when I right click on a work of art albums all disappear from the track of this album. I also have problems with my get info tab. All of my info from the album crashes.
This can help (from turingtest2):
-
Problem with appearance after recent updates
I've seen other messages regarding this issue, but I could not fix the problem. Two weeks, there were about 7 updates within several days of each other has changed the appearance of an obsolete and look much older. I noticed that the reboot has been recommended but I am not very informed in this area so could you elaborate please.
Thank you, mimi!
-
Problems with Samsun Galaxy Tab Android 3
Hello:
We have a problem with a Samsung Galaxy Tab 3. The app is installed fine game of Google store. It does not show thumbnails of the public/free journals on the library (black rectangles just to appear). The signs of the user in the application (we live right active) and thumbnails of law journals are displayed with black rectangles. Taps user on a blanket and it starts to download, but all of a sudden the screen goes black and the user has kill the app and then restart again.
Any suggestions on what could be the problem?
Saludos...
Testers told me that once they did a software update (fram, Samsung), everything works fine on this device.
-
Weird with the blue circle bar appeared above the tabs
HI - last night, shortly after (not sure how long exactly) after installing Silverlight - direct on the preferred video amazon site, a strange white bar with a blue circle ringed appeared above my tabs in the browser. I do not think that it appeared directly after the installation of Silverlight, but some time later - during which I was on and off my computer - it 'appeared '...
Here is a picture:
http://imgur.com/WezuIoVAnd a mode of incognito, that shows something, but I do not know what...
http://imgur.com/MlhJKbtI tried to disable the silverlight plug - nothing; I tried to play around with the Settings toolbar - nothing; then I restarted with modules disabled (in the Help menu) and it disappeared. But then when I restared in normal mode - it was always there... I need to reset (which probably do disappear, but I want to know what caused it)? Can I have some sort of bug? I'd be worried, virus (maybe it is excessive; I'm on a mac, but...)?
Thanks for any help
I fell on this particular issue so the other day. It turned out not to be any of my extensions the cause, but instead, it was a theme called "Default Mod" (which was updated to version 28 February 27). I've downgraded to version 27.1 and the blue circle went.
EDIT: Looking at your screenshot, it seems that use you the default theme Mod as well, so it's most likely the problem.
-
Problem with the new tab button
The problem with my Firefox, it's the 'new tab' button at the end of the last tab, then in the menu "open a new tab" doesn't work at all. Open a new window does not work but the new tab not. That's happened?
This problem may be caused by the Ask.com toolbar (Tools > Modules > Extensions)
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).
- Makes no changes on the start safe mode window.
See:
-
Problem with TabNavigator: content of one tab is 'Phantom' on another tab
I created a tabNavigator... four tabs... the first three has similar headers, the fourth has a different header. each header has... filtering options all have a datagrid... the first tab is the default tab when loading the application. But here's the problem:
When the application is closed on the fourth tab, and the app is reloaded, the fourth tab appears on the tab by default upon reloading, with the first tab header appearing as a ghost (but active but not effective on the datagrid control, which is filled with the content of the fourth tab)...
How can I get it to load the default true tab (number one)?
This isn't a problem if the two tabs or three are active when the application is closed/reloaded...
I tried to use SelectedIndex [tabnavigator id] = 0; but that did not work
If you do not need a history Manager, set the historyManagementEnabled = false.
If you don't, set historyManagementEnabled = false anyway and try rather BrowserManager.
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
Hello.
I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious. I can't find the settings as it eliminated. Now, I don't have any plug-ins and Add-ons strange that were not initially in the Fox, but the problem is there.
I use the Fox years. The problem, he had 1.5 months after Fox cleaning. If the problem can't win, I'll be forced to give up the browser, and I wouldn't.Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.
Does not work if Firefox: Hold down the SHIFT key when you start Firefox.
If Firefox is running: You can restart Firefox in Mode safe mode using either:
- button "3-bar" menu > "?" button > restart with disabled modules
- Help menu > restart with disabled modules
and OK reboot.
Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).
Any improvement?
If the problem persists in Mode without failure, could reinstall you Firefox in this way:
Clean reinstall it
We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (not incompatible, corrupt or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.
(1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).
(2) close Firefox (if applicable).
(3) to rename the program folder, either:
(Windows 64-bit folder names)
C:\Program Files (x86)\Mozilla Firefox
TO
C:\Program Files (x86)\OldFirefox
(Windows 32-bit folder names)
C:\Program Files\Mozilla Firefox
TO
C:\Program Files\OldFirefox
(4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.
Any improvement?
Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:
- \OldFirefox\Plugins
- \OldFirefox\browser\plugins
-
Hi, I have a problem with FF, when I click on a google site, opening in a new tab and I don't want to, can you help me?
Hello, this may be a preference in your google search parameters. go to google.com/preferences and disable the option to search results open in a new browser window.
-
Everything was working fine until today. I don't like having tabs on top, and I would like to have in the classic position of firefox, as many people as well.
I hope you'll solve the problem with the next update.
You can watch this extension:
- Restorer of classic theme: https://addons.mozilla.org/firefox/addon/classicthemerestorer/
You can set "Tabs not on top" in the options for the extension on the subject: addons page.
-
I want to download free applications, but it doesn't let me do it cause I have a problem with my payment, I try to remove my debit card and the option did not appear, I can't choose no for the payment, what can I do? This happen after I bought some coins for a game
You must settle the debt until you can download something else of the podcast episodes on the iTunes Store or select None as the payment option.
(142394)
-
Hello
I have a problem with opening emails received. FIREFOX is warned of an email I received. When you get into INBOX does not seem emeilul announced. Can you help me? With thanks in advance, Dan wadded
Hello
Please also try after you delete the cache and cookies: Tools (Alt + T) > clear recent history, choose all in the interval of time to clear, Cache , and Cookies in Details and clear now. Recent history of claire
If the problem persists, please check in Safe Mode.
Troubleshooting Extensions and themes
Safe mode disables the installed Extensionsand themes (appearance) in (Alt + T) Tools > Add-ons. Hardware acceleration is also temporarily disabled - manual setting is Tools > Options > Advanced > general > use hardware acceleration when available. Options > Advanced. All these parameters/additional custom modules can also be individually or collectively disabled/enabled/changed to normal mode of Firefox to check if an extension, theme or hardware acceleration is causing issues.
-
having display problems with my macbook air, first version of 2015. When I turn on my macbook, after boarding the password, then press on enter three lines (not really they look more like flashes coming from the top of the screen appear) in the colors Blue, green and red.
also when I turn off my laptop just until the display on the top of the screen that is 2 and a half inch thick green line appears and goes about a second.
help someone?
Thank you
Howdy Yaser of zoysia,
It seems that your screen displays some graphical anomalies when you connect to your user name. I would use these troubleshooting steps in the following article on the resolution of screens:
Restart your Mac in safe mode to reset the default display resolution.
If booting safe mode doesn't resolve the problem, reset your Mac NVRAM and SMC to reset the video ports on your Mac to their default values.
From: get help with graphics issues on external displays connected to your Mac.
Thank you for using communities of Apple Support.
-
I bought an iphone 6 s more but every time that iam going to install applications from the App Store and press the get a circle will appear and again it goes back to get butto, no problem with my internet and Apple ID, I have not yet even insta an app from thtee opening days, please help me.
Yet one thing I can change the color of my iPhone after unpacking it?
You have 14 days to return a phone from Apple after the purchase - which should answer your question of color
As for not being able to download apps - you're in a good WiFi zone and can you browse the internet on a web browser or send / receive emails?
Also check restrictions - general - settings to make sure that the download of applications is not limited
-
Problem with messages sent by post El Capitan:
My sent messages appear only when someone answers, i.e., in the context of a thread.
not in my folder "sent" as they did. Can anyone help?
The mailbox list is divided into categories with such topics on my Mac. When you position the cursor on one of these positions (with the exception of the mailboxes), you should see the Word display / hide it on the right. Click view, if that's what you see.
In the category of the mailboxes, the mailboxes are arranged in groups, such as Inbox. To the left of each group is a small tip of arrow. If the arrow points to the right, click it so that it points downwards.
Also note that you may need to scroll the list of mailboxes upwards or downwards to see it all.
Maybe you are looking for
-
How to fix or get data off Mac Pro with display/restart issues
Hi, my early 2008 Mac Pro running El Capitan suddenly started to show lines all over the screen, then it restarted, displaying an error message and since then he's been stuck in a reboot loop never get past the progress bar and with very distorted di
-
How can I get rid of game Center and the gargowitsch process?
My Mac are dedicated to work. I games have never played on them and never will. Everything about that I want to go. There is this annoying bit of software called "garguillo" who insists on talking to the outside world and I need to find a solution fo
-
Qosmio F10-101 does not have a TV tuner
Hello I bought my F10 about 2 years ago. It is actually a F10-101. I picked the local official Toshiba site (Turkey). On the web page, he said that F10 comes with a TV Tuner (such as all the Qosmios). Also I checked it on the site of toshiba - Europe
-
TRANSFER MEU GALAXY S3 FOTOS PARA PC,
MEU ESTA MAS QUANDO TENTO TRANSFER FOTO MEU GALAXY S3 WONT BLUETOOTH PARA O PC NAO CAN, RECEBO RESPOSTA AS NAO FAITH POSSIBLE TRANSFER LAND, ESTA MENSAGEM VEM DO OF THE RECEIVER.
-
I used my tv as a second monitor and still could not find it. I know that halo works because I played it before on this computer. Is there a way to indicate to the program to open to some a monitor? Should I reinstall halo?