Messages by Tofu

One topic, 323 messages
Kuix general board » my topic

blop blop

Kuix general board » my topic

blop blop

Kuix technical support » veeeeryyyy urgent- How to apply gridlayout to scrollpane

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.

Kuix technical support » urgent :How can i retrieve the value/Id of Menu item

Thanks pandora808.

Else, vikram51, use the visible attribute with dynamic property value ...

Kuix technical support » add break in listitem's item

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>

Kuix technical support » New line in i18n/messages.properties

If you use a styled TextArea to display content, you can try to add a <br/> into your text.

Kuix technical support » Alignment parameter of Flowlayout

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"

Kuix technical support » problem in get textfield value

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];

...

}

Kuix technical support » Setting Screen's "layout" style property from java code

All style properties could be set in java code by using this :

myWidget.parseAuthorStyle("layout:flowlayout(left)")

Kuix technical support » getting the focus for listitem

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.

Kuix technical support » can i create a custom shortcut?

You need to create a custom Converter by extending the KuixConverter and override the convertShortcuts function.

Kuix technical support » Internationalisation support in onFocus and onAction?

I know, but this choice is a compromize between performances and usability.

Kuix technical support » why lisitem selection focus exceeding?

List widget do not provide any scroll capabilities. You need to place your List into a ScrollPane.

Kuix technical support » Imp:-About date/time--

There's no DatePicker widget in Kuix. You need to implements it by your self by  creating a custom widget.

Kuix technical support » multiple lines in a textfield

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...