Re: J2ME background image



<tiff.shaw@xxxxxxxxx> wrote in message
news:1122551275.814196.70670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I'm trying to create a small J2ME app which displays some text on top
> of a background image.
>
> The text part is easy - I use a form and some StringItems ... but when
> I add an image using
> form.append(image)
> then the image gets put underneath the previous item.
>
> Is there a simple way to just set a background image? (surely it must
> be a common thing?)

This is not possible using Forms.

> -=-=-
> I also wanted to show a progress bar but when I do
> setCurrent(gauge);
> getSomeDataRemotely();
> setCurrent(form);
> then the progress bar never gets displayed ... but if I comment out
> setCurrent(form);
> then it does get displayed!!! This seems illogical!

Depends on how long getSomeDataRemotely() needs. If it completes in
an instant, you might not see the 'gauge' Displayable. If it takes time
to complete, the request might be delayed and will not be processed,
because you are constantly doing stuff. From the docs for setCurrent:

"Requests that a different Displayable object be made visible on the
display. The change will typically not take effect immediately. It may
be delayed so that it occurs between event delivery method calls,
although it is not guaranteed to occur before the next event delivery
method is called. The setCurrent() method returns immediately, without
waiting for the change to take place."

hth
--
jb

(reply address in rot13, unscramble first)


.



Relevant Pages

  • Re: Page is not apearing in Mozilla
    ... The background image does not show - this is linked to a file on your computer, ... Right click the navigation bar and change the properties to display graphics using the page's theme. ... >> I have a church website and can't get the words to show up in Mozilla. ...
    (microsoft.public.frontpage.programming)
  • Re: GPO - Remote Desktop - Force Background to Display
    ... When I log in the image does not display. ... display background on the RD client program that the image will ... I cannot find how to set this option under group policy. ... this server" as part of a plain background image. ...
    (microsoft.public.windows.group_policy)
  • RE: Login control - image button with text over it
    ... (changing the url for the bitmap) ... Login control's LoginButton will be represented by a <input ... For your scenario, you want to display text over image, I think what you ... set the background image effect. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: High resolution
    ... maximize the window that displays the background image ... background image will display in full resolution. ... background image will display in lower resolution. ... customers in wether to use our solution or not. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: GPO - Remote Desktop - Force Background to Display
    ... When I log in the image does not display. ... background on the RD client program that the image will appear and that's ... I cannot find how to set this option under group policy. ... this server" as part of a plain background image. ...
    (microsoft.public.windows.group_policy)