Messages by Bo

18 topics, 316 messages
Kuix technical support » How to obtain the input value of a text area item from one screen to another?

You can pass textField values to the search action which is certainly responsible of the next screen loading.

...

<button onAction="search(name.text,surname.text)">Search</button>

...

And in the frame which intercept the search action, you can create a new dataProvider and use it to load the second screen.

...

final String name = (String) arguments[0];

final String surname = (String) arguments[1];

DataProvider dp = new DataProvider() {

protected Object getUserDefinedValue(String property) {

if ("nameProperty".equals(property)) {

return name;

}

if ("surnameProperty".equals(property)) {

return surname;

}

return null;

}

}

// Load the screen

Kuix.loadScreen("secondScreen.xml", dp).setCurrent();

 

Example of secondScreen.xml :

<screen>

<text>${nameProperty}</text>

<text>${surnameProperty}</text>

</screen>

Kuix technical support » Accessing widget value

TextField tf = new TextField();

String textValue = tf.getText();

System.out.println("TextField value = " + textValue);

 

Gauge g = new Gauge();

int fpValue = g.getValue(); // Caution that this value is a fixed-point integer, you can use directly this integer @see org.kalmeo.util.MathFP

System.out.println("Gauge value = " + MathFP.toString(fpValue));

Kuix technical support » Image transparencies

Image management depends totaly of the device implementation. If the device coulds manage PNG / GIF transparence the transparence is visible else not.

But, in case of border / background, you need to know that if you combine border-color / bg-color and border-image / bg-image, all you widget will be opaque. Because xx-color style properties fill all the space.

Kuix technical support » problems with textarea: can't display multiple lines show with chinese

Ok, the problem comes from the lack of space separator. I will open a ticket for that.

Kuix technical support » problems with textarea: can't display multiple lines show with chinese

I can't see anythink else than a redirection to baidu . com.

Kuix technical support » KuixInitializer - SplashScreen Image

the getInitializationXXX functions are used only in initialization process. The duration of this porcess depends of the power of the phone where you run the application. You can't control this duration.

Else because the init image is loaded first, the bigger the image is, the longer the loading of this image will be. The best way would be to use here a very small image.

Alternatively, you can use the Kuix.splash(int duration, Widget content, String onCloseAction) method to control the duration of an high definition splash screen. This splash is displayed after the initialization process.

Kuix technical support » bg-image

bg-image: url(,x,y,w,h) means that the image associated with the bg-image style property is a portion of the original image file. This portion is a rectangle of w x h placed at x,y where 0,0 is the left top corner.

The second notation is not valid.

Kuix technical support » i18n messages failing

Which IDE do you use ? Did you encode your .properties files in UTF-8 ?

Official announcements » Kuix 1.01 / Kutil 1.0.2 available

Kuix 1.0.1 and Kutil 1.0.2 is now officialy released.

Check changelog to know all changes between previous release.

Kuix technical support » problems with textarea: can't display multiple lines show with chinese

Is this your screenshots ?

Kuix technical support » problems with textarea: can't display multiple lines show with chinese

Could you give us a ScreenShot ?

Kuix technical support » Need some help to handle menu bars

> What about setting up a space where anybody could post "must be known" snippets. I think that forum.nokia.com where a Wiki is available for each programming language, offering this thematic kind of resources would really improve the developper community around this fmk ;-)

Yes, we are currently thinking about to add this feature.

Kuix technical support » problems with imports from SVN in netbeans

Ho, yes the toturial forgot to mention that you need to build each project before checkout the next one because of the interdependency.

(The mistake is fixed on the tuto/docs page)

Kuix general board » Kuix 1.0.1

Kuix 1.0.1 is planed to be released on 1st october.

But you can checkout the current SVN sources and report any problem there.

Kuix technical support » BlackBerry javaclassnotfoundexception

You can download on SVN KuixKeyValidator MIDlet sources to check key mapping.