ToolTip transparent as to the size of the button by default.
How can I implement a transparent bubble as the default?
I mean the white text that appears on the development of the icons in the menu.
Thanks in advance.
Hello
in this link:
user peter_strange put a code for a ToolTip:
I'm the only copy & paste
package ..; /* Display a 'Tooltip" (String) at a specified location for s specified time This Tooltip can also be removed. Note that in my testing, the display time is not consistent. Following example shows it being added and removed using focus events. ButtonField bf = new ButtonField("Test") { MyTooltip _tooltip; protected void onFocus(int direction) { if ( _tooltip != null ) { _tooltip.removeToolTip(); _tooltip = null; } // Display tooltip at 50,50 for 5 seconds _tooltip = MyTooltip.addToolTip(UiApplication.getUiApplication(), "Press to test", 50, 50, 5);; } protected void onUnfocus() { if ( _tooltip != null ) { // We have displayed a Tooltip - remove it _tooltip.removeToolTip(); _tooltip = null; } } }; */ import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.Manager; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.Font; import net.rim.device.api.ui.Screen; import net.rim.device.api.ui.component.LabelField; import net.rim.device.api.ui.container.VerticalFieldManager; import net.rim.device.api.ui.container.PopupScreen; class MyTooltip extends PopupScreen{ int _x; int _y; TooltipThread _tooltipThread; private MyTooltip(Manager manager) { super(manager); } public void sublayout(int width, int height) { super.sublayout(width,height); setPosition(_x,_y); System.out.println("Tooltip x: " + Integer.toString(_x) + ", y: " + Integer.toString(_y)); } protected void applyTheme() { // Overriden to suppress Border etc. } public void removeToolTip() { if ( _tooltipThread != null ) { _tooltipThread.dismiss(); } } private void display(UiApplication uiApp, int x, int y, int displayTime) { _x = x; _y = y; _tooltipThread = new TooltipThread(uiApp, this, displayTime); _tooltipThread.start(); } public static MyTooltip addToolTip(UiApplication uiApp, String toolTipString, int x, int y, int displayTime) { VerticalFieldManager manager = new VerticalFieldManager(Manager.FIELD_VCENTER|Manager.NON_FOCUSABLE) { protected void paint(Graphics graphics) { graphics.setColor(0x00FFFFFF); // White graphics.fillRect(0,0,getWidth(),getHeight()); graphics.setColor(0x00000000); // Black graphics.drawRect(0,0,getWidth(),getHeight()); super.paint(graphics); } }; MyTooltip toolTip = new MyTooltip(manager); LabelField label = new LabelField(' ' + toolTipString + ' ', LabelField.NON_FOCUSABLE); label.setFont(Font.getDefault().derive(Font.PLAIN, 16)); toolTip.add(label); toolTip.display(uiApp, x, y, displayTime); return toolTip; } class TooltipThread extends Thread { Object _notifyObject = new Object(); // Used to allow user to dismiss this Tooltip PopupScreen _tooltip; // Screen we are going to display UiApplication _ourApplication; // access to pushGlobalScreen and dismissStatus from our Application int _displayTime; // in seconds public TooltipThread(UiApplication ourApplication, PopupScreen tooltip, int displayTime) { _tooltip = tooltip; _ourApplication = ourApplication; _displayTime = displayTime; } public void run() { _ourApplication.pushGlobalScreen(_tooltip, 999, false); synchronized(_notifyObject) { try { _notifyObject.wait(_displayTime * 1000); } catch (Exception e) { } }; _ourApplication.dismissStatus(_tooltip); } public void dismiss() { // notify the waiting object to stop the Thread waiting synchronized(_notifyObject) { _notifyObject.notify(); } } } }
PD: Sorry for my English.
Tags: BlackBerry Developers
Similar Questions
-
How to remove the button cancel default of the dialog system?
Hi all
I wanted to remove the button cancel default from the system dialog box. After doing some searching on Google has got a solution
cancelButton.label: the undefined, but all using this line of qml in error "invalid property.
Here is my code.
SystemDialog { id: userNameValidation title: "Alert!" body: "Please enter user name" cancelButton.label: undefined }
Eralier this worked but once I updated my IDE QNX after getting error on
cancelButton.label: undefined
Any solution?
Thanks for the reply. will do the same
-
Transparent edges on the buttons? JavaFX (CSS)
I would be grateful if someone could share how to get rid of the button edges, or at least they are transparent in .css (using JavaFX). Im trying to recreate the Windows 10 calculator
The following code does not work
button {}
-fx-background-RADIUS: 0;
-fx-border-color: transparent;
}
Thank you!You should look at modena.css, you can find it inside the jfxrt.jar of your JRE installation.
Import javafx.application.Application;
Import javafx.geometry.Insets;
Import javafx.scene.Scene;
Import javafx.scene.control.Button;
Import javafx.scene.layout.StackPane;
Import javafx.stage.Stage;SerializableAttribute public class boutonAfficher extends Application {}
@Override
public void start (final stage) bird Exception {}Button = new Button ("Button");
Presentation of StackPane = new StackPane (button);
layout.setPadding (new Insets (10));
button.setStyle)"shadow - fx - highlight-color: transparent;" + / / If you do not want evidence of 3d effect.
"- fx - outside-border: transparent;" + / / If you do not want a border of the button.
"inner - fx - border: transparent;" + / / If you do not want a border of the button.
"focus - fx - color: transparent;" + / / If you do not want a focus ring.
"- fx - faint-focus-color: transparent;" + / / If you do not want a focus ring.
"base - fx -: palegreen;" + / / If you want a shady button gradient which lightens the overview and go on armament.
"body - fx - color: palegreen;" + / / instead of - fx-Basic, if you want a flat shaded button which do not alleviate the hover and pounce on armament.
"police - fx - size: 80px;"
);stage.setScene (new Scene (layout));
internship. Show();
}Public Shared Sub main (String [] args) throws Exception {}
Launch (args);
}}
-
What is the default font and the size of a button in Flex
This is Verdana 10 pt
Dany
-
Need to reset the button by default when you use the structure of the event?
When you use the buttons with a mechanical action "releasing lock" to only trigger the same structure with the same 'value has changed', the button does not jump upwards as you would expect. I can get to behave as I want by adding a "default reset" invoke the node, but this seems somewhat exaggerated. Is there an easier way to get the button to jump to the top after pressing on?
The button will reset once it is read by the code. This means that the terminal is inside the structure of the event. If you move outside the terminal, it would read only the beginning of the race and then never and it will not be reset.
If the terminal is learn the structure of the event, it is read by the code (even if it is not connected to anything) and it reset as soon as the event has a chance to run.
-
I use XP SP2, the first download of FF4, it won't save (it shows that the default button, but then not see the/save! I downloaded another very similar PC with FF4, and it shows allright!) Please can you help me?
Try to reset the toolbars and controls as shown in the last section of this article to support - https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing
-
How to put labels of text on the buttons in the navigation bar
Hello. I have a bar using Dreamweaver CS4 to browsing.
After you create 2 simple rectangles 100 x 40 pixels with different gradients in photoshop and save them as button.png and button2.png, I've created an html file, then went to the Menu bar and insert > Image objects > Navigation bar.
I went through the whole process, has successfully all the links for the different States of my nav and added buttons added to my library as a sidebar.
I then added this a test .html and books of navigation very well.
The only part I have a problem getting labels on the buttons.
I know that I can mark each individual button early on in Photoshop, but it would mean having a bunch of slightly different buttons / png which will add to the duration of download / file size. Is it possible to add text labels after the fact (that way I only need a few images of the different buttons that are used over and over again throughout the site, with only the labels changing)?
I tried to place an AP Div tag with a high index z on the navigation bar and text placed above each button, but it stopped working navigation (the hand icon doesn't display above if I hover over a button because the AP Div with text is in front of it).
Suggestions as to how (or if) I can put on the labels? I guess a solution would be a small label in a transparent part of the button, but I hope that there is a simple way to do it where the text can be placed in front of the button without interfering.
Here is a link to the test showing page buttons and text interfere with features of navigation bar.
http://henrythewren.com/indextest.html
Thank you
You must use the image as a background image on a link, then another to show in the overview.
Here's a good tutorial of how it's done... no need to use the cells in a table, just use a list:
http://CSS.maxdesign.com.au/Listamatic/vertical11.htm
and here's the master list of how to style of the bars of different menus using css:
http://CSS.maxdesign.com.au/Listamatic/
--
Nadia
Adobe® Expert community: Dreamweaver
--------------------------------------------------
Unique templates CSS | Tutorials | SEO articles
http://www.DreamweaverResources.com
--------------------------------------------------
Book: Ultimate CSS reference
http://www.SitePoint.com/launch/005dfd4/3/133
---------------------------------------------------
-
After update to version 10.0.1, the button new tab, which sits to the right of the last tab, disappeared. I now have to do CTRL + T instead. How can I get that back?
You can find the button new tab showing as a '+' on the tab bar.
You can open the window customize and drag the button new tab that indicates that a sign plus bar tabs on another toolbar and it will become a regular tools like the new button bar button tab you have in versions of Firefox 3.
If you can not find the new button tab then click the button 'Restore Default Set' in the window customize.
-
New Notebook Laser Mouse 7000 - click on the button does not work so it is unusable
If this is the wrong forum, please let me know. I couldn't find an obvious forum for mice. My old wireless mouse does so after much research, I chose a Laser Mouse 7000 and ordered online. I have download the drivers, follow the instructions for setting up and pressing the buttons, the installer with ALL THE BUTTONS by DEFAULT, reset and CLICK does not work. It acts like I am struck by right click. I tried moving, rearranging button settings, nothing works. When I go into control panel it says it is not working properly, but this certainly isn't. I also restarted x 2 to try to make the problem go away.
It is a defective material, so should I just sent to the seller? That I've already lost too much time on this stupid thing. If I didn't always have a wireless mouse, I would not be able to use my PC
Windows vista 64-bit standard
Oh, I try the product. I have to enter the product number. It is very very small and very difficult to read, but I can enter the product correctly, I think. But here is the message that I will be back:
"The product ID does not match the selected product.
The product ID you entered is for Microsoft Wireless Notebook Laser Mouse 7000 (all languages), which is different from Microsoft Wireless Laser Mouse 7000 (all languages) you selected for support. Please enter the ID number of the product for Microsoft Wireless Laser Mouse 7000 (all languages) or click Select the product to select the right product. »WTF?
Hello
Microsoft Hardware Support access in the United States is 1-800-936-5700
Dial the number and when he asks PID just say you don't know. You will need to give to the
Tech answers so have a magnifying glass very convenient. There could be a more easy to read number on
the receiver.Believe it or not, I had exactly the same experience with my entire keyboard and mouse, and I am
in the meantime the new series arrived. Rob - bicycle - Mark Twain said it is good. -
Drop-down boxes are unstable and lose text transparent tour since the last update
Since the last update, menu drop-down boxes in Firefox have been unstable. Appear it briefly and then go transparent. Move the cursor on the transparent area will restore the text for a moment, but then it goes transparent again.
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
Safe mode disables extensions in Firefox 4 and later versions, and disables hardware acceleration.
Try turning off hardware acceleration.- Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.
If disable hardware acceleration works then check if there is an update available for your graphics display driver.
-
There is a transparent circle at the bottom of my screen with the cursor of the mouse inside and my touch screen has become mainly unresposive.
With respect to the cursor, I followed instructions stating that "USB input device" under "Human Interface Devices" in Device Manager should be disabled, I found. This seems to have resolved this issue, but I can leave this option off or something will not work?
Regarding my touch screen becomes mostly unresponsive, sometimes I can scroll in my Firefox browser and very very occasionally I can touch the screen to access something but not normally.
My laptop is a Sony VAIO
Product name: SVT1312B4E
ModelSVT131A11M
Any help would be appreciated.
-
Transparent background of the window?
Is it possible to put a transparent background of the façade, but were still non-transparant indicators appear? (so it looks like indicators that float on the screen?)
Thank you in advance, I hope it's possible, that have yet to do
Cornelis
If you are using Windows, you can use the Windows API to do. See How to make transparent so that some still visible control front panel?
-
How to change the size of taskbar buttons? I did everything that I've seen proposed in these pages, and nothing works.
The buttons of programs open in the taskbar are tiny and square. I want them to be of normal size (by default). I have locked and unlocked the task bar. I moved the "three vertical lines composed small points." Nothing works.
If you want to enlarge all the icons in the taskbar, and then increase the point size of buttons of legend to a larger number of advanced appearance settings.
Follow these steps:1. click on start, Control Panel, personalization, window color and appearance.
2. on the window color and appearance, click "Classic appearance open for more color options" (link below).
3. in the box "Appearance settings", click on the button "Advanced".
4. in the box "Advanced appearance" under "Item:" dropdown, choose "buttons".
5 set your size
6. click on the OK button.
7 on the "Appearance settings" box, click on the button 'Aplly', wait.
8. click the OK button if you are uncomfortable with the size to change, or just click on the "Advanced" button to set the size.I hope I could help
-
I adjusted the size of my screen and now it's too big, I can't change back b/cause when I go there I can't access the button change downstairs. I was about to return to a bygone era, but again I don't see not the button on the screen of the low b/cause is too big... Please help!
Hello
Press the ENTER key on your keyboard instead of clicking OK to change the resolution of the screen as a solution to your problem.
See you soon.
-
I have done the too large font, which made it impossible for me to fix it because the essential buttons are way below where the cursor can reach to change the size of fonts (DPI and resolution).
BOTTOM LINE: My desktop icons are so big that they're overlapping eachother, almost everything else is so great that superimposes itself also on printing. I can't figure out what to do to solve this problem. I know where I'm going to change the size, but because I did everything if great, that my cursor cannot reach the size change button.
Your topic (title) indicates that you can access the IPR window and you can click on scale 96 DPI, but you can't go to apply or OK. Yes?
If this is the case, you don't have to reach the buttons apply or OK.
Simply press the Enter key. It is the same as clicking on apply or OK.
Maybe you are looking for
-
Hi, my AC adapter comes out after 8 months, and a new look for about £50, which is a little steep for me, one of these adapters are compatible with the A2? PA2444U,PA3153U-1ACA.PA3049UPA3092UPA3048U. Any help appreciated
-
video import is complete in iMovie
I was wondering if it is somehow possible to import into iMovie finished under the direction of video I made a few years ago... Thanks for any help.
-
I need to support my username changed
So, I'm not sure why, but my user name of Apple Support was always wrong. I would really like that my user name to be replaced by my OWN name instead of this "Linda." A support person could help me with this please?
-
Several keys on my HP wireless keyboard (model SK-2061), does not work when you press the key crime are a f d and k. After running for about 30 minutes, I can get it to work, but not invariably. What other wireless keyboard I can use? The wireles
-
When you define the virtual measure of the Manager, the entire screen scrolable
Hi all, My original CD is what is displayed in this thread http://supportforums.BlackBerry.com/T5/Java-development/fields-alignment-in-Manager/m-p/1297121 I got a solution for this case are not the last field added to VFM in short my repainting issue