Messages by desifuntoosh

6 topics, 13 messages
Kuix technical support » Picture Button Issue (Very Urgent)

Hi Tofu,

Thanks a TON,

Cheers

Desi...

Kuix technical support » Picture Button Issue (Very Urgent)

Hi Guys,

Im trying to make a main menu screen on which im trying to diplsay pictures on top of the buttons.Im just using buttons to cacth the on click event as its not available on the picture

Following is the code i used in .xml 

<screen style="align:center;layout:inlinelayout(false,fill)">
 <screenTopBar>
            <picture style="layout-data:sld(left,-1,-1)">
                <_src>%M_ICON%</_src>
            </picture></screenTopBar>

 <container style="align:left;layout:inlinelayout(false,no fill)">
        <button  onaction="goToConstructionPage"></button>
 <button  class="inbox"></button>
 <button  class="sms"></button>
 </container>

Following is the code i used in .css 

button.inbox{
 bg-image: url(inbox_select.png);
}
button.inbox:hover{
 bg-image: url(inbox_unselect.png);
}

button.sms{
 bg-image: url(sms_select.png);
}
button.sms:hover{
 bg-image: url(sms_unselect.png);
}
 

Issues Im facing: the images are displayed in a very very small size, just bigger then the size of a small dot on the screen.

My requirements are:

1. Want the pictures to be displayed properly wthout as main menu items in th middle of the screen

2. During the hover I want to display another similar picture but of smaller size to give an effect

3.I dont want to show any text on the button( want to avoid text) if i do so the picture do not get displayed

Please suggest as how can i accomplish this...I had tried putting

 

Thanks in advance

Desi...

Kuix technical support » The Calander Component for KUIX application

Hi Guys,

Is there any Calander component in KUIX similar to Calander component of the normal J2ME. Please suggest as how to implement the calander uage in my KUIX application?

 

Thanks,

Cheers

Desi...

Kuix technical support » Button resizing issues.( How to have buttons in different sizes on one screen)

Hi All,

I'm strictly trying to follow the KUIX demo. I came accross one more issue so please suggest. I want to make the buttons of different sizes but im unable to make so.

In the KUIC demo. The sizes of the two buttons on the main screen differs from the sizes of the button and the choice on Demo for the tab component. I have checked the style.css and the xml files (screen.xml aswell as the widget.xml) but unbale to figure out as to how it happened.

Is it possible that since the button and the choice are under the tabitem so it takes the default size: code snippet below

  <tabitem label="Button">
   <_enabled>@{bButton}</_enabled>
   <scrollPane style="layout:inlinelayout(false,fill);padding:5">
    <text class="label">Button :</text>
    <button>Ok</button>
    <container class="separator" />
    <text class="label">CheckBox :</text>
    <checkbox>Box</checkbox>
    <container class="separator" />
    <text class="label">RadioButton :</text>
    <radioGroup>
     <radiobutton>Choice one</radiobutton>
     <radiobutton>Choice two</radiobutton>
    </radioGroup>
    <container class="separator" />
    <text class="label">Choice :</text>
    <choice>
     <choiceRadiogroup>
      <radiobutton selected="true">Choice one</radiobutton>
      <radiobutton>Choice two</radiobutton>
      <radiobutton>Choice tree</radiobutton>
     </choiceRadiogroup>
    </choice>
    <container class="separator" />
    <text class="label">Gauge :</text>
    <gauge value="0.4" />
   </scrollPane>
  </tabitem>

Please suggest as how to resize my buttons through .css and xml or by any other means

Thanks,

Cheers

Desi...

Kuix technical support » Whts the best approach to do event handling and navigate between screens

Hi Tofu,

Thanks for the guidance... I'll keep you bugging for more valuable suggestions..

 

Thanks

Desi...

Kuix technical support » I need the Drop Down Component....

Thanks Bo and all again,

So dont you think it will be a risky proposition in displaying 100+ items in choice. Also I have to use two choice box each carrying 100+ entries. So wht all you guys suggest I should do to implement Combobox keeping in mind the memory constraint.

 

Thanks,

Cheers...

Desi

Kuix technical support » I need the Drop Down Component....

Thanks Guys for your reponses,

Few doubts again: Im bit doubtful on the number of items the choice can support? I have to show almost 100+ entries in the choice box. Will it be feasible?

Thanks,

Cheers...

Desi

Kuix technical support » Whts the best approach to do event handling and navigate between screens

Hi Guys,

I was able to succesfully navigate between the screens using following ways

SreenA-->ScreenB:

In FrameA I used following ways:

public boolean onMessage(Object identifier, Object[] arguments) {
        if ("goToPageB".equals(identifier)) {
                Kuix.getFrameHandler().pushFrame(FrameB.instance);
                return false;
        }

       return true;
    }

