Messages by Tofu

One topic, 323 messages
Kuix general board » Select the dynamic listitems and getting the string of lsititem

Caution, this syntax is wrong :

<listitem onAction="${name}" style="gap:5 0">

...

Properties couldn't be declared inline, use this syntax :

<listitem style="gap:5 0">

<_onAction>${name}</_onAction>

...

Kuix technical support » How to search the list items

You can play with the focused attribute of the listitem. Map this attribute with a binded property. But be careful that the scrollpane wouldn't mote to the focused widget.

Kuix technical support » how to select a tab item using java code

First retrieve the TabFolder instance (with screen.getWidget("id_of_tabfolder", for example) and desired tabItem instance.

And invoke the tabfolder.setCurrentTabItem(tabItem) method.

Kuix technical support » In MenuPopup(MenuItem selection)how can i get the action on screen Listtiems.

If you use Kuix 1.1.0 you can do this :

<screen>

<list id="myList">

<listitem>Item1</listitem>

<listitem>Item2</listitem>

...

</list>

<screenfirstmenu>

Menu

<menupopup>

<menuitem onAction="doAction1(#myList.focusedwidget)">Action1</menuitem>

<menuitem onAction="doAction2(#myList.focusedwidget)">Action2</menuitem>

</menupopup>

</screenfirstmenu>

</screen>

And you can retrieve the focused widget in the argument[0] of your onMessage method.

Kuix technical support » how to remove a menu?

desktop.getCurrentScreen().getSecondMenu().hideMenuTree(); nust be suffisent to hide all popup ?

Kuix technical support » How to draw Textarea on the screen?

I understand your problem, but actualy TextField and TextArea render the text content in two different way. Then It's not possible. On the givent screen the fake is to place a textArea into a button and open a textbox when clicked to change the text value.

Kuix technical support » How to Play Audio File along with Splash Screen

Kuix doesn't provide any sound support, I advice you to look at J2ME docs.

Else just start playing the sound after invoking Kuix.splash(...).

Kuix technical support » getting big middelt jar-size big

hmmm ... 1.8Mb ... Outch !

Kuix only add something like 100Kb when obfuscated, then I think even if it could be externalised, it wouldn't solve your problem.

Kuix technical support » Alert option?

Kuix.alert("stuff") display only a "OK" on the firstMenu.

You need to know that PopupBox and then Alertsar displayed on top of the current screen. Then if your PopupBoxBottomBar is not opaque, you will see background screen.

One good solution for this problem is to use the new grayedcolor style property (since 1.1.0).

Add something like this in your css file :

popupbox {

grayedcolor: #cccccc;

}

And a translucent grayed background will be paint between you popupBox and the screen.

Kuix technical support » getting big middelt jar-size big

What is the size of you jar ?

Else it isn't possible to place Kuix outside of the application jar file.

Kuix technical support » Kuix + Eclipse IDE + Sony Ericsson Tutorial Tips

If you use Eclipse an MTJ, you might not need to edit manualy the jad file but something like this is correct:

MIDlet-1: Kaprice,/img/icon.png,org.kalmeo.apps.kaprice.Kaprice

Else the "Invalid Application" error could be done by a wrong MIDlet-Jar-Size.

Kuix technical support » different font color

Yes Sahrear, your code is correct, except that the default layout of a screen is a gridlayout(1,1) then if you use it like this only the first text will be visible.

You need to add something like :

screen.parseAuthorStyle("layout:gridlayout(1,2)");

this is equals

screen.setAttribute("layout", "gridlayout(1,2)");

 

Else Nagkumar, no, it is not possible to have different colors in a textfield.

Kuix technical support » How to animate the Image with Kuix?

I'm not sure tu understand your request. The total image (180x180) ? ... how do you want to make an animation with only one image ?

In your precedent code, the image is split into 4 part, because the source image is a mozaic of 90x90 images of the full "movie".

Kuix technical support » Alert option?

Hmmm ... your right, this seems to be a bug ;(

This will be fixed on the SVN.

Kuix technical support » How to use javacode and XML/CSS together?

You might be interested by this topic.