Using ListBoxes...

Started by Silbad, Sun 28/12/2003 12:12:30

Previous topic - Next topic

Silbad

I'm working on the « Mortville Manor » interface that uses Listboxes appearing at the top of the screen in which you choose the actions to perform. It's the first time I use Listboxes and I've a few questions about them :

1. How to change the appearance of an item of the list when the cursor is over it ? I'd like to highlight just like when you click on it.

2. Is it possible to gray out some items of the list ?

3. How can I reduce the vertical spacing betwen two items of the list ? I have to add 21 items in it and they can't appear all on the screen, so I get a scrolling bar. I could reduce the size of the font but it becomes unreadable !

4. Extra-question (quite tough) : I'm also thinking of creating a Maupiti Island-like interface. In this game, when you're in look mode and you click on a part of the background, a window opens and zooms in the element you've clicked. It's a real zoom of what was on the screen at the time you clicked (so it's not very nice) !! Does anyone know how I could do this (I had warned you it was quite tough ! ;)) ?

Scorpiorus

Quote1. How to change the appearance of an item of the list when the cursor is over it ? I'd like to highlight just like when you click on it.

2. Is it possible to gray out some items of the list ?

3. How can I reduce the vertical spacing betwen two items of the list ? I have to add 21 items in it and they can't appear all on the screen, so I get a scrolling bar. I could reduce the size of the font but it becomes unreadable !
I am afraid all these issues are pretty hard (if not impossible) to achieve with the built-in listbox which was primarily designed for simple load/save doalogs. You can, however, make a custom listbox with the use of buttons or labels.



Quote4. Extra-question (quite tough) : I'm also thinking of creating a Maupiti Island-like interface. In this game, when you're in look mode and you click on a part of the background, a window opens and zooms in the element you've clicked. It's a real zoom of what was on the screen at the time you clicked (so it's not very nice) !!
The AGS script language has no means to stretch a bitmap, therefore the only way I see is to make a dll. Of course if you just want a close up view you can make an appropriate image of that item and show it on the screen when needed.


~Cheers

Silbad

QuoteThe AGS script language has no means to stretch a bitmap, therefore the only way I see is to make a dll.
Gasp ! Sounds pretty hard for me, so I won't even try... :-[

QuoteYou can, however, make a custom listbox with the use of buttons or labels.
You mean by putting labels ones below the others ?... I don't know if it's worth writing amounts of sript for it. Well, I'll keep my scrollbar as it is...

SMF spam blocked by CleanTalk