Tofu
Moderator
323 messages 2009-02-24 |
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>
...
|
|
Tofu
Moderator
323 messages 2009-02-24 |
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.
|
|
Tofu
Moderator
323 messages 2009-02-24 |
First retrieve the TabFolder instance (with screen.getWidget("id_of_tabfolder", for example) and desired tabItem instance.
And invoke the tabfolder.setCurrentTabItem(tabItem) method.
|
|
Tofu
Moderator
323 messages 2009-02-24 |
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.
|
|
Tofu
Moderator
323 messages 2009-02-24 |
desktop.getCurrentScreen().getSecondMenu().hideMenuTree(); nust be suffisent to hide all popup ?
|
|
Tofu
Moderator
323 messages 2009-02-24 |
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.
|
|
Tofu
Moderator
323 messages 2009-02-24 |
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(...).
|
|
Tofu
Moderator
323 messages 2009-02-24 |
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.
|
|
Tofu
Moderator
323 messages 2009-02-24 |
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.
|
|
Tofu
Moderator
323 messages 2009-02-23 |
What is the size of you jar ?
Else it isn't possible to place Kuix outside of the application jar file.
|
|
Tofu
Moderator
323 messages 2009-02-23 |
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.
|
|
Tofu
Moderator
323 messages 2009-02-23 |
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.
|
|
Tofu
Moderator
323 messages 2009-02-23 |
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".
|
|
Tofu
Moderator
323 messages 2009-02-23 |
Hmmm ... your right, this seems to be a bug ;(
This will be fixed on the SVN.
|
|
Tofu
Moderator
323 messages 2009-02-23 |
You might be interested by this topic.
|
|