Suggestions: Listbox functions (IMPLEMENTED)

Started by Rui 'Trovatore' Pires, Sat 07/01/2006 14:34:01

Previous topic - Next topic

Rui 'Trovatore' Pires

Normally I'd try and script around these situations, but in this case I can't help but notice that what I need are functions that are already available for another GUI control - namely, inventory windows.

ScrollDown
ScrollUp
ItemsPerRow (which would effectively show the number of items currently *visible* in the listbox)

Ok, so the first two can be coded around (with some difficulties in some cases, but it's always doable), but the third one would be very, very useful.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

ScrollDown, ScrollUp and RowCount for the ListBox would be easy enough to do, would anyone else find this useful?

DoorKnobHandle

Definately. But then I'd also like a possibility to customize the look of the arrows that automatically appear if you want to scroll, so that maybe we could add a scroll-tracker (like the one in windows scrollbars) to it or disable those arrows or change the arrows appearance etc.

Fabiano

for me, yes. The scrolling and the customization that dkh spoke would help a lot.
Yeah, yeah, It happens. A lot.

Rui 'Trovatore' Pires

Arr, yes, yes. I'd totally forgotten about that, on account of how we can also use buttons and sliders - dkh's point is a good one, a damn fine one in fact. Sharpest point I've seen in a long while.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Akumayo

I think the ScrollUp(); ScrollDown(); for listboxes is an excellent idea.  Working with listboxes gives me a headache....
"Power is not a means - it is an end."

strazer

#6
Tracker'd:

http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=554
http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=555

Edit:

AGS v2.72 Beta 1:
* Added ListBox.ScrollDown, ScrollUp, RowCount, HideBorder and HideScrollArrows. Added "Hide scroll arrows" setting to listboxes in GUI editor.

SMF spam blocked by CleanTalk