Messages by kalmeo4life

4 topics, 6 messages
Kuix technical support » Programatically change Screen BG image

I need to eb abe to change the bg image of the current screen using an image i download from a url.

 

On load, i need to check if an image exists, e.g. bg.png, if it dooes not, download from www.site.com/bg.png, then save it and use it as the bg image.

 

Kindly assist.

Kuix technical support » Using a Resource File

I have a fully working application and would like to now take it to the next level.

I have about 4 languages, 8 xmls, 1 Css and 3 Wav files.

Is there a way that i can package them in, way a resource file and read files from it on load.

Is there a way I can change the background and/or button images at runtime via downloading them from a URL on program load and calling them to the canvas? How do I change the desktop bg image from, way bg.png to bg2.png

Kindly help with sample codes.

Kuix technical support » Attribute tag (renderer) can't enclose an other tag

Thank you asbabu. it works.

 

I was using Dreamweaver CS3 for editing the XML files and CS3 replaces  /_ with just _ on save.

Kuix technical support » Attribute tag (renderer) can't enclose an other tag

Error while trying to run kaprice from Netbeans 6.5

Sysinfo :

 

Copying 1 file to C:\Documents and Settings\Haxor\My Documents\NetBeansProjects\org.kalmeo.apps.kaprice\dist\nbrun12919
Copying 1 file to C:\Documents and Settings\Haxor\My Documents\NetBeansProjects\org.kalmeo.apps.kaprice\dist\nbrun12919
Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/Documents+and+Settings/Haxor/My+Documents/NetBeansProjects/org.kalmeo.apps.kaprice/dist//kaprice.jad
Starting emulator in execution mode
Running with storage root C:\Documents and Settings\Haxor\j2mewtk\2.5.2\appdb\DefaultColorPhone
Running with locale: English_United States.1252
Running in the identified_third_party security domain
java.lang.IllegalArgumentException: Attribute tag (renderer) can't enclose an other tag
        at org.kalmeo.kuix.core.Kuix$1.startElement(Kuix.java:785)
        at org.kalmeo.util.xml.LightXmlParser.parse(LightXmlParser.java:214)
        at org.kalmeo.kuix.core.Kuix.parseXml(+37)
        at org.kalmeo.kuix.core.Kuix.loadXml(Kuix.java:631)
        at org.kalmeo.kuix.core.Kuix.loadScreen(+16)
        at org.kalmeo.kuix.core.Kuix.loadScreen(+8)
        at org.kalmeo.apps.kaprice.core.frame.MainFrame.onAdded(MainFrame.java:189)
        at org.kalmeo.util.frame.FrameHandler.pushFrame(FrameHandler.java:164)
        at org.kalmeo.apps.kaprice.Kaprice.initDesktopContent(Kaprice.java:44)
        at org.kalmeo.kuix.core.KuixCanvas.initialize(+336)
        at org.kalmeo.kuix.core.Kuix.initialize(Kuix.java:166)
        at org.kalmeo.kuix.core.KuixMIDlet.startApp(KuixMIDlet.java:275)
        at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
        at com.sun.midp.midlet.Scheduler.schedule(+270)
        at com.sun.midp.main.Main.runLocalClass(+28)
        at com.sun.midp.main.Main.main(+80)

m_s.xml is :

 

<screen shortcuts="back=askQuit|left=askQuit" title="Kaprice" focusloop="true">
    <scrollPane>
        <list id="list">
            <_renderer>
            <![CDATA[
            <listItem style="layout:borderlayout;gap:5 0" onAction="show">
                <picture src="shop_list.png" style="layout-data:bld(west)" />
                <container style="layout:inlinelayout(false,fill)">
                    <text>@{name}</text>
                    <text class="small">${date}</text>
                </container>
                <text style="layout-data:bld(east)" class="small">(@{numProducts})</text>
            </listItem>
            ]]>
            <_renderer>
            <_items>@{shopLists}<_items>
        </list>
    </scrollPane>
    <screenFirstMenu onAction="askAdd">%NEW_LIST%</screenFirstMenu>
    <screenSecondMenu>
        %MENU%
        <menupopup>
            <menuItem onAction="show">%SHOW%</menuItem>
            <menuItem onAction="askEdit(#list.focusedwidget.dataprovider)">%EDIT_LIST%</menuItem>
            <menuItem onAction="askDelete">%REMOVE_LIST%</menuItem>
            <menuItem onAction="askClear">%REMOVEALL_LIST%</menuItem>
            <menuItem onAction="askQuit">%QUIT%</menuItem>
        </menupopup>
    </screenSecondMenu>
</screen>

 

Where am I hoing wrong?

Kuix general board » Positive feedback instead of demanding help and/or features

Kudos2Kuix!

Kuix technical support » 2 Interface Questions From Kenya

Dear Kalmeholics.

1 - I want to create a Kuix-based App with 8 icons/buttons of 48px by 48px side by side in such a manner that on a big-screen like a Nokia e71, they are arranged 3 per row then next row etc and on a small device e.g. Nokia 6230, they are arranged 3 per line (automatically via reading screen size). all images will be called from the CSS file with each having a HOVER efefct (img1.png and img1_h.png). More like the Splash image on the bottom left next to the LIVE DEMO words on : http://www.kalmeo.org/projects/kuix

2 - Hw can I make a list scrollable such that if there are 2 items, no scroll bars are seen but on, say, 50 items, the scrollbars are seen BUT list dows not extend the vertical screen size.

Kindly assist.