Go Down

Topic: Phi_prompt new release teaser - scrolling list items (Read 2 times) previous topic - next topic

liudr

One more thing: do you want a list that wraps around itself so the highlighted item is always displayed in the middle:

Code: [Select]

10.
1.
2.High lighted item
3.
4.


Or do you want a list that starts from this:

Code: [Select]

1. High lighted item
2.
3.


Then it ends with this:

Code: [Select]

8.
9.
10. High lighted item

liudr

#16
May 21, 2011, 05:39 am Last Edit: May 21, 2011, 07:23 pm by liudr Reason: 1
OK, one new list render version is out:
(Initially attached the wrong video)

http://www.youtube.com/watch?v=QjmF9RN4qjg

mowcius

Quote
Or do you want a list that starts from this:
Code: [Select]
1. High lighted item
2.
3.


Then it ends with this:
Code: [Select]

8.
9.
10. High lighted item

Yeah that's what I meant. Then with a scroll bar like on your text view. I was thinking of just using the flashing cursor to show which is selected, then you don't miss out on another character by using an arrow/bullet down the side.

liudr

Now the right video is attached  :smiley-sweat:

Right, if I lose the dot I can save a character, but now I have scrolling items I can be less strict on space saving now. Doing flashing cursor is certainly easy but I don't know if GLCD has corresponding function when porting to GLCD. I'll give it a shot at flashing cursor though.

liudr

Here is a new draft for display options, any more input?

Display options:

Bit 0 - Arrow or dot. The first column of the list is a dot if it is not highlighted or an arrow if it is highlighted. This is very useful if you display more than one item on your list.
Bit 1 - index list 1 thru 0. This draws an index (1234567890) at column and row, encoded in step.i as column*100+row. The highlighted item is indicated on the index as a special character, right now as "^". In later version of the library, I might make this customizable.
Bit 2 - an index current/total, such as 5/12. This is drawn at column and row, encoded in step.i as column*100+row. The highlighted item is the number before the slash while the total list item is after the slash.
Bit 3 - auto scroll. This enables auto scrolling of list items that are too long to fit within given display width. Not enabling this option results in truncated display of first few characters that will fit within given display width.

Bit 4 - flashing cursor. This turns on a flashing black box enabled by the display. The cursor is at the beginning of the list item highlighted.
Bit 5 - Center choice. The highlighted item will always be centered in the display when possible (odd number of rows to display and plenty of items before and after the highlighted item). The list will scroll automatically to center the choice you might make.
Bit 6 - Scrolling bar. This displays a scrolling bar on the right side of the list. It looks like a DOS editor and is only useful for multi-line of list items. Make sure that you don't have anything immediately to the right of the list or run out of screen space.
Bit 7 - Reserved. This is reserved for future options and should not be used.

mowcius

When porting to GLCD you can do inverse text which will be even better.

liudr


When porting to GLCD you can do inverse text which will be even better.


Great! I'll keep that in mind. Inverted text is a bit hard to read especially normal texts are displayed above and below them.

mowcius

Well you can put it in a box or something instead... Loads of possibilites on an GLCD

Go Up