• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

How to have a drop down sort of an item?

 
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I am writing a localized application and I am using a png to get the character set and use the GameCanvas to display. I am just curious whether I can have another GameCanvas on top of the already visible GameCavas so I can use the new canvas to display some suggestions, something like text suggestions on text prediction applicantion. Any alternative suggestion is also welcome. Thanks.
 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure about this TWO canvas approach, BUT you can draw the drop-down list yourself, which is not a big problem in the canvas, just need to draw a rect and strings, then control the focus.

- Ramender.
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for the answer, I figured out a way. I am using 2 TiledLayers, one for main text entering area and another one to simulate the drop down,
and I am using the LayerManager to draw the 2nd Layer at the appropriate place. Thanks for the answer.
 
reply
    Bookmark Topic Watch Topic
  • New Topic