This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to have a drop down sort of an item?  RSS feed

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • 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.
 
Ramender Mall
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!