I created a Button and I set its UIID to boutonPpal. I set the bgAlign attribute to ALIGN_CENTER in the resource Editor but the text of the Button is not centered at runtime !
So how to make the text centered ?
bgAlign aligns the background image of a component. Use the "Align" tab if using the latest LWUIT. If you are using 1.4 you need to actually invoke setAlign() on the component since in 1.4 alignment was not a part of the theme.
Related
i am applying bitmap font to textfield and its working fine but textfield hint text size is not set as per i have applied font created using resource editor.please help me here how to set text filed hint text size?
i am using this code
emailtext.setHint("Email Address");
Style styleTextfield=new Style();
styleTextfield.setFont(font_textfield);
styleTextfield.setFgColor(0x808080);
emailtext.setSelectedStyle(styleTextfield);
emailtext.setUnselectedStyle(styleTextfield);
emailtext.setPressedStyle(styleTextfield);
If you are using some .res file to customize your UI, the UIID to change the TextField's Hint text value is TextHint. Modify the font there, using the Resource editor, and you will change the TextField's hint style.
What you want is to set the font of the unselected style of the TextField to be separate from the selected and pressed style :
txtField.getUnselectedStyle().setFont(myHintFont);
Using the insert image button of the rich text editor in xpages, you are given an option to resize the width and height of the image. After saving and returning the image returns to the original size. Is there a step I am missing or version bug with this item?
This is not an "answer" exactly, but I used the TinyMCE custom control on OpenNTF to replace using the native rich text control. I've had good luck with it. http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=XPages%20Tinymce%20Custom%20Control
I want to select the text in webview while i am selecting text content using mouse in webview, the selected text word is split or the mouse selecting first word alignment overlap. how to solve this issue.
Just i have load a simple html file in javafx weview component. while select the text in webview the word is split or overlapping. i am not use any JavaScript.
You can find the doubt in the following link:
enter link description here
WebView not correctly rendering selection areas is a known issue in JavaFX 2.2:
RT-18883 Google docs editing issues
RT-11239 Add draw glyph type support to Prism graphics
I am trying to add both image and string in Tabs in LWUIT-1.5. Anyway both are comes in UI but the text is coming at bottom of the image. So, I need to add both in same place like overlapping the image.
Tabs tabs = new Tabs();
tabs.addTab("Text", Image, Component);
can any one help us ?
You seem to want a background image for the tabs not an icon (which is what that API is for), you should modify the style's for the Tab UIID in the resource editor and set the image background you want.
That is not possible without using resource editor. You set either image or text. If you set both, it takes image as icon and text as title automatically.
Create theme in resource editor by setting the background image for Tabs and apply the theme in your app.
Can we change Command's background color of the menu in LWUIT ?
and how can I set an icon to the "Menu" generated Command ?
thanks
I will try to explain better than the other post. You can change the style of the Menu using and UIID.
There are two ways to do that.
Easy way. Use the LWUIT Resource editor and create in the Unselected tab, and UIID called Menu. In this UIID you should configure the background color as you wish. You can change more things (like text color, size of the font, etc)
Hard way, by code. Create a Style object and set it to the Menu.