Messages by Tofu

One topic, 323 messages
Kuix technical support » getting the focus for listitem

Take a look at the focused attribute on listItem and bestScrollToChild(Widget) on your scrollPane.

Kuix technical support » Always cursor will be in the textfield

I'm not sure to understand your problem. Do you want to be able to enter text into a textfield which is not focused ?

 

Kuix technical support » urgent - setShowScrollBar(true) is not working

I think it's the same issue than this topic.

Kuix general board » Key events

Yes you can add what ever you want in popupBox.

Since 1.1.0 popupBox could be defined through xml (here popup.xml)

<popupbox style="layout-data:sld(center,1,-1)">

    <textfield id="tf"/>
    <popupBoxFirstMenuItem onAction="myAction(#tf.text)"/>

</popupbox>

And open it with

Kuix.showPopupBox("popup.xml", null);

 

Tranlucent appearance could be done with tranlucent PNG background image of the PopupBox.

Kuix bug report » Fade-Transition stops if new screen has animated image in it

Added to bug tracker.

Kuix bug report » Scrollpane issues

Yes, in scrollpane, scrollbar is always visible or always hidden (if showScrollBar = false). But it doesn't appear according to the content size. Because in this case it would need a second layout process because scrollbar has a size and then visible area size change if the scrollbar is hidden or not. For optimization reasons we do not keep this solution.

Since 1.0.1 useMarkers is only an internal attribute. Scrollpane works through focus navigation. And to be sure to go to the top an bottom of scrollpane content, it automaticaly add two fake focusable widgets called Markers.

 

Kuix technical support » New textentry after clicking on textfield

Yes of course, besaue the only way to enter text into a native Kuix textfield is to use a textbox.

Now you need to implement yourself a way to add a letter that correspond to the hit key. This piece of code need to be implemented in the processKeyEvent method of your derived TextField.

Kuix technical support » Tab folder with one fixed tab.

No, items attribute remove all previous sub widget before adding new widgets.

The solution would be to include static tab into your dynamic list if it could use the same renderer.

Kuix technical support » different font color

<button onAction="recherche_pays(#pays.text)" style="padding:1" shortcuts="2">%Rechercher%</button>

Kuix technical support » Listitem tickering

Remove the unsueful container with inlinelayout :

<listItem onfocus="calllogfocus(this.dataprovider)" style="layout:gridlayout(3,1)" onAction="show">
  <picture style="align:left">support${vType}.png</picture>
  <text >@{name}</text>
  <picture >image.PNG</picture>
</listItem>

Else it wouldn't be beter to use borderlayout instead of gridlayout ?

<listItem onfocus="calllogfocus(this.dataprovider)" style="layout:borderlayout" onAction="show">
  <picture style="align:left;layout-data:bld(west)">support${vType}.png</picture>
  <text >@{name}</text>
  <picture style="layout-data:bld(eat)">image.PNG</picture>
</listItem>

Kuix technical support » help... I cannot even start the simplest program in debugging emulator mode

Be careful to check the export of kuix.jar and kutil.jar libraries if you use Eclipse/MTJ IDE.

Folow this tutorial.

Kuix technical support » inconsistant screen when using table layout

I think in your case the best way is to replace the table layout by an inlinelayout. Because you do not need a tablelayout there. You only have lines with differents height.

After you need to play with textfield and textarea min-sizeto adjust wanted height.

    <container style="layout:inlinelayout(false,fill);align:fill">
        <text style="align:left">To:</text>
        <textfield id="to" maxsize="14" style="border:1;bg-color:#747170"/>
        <text style="align:left">Message:</text>
        <textfield id="message" maxsize="160" onchange="setPreview" style="min-size:0 60;border:0;bg-color:#444447"/>
        <textarea id="preview" style="min-size:0 60;border:1;bg-color:#2B1B17;border-color:#f19300">Preview text</textarea>
    </container>

Kuix technical support » Internationalisation support in onFocus and onAction?

For optimization raison, %...% key are detected only if they ocuped the entire attribute value.

Correct syntaxe :

<_attribute>%MESSAGE_TEXT%</_attribute>

Wrong syntaxe :

<_attribute>blabla %MESSAGE_TEXT%</_attribute>

I understand that it could be a problem in you case, but you can do it into Java by invoking Kuix.getMessage("MESSAGE_TEXT").

Then you can try :

<button style="align:center">
  <_onfocus>updateDesc( #label, MESSAGE_TEXT)</_onfocus>
  <picture>/img/btn1.png</picture>
</button>

And in frame (onMessage method) :

...

Text label = (Text) arguments[0];

String i18nKey = (String) arguments[1];

label.setText(Kuix.getmessage(i18nKey ));

...

Kuix technical support » get text widget's text from listitem

Use something like this :

<listitem onAction="myAction(this.#text1.text,this.#text2.text)">

<text id="text1">From 1</text>

<text id="text2">Message 1</text>

</listitem>

Kuix technical support » motorola + kuix 1.1.0 = bad

Arrr ... thanks for that. i think the best way would be to check default sun platform at the end of all detections.