In FrameB I used following:

    public static final FrameB instance = new UnderConstFrame();
    private final Screen screen = Kuix.loadScreen("/res/xml/FrameB.xml", null);

    /**
     * Show the main screen of the application
     */
    public void showScreen() {
            screen.setCurrent();
    }

    public boolean onMessage(Object identifier, Object[] arg1) {
        if ("home".equals(identifier)) {
            Kuix.getFrameHandler().removeFrame(this);
            return false;
    }

        return true;
    }

    public void onAdded() {
        showScreen();
    }

    public void onRemoved() {
 //           desktop.getCurrentScreen().cleanUp();
            AirPOCMainFrame.instance.showScreen();
    }

 Questions:

1.Is this approach OK?

2.Will the Screen's cleanUp(); method will be called for memory usage?

3. What If  I had used the following instead in FrameB

  if ("goHome".equals(identifier)) {
   pos = -1;
  }

  if (pos == -1) {
   Kuix.getFrameHandler().removeFrame(this);
   return false;
  }

 public void onAdded() {
  desktop = KuixDemo.getDefault().getCanvas().getDesktop();
 }

 /* (non-Javadoc)
  * @see org.kalmeo.util.frame.Frame#onRemoved()
  */
 public void onRemoved() {
  desktop.getCurrentScreen().cleanUp();
  FrameA.instance.showScreen();
 }

4. How does the usage of the desktop differs. Whts the better approach?

5. How does these two differ and when they should be used

                Kuix.getFrameHandler().pushFrame(FrameB.instance);

               FrameB.instance.showScreen();

Your feedback will be valuable

Thanks in advance,

Cheers

Desi...

Kuix technical support » Whts the best approach to do event handling and navigate between screens

Hi Guys,

I have 4 screens: Splash, A,B,C screens.4 corresponding xml files. As per the tutorial Each Screen should have its own Frames to do event handling. So I have FrameA,FrameB and FrameC

Issues:

  1. I Want to navigate from Screen A to Screen B or Screen C and do the round robin( I mean navigate back)
  2. I want each frame to load its corresponding xml file to display and call the corresponding set screen function and henceforth perform all the  event handling for specifi screens
  3. Main MIDlet calls the AFrame's instance using

protected void initDesktopContent(Desktop arg0) {
        // Push the MainMenuFrame
 Kuix.getFrameHandler().pushFrame(AirPOCMainFrame.instance);
    }

  1. How to push the FrameB or FrameC from within the FrameA code as per the message recieved from the menuitem
  2. How to load the Bxml in the BFrame code
  3. How to call back the mainFrameA from both CFram n BFrame

Till now Im able to navigate to FrameB but when i come back on the main screen the menu pop ups are working fike but navigation is not happening.

Suggest me the best way n approach: 

Thanks,

cheers

Desi... 

Kuix technical support » Best Image sizes to be used for screen with different sizes

Hi Guys,

My application is using the images on most of the screens as being used in the Kuix Demo. Since the phone's screens have different sizes such as

For example Nokia Screens vary from

128*128,

 128*160,

 176*208,

 208*208,

240*320,

 320*240,

 352*416

Currently Im using screen image of size 240*320 to be displayed in full screen on the splash screen. My question: Do I have to chnage the image being used to be displayed properly on the different size screens. wht will be the right way..

Another question: Wht should be the generic image size to be used when it comes to using it

:as apllication logo in the topwindowbar

: on buttons or check boxes including the hover images

If we can come on a generic image size tht will be displayed on all diff size screen then it will be great.

Note: This question is similar to the question been asked earlier " Multi device build of the KUIX application"

Thanks in advance

cheers

Desi 

Kuix technical support » I need the Drop Down Component....

Hi Guys,

I need to put in Drop Down component in my application from where the user can then select the desired choice. Unfortunately I could not find any such component no even in th examples. Please suggest me the way to get this component or any other ways to implement this requirement.

Brief about myself: I have been into Telecom domain for 10 yrs now, I'm working as a project manager for last 3yrs and feel that have become quite rusty now after being into managerial role (without doing any coding). Now again trying hard to get back into the original developer mode.

Thanks: I really want to appreciate the efforts put in by the KUIX project team in developing such a framework to work on. Hats off to you guys...wish I too can be such talented as you...still trying to give my best to get the best out of me...

Cheers

Desi...

Kuix technical support » kuix Obfuscation

Hi Guys,

When Using Obfuscation Level = high in Nextbeans 6.5 Kuix tend to generate Uncaught exception java/lang/OutOfMemoryError.
 when I click on a any <menupopup> from the my own application,

Suggest me as to how to avoid this...

Thanks in advance...

Cheers

Desi

Kuix technical support » kuix Obfuscation

Hi Guys,

When Using Obfuscation Level = high in Nextbeans 6.5 Kuix tend to generate Uncaught exception java/lang/OutOfMemoryError.
 when I click on a any <menupopup> from the my own application,

Suggest me as to how to avoid this...

Thanks in