Latest messages

677 topics, 2170 messages
Kuix technical support » How can i set the icon app with Kuix?

Hi all,

How can i set the app icon with Kuix?

Could someone help me please?

Thanks in advance.

Kuix technical support » Installation Problem with Nokia 5530

Hi all,

I trying to install the Kuix Demo jar in my Nokia 5530 with the Nokia PC Suite and an error occurs: "Invalid jar file".

Could someone help me please?

Thanks in advance.

Kuix technical support » External Picture Problem

Hi all,

Finally, i found the solution:

 

Java:

public class JKNewsFrame implements Frame {

    protected Screen screen;
    private String description;
    private Image image;

    public JKNewsFrame(String description, Image image) {
        this.description = description;
        this.image = image;
    }

    ...

    public void onAdded() {       
        screen = Kuix.loadScreen("news.xml", null);
        ((TextArea) s.getWidget("text")).setText(description);
        ((Picture) s.getWidget("image")).setImage(image);
        s.setCurrent();
    }

 

Kuix technical support » External Picture Problem

Hi all,

I'm loading an external content with JSON; a text and an image. It works fine in J2ME, but when i trying to use this wonderful framework to display the content, i can only see the text, but not the image.

What am i doing wrong? Could someone help me please?

Thank you in advance.


Java:

public class JKNewsFrame implements Frame {

    protected Screen screen;
    private String description;
    private Picture picture;

    public JKNewsFrame(String description, Image image) {
        this.description = description;
        this.picture = new Picture().setImage(image);
    }

    ...

    public void onAdded() {       
        screen = Kuix.loadScreen("news.xml", null);
        ((TextArea) s.getWidget("text")).setText(description);
        ((Picture) s.getWidget("image")).add(picture);
        s.setCurrent();
    }


XML:

<?xml version="1.0" encoding="UTF-8"?>
<screen title="News">
    <scrollPane style="layout:inlinelayout(false,fill); align:center">
        <textarea id="ta"></textarea>
        <picture id="image"></picture>
    </scrollPane>
    ...
</screen>

Kuix technical support » Problem with scrollPane in or next to a container

shappy1978 I have same problems with my screen:

<screen class="main" style="layout:borderlayout;align:center;padding:15 0 0 0;" shortcuts="right=goToSchedule|left=backToMenu" focusloop="true">
    <screenTopBar class="mainHeader">
        <picture src="logo.png" class="headerLogo" />
        <container style="layout:inlinelayout(true,fill);" class="headerText">
            <text class="red" style="align:center;">@{klass} </text>
            <text class="red" style="align:center;">%CLASS%</text>
        </container>
    </screenTopBar>
    <container style="layout:inlinelayout(false,fill);align:fill-top">
        <container class="titlebar" style="layout:gridlayout(2,1);align:fill-top">
            <text class="whiteTitle" style="align:left;font-size:small;">%SCHEDULE%</text>
            <text class="whiteTitle" style="align:right;font-size:small;">@{fullname}</text>
        </container>
          
        <scrollPane>
            <list>
                <_renderer>
                    <![CDATA[
                        <listItem class="listItems" onAction="goToSchedule">
                            <_onfocus>weekItemFocus(${id},${name},${date})</_onfocus>
                            <text class="listText">${date} - ${name}</text>
                            <picture class="listArrow" src="arrow.png" />
                        </listItem>
                    ]]>
                </_renderer>
                <_items>@{dayList}</_items>
            </list>
        </scrollPane>
    </container>

    <screenFirstMenu  onAction="goToSchedule">%SELECT%</screenFirstMenu>
    <screenSecondMenu  onAction="backToMenu">%BACK%</screenSecondMenu>

</screen>

 

 

Can you help?

I did - needToAutoScroll = true; But no effect.

Kuix bug report » ScrollPane in or after Container issure

shappy1978 I changed needToAutoScroll value to true, but scrollpane still can not scroll if the listitems are more enough and go outside the screen. Following is my xml source:

<screen class="main" style="layout:borderlayout;align:center;padding:15 0 0 0;" shortcuts="right=goToSchedule|left=backToMenu" focusloop="true">
    <screenTopBar class="mainHeader">
        <picture src="logo.png" class="headerLogo" />
        <container style="layout:inlinelayout(true,fill);" class="headerText">
            <text class="red" style="align:center;">@{klass} </text>
            <text class="red" style="align:center;">%CLASS%</text>
        </container>
    </screenTopBar>
    <container style="layout:inlinelayout(false,fill);align:fill-top">
        <container class="titlebar" style="layout:gridlayout(2,1);align:fill-top">
            <text class="whiteTitle" style="align:left;font-size:small;">%SCHEDULE%</text>
            <text class="whiteTitle" style="align:right;font-size:small;">@{fullname}</text>
        </container>
          
