Tofu
Moderator
323 messages 2010-03-30 |
|
|
Tofu
Moderator
323 messages 2010-03-30 |
|
|
Tofu
Moderator
323 messages 2009-03-25 |
Right ...
First, you need to understand that a grid layout use all available space to size its content. And scrollPane keep to ist content the right to use as vertical space as they want.
Then those two things aren't compatible ... use a flowlayout instead of gridlayout. It wouldn't exactly produce the same result but it's the nearest thing you can do.
|
|
Tofu
Moderator
323 messages 2009-03-25 |
Thanks pandora808.
Else, vikram51, use the visible attribute with dynamic property value ...
|
|
Tofu
Moderator
323 messages 2009-03-25 |
I will discribee the solution in XML, but you can translate it to java :
<listitem style="layout:borderlayout">
<picture src="sms_unread.png" style="layout-data:bld(west)"/>
<text text="Hello"/> <!-- by default bld(center) is used -->
<text text="world" style="layout-data:bld(south)"/>
</listitem>
|
|
Tofu
Moderator
323 messages 2009-03-25 |
If you use a styled TextArea to display content, you can try to add a <br/> into your text.
|
|
Tofu
Moderator
323 messages 2009-03-25 |
It does nothing, because the align parameter in flowLayout adjust only the vertical alignment of each subwidget on each line.
If you want to align right or left you flowlayout centent use the align attribute of the widget.
Something like :
style="layout:flowlayout(bottom);align:right"
|
|
Tofu
Moderator
323 messages 2009-03-25 |
You need to retrieve the Textfield instance. Try something like this :
public Screen setScreen() {
...
txt.setId("myTextfield");
...
test.setOnAction("Answer(#myTextfield.text)");
...
}
if ("Answer".equals(identifier)) {
...
String answer = (String) arguments[0];
...
}
|
|
Tofu
Moderator
323 messages 2009-03-25 |
All style properties could be set in java code by using this :
myWidget.parseAuthorStyle("layout:flowlayout(left)")
|
|
Tofu
Moderator
323 messages 2009-03-25 |
Focused is an attribute, then you can use a dynamic property to set its value int xml. When the value change, the focus change.
After, you can invoke the bestScrollToChild method on your scrollPane widget somewhere in your java code where you process the key event for example.
|
|
Tofu
Moderator
323 messages 2009-03-25 |
You need to create a custom Converter by extending the KuixConverter and override the convertShortcuts function.
|
|
Tofu
Moderator
323 messages 2009-03-25 |
I know, but this choice is a compromize between performances and usability.
|
|
Tofu
Moderator
323 messages 2009-03-25 |
List widget do not provide any scroll capabilities. You need to place your List into a ScrollPane.
|
|
Tofu
Moderator
323 messages 2009-03-25 |
There's no DatePicker widget in Kuix. You need to implements it by your self by creating a custom widget.
|
|
Tofu
Moderator
323 messages 2009-03-17 |
in Kuix Textfields are editable onlyt through j2me native TextBox. And multiline is implemented there by the mobile manufacturer, that why we'd prefer to keep textfield in one line.
But you can write a new custom widget that extends TextArea. Override the isFocusable() function to return true. Implements the J2ME native TextBox show/hide as it's done in the textfield...
|
|