        <scrollPane>
            <list>
                <_renderer>
                    <![CDATA[
                        <listItem class="listItems" onAction="goToSchedule">
                            <_onfocus>weekItemFocus(${id},${name},${date})</_onfocus>
                            <text class="listText">${date} - ${name}</text>
                            <picture class="listArrow" src="arrow.png" />
                        </listItem>
                    ]]>
                </_renderer>
                <_items>@{dayList}</_items>
            </list>
        </scrollPane>
    </container>

   
       
   
    <screenFirstMenu  onAction="goToSchedule">%SELECT%</screenFirstMenu>
    <screenSecondMenu  onAction="backToMenu">%BACK%</screenSecondMenu>

</screen>

 

Kuix technical support » Custom widget help

Can anybody give advices of how custom widget is creating.

Kuix technical support » custom widget - camera

excuse, how can I put a camera into sreen ?  I use Bo's snippet ,put  the costom "public class Camera extends UnpaintableWidget{"  into xml , the sreen only show the title and camera ,the others is not shown!

any body tell me why ! thank you.

Kuix general board » Use content of a textField

Hi yanggym,

I have tried to read the contents of a field inside the Frame Method and I have not managed. I have used your method but in vain. Could you please explain futher how you read the contents of a field from inside a method?

My app requires login so user has to type username and password. I want a way to get the contents of the username and password field.

Thanks.

Kuix general board » What do you think about Kuix ?

I think Kuix is excellent. I have used it a couple of times I think it simplifies development. Myself as a developer I dont not want to spend a million hours designing the UI, I want to spend time writing the application logic and kuix has made it simpler to create very good UI's. On the other hand, I think the support for is a bit wanting. I posted a question (Which I consider basic) in the forum and two weeks later, It has 114 views with zero replies. The question was

Create a Simple TextField

If the support improves, I do not see another library beating Kuix.

 

 

Kuix general board » Trouble creating a ScrollPane with code

When I try to build a page with code like this:

ScrollPane pane = new ScrollPane();
screen.add(pane);

After adding the scroll pane y add several text and textarea elements, but they do not appear.

I cannot scroll and the scrollbar is not visible. Setting it visible (pane.setShowScrollBar(true);) doesn't help at all.

 Until now I had no problem adding elements to the screen and displaying it but I need help to display the scrollbars, because I want to display a long text.

 

Thanks in advance,

dag

Kuix technical support » Create a Simple TextField

No one has an answer to this?? I thout it would be straight foward to create a field using java code and not the kuix xml file.

Anybody??

 

Thanks.

Kuix technical support » Create a Simple TextField

Dear All,

I am new to Kuix so please forgive my basic question. I want to create a simple form that has three fields. My question is how do I create a TextField using xml file or a java method. I am using the demo helloworld.xml and HelloWorldFrame.java. I tried the following and it doest seem to work.

 

    public void onAdded() {

        // Load the content from the XML file with Kuix.loadScreen static method

        Screen screen = Kuix.loadScreen("helloworld.xml", null);

        TextField item = new TextField();

        screen.add(item);

        // Set the application current screen

        screen.setCurrent();

 

    }

 

Please Help.

Thank you.

Kuix bug report » White screen after server request

Getting a white screen instead of a result screen after sending a request to the server. The result, which in string format and also lengthy, is displayed only after a key is pressed which forcefully repaints the screen. I guess it is a thread issue.. Also getting out of memory exception sometimes after few hits!!!!  Please help!!

Kuix bug report » ListItem bug when Screen Transaction!

Thank Ramez,  it is runing  now ;)...