Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5920
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #15 on: May 20, 2011, 06:01:45 pm » |
One more thing: do you want a list that wraps around itself so the highlighted item is always displayed in the middle: 10. 1. 2.High lighted item 3. 4.
Or do you want a list that starts from this: 1. High lighted item 2. 3.
Then it ends with this: 8. 9. 10. High lighted item
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5920
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #16 on: May 20, 2011, 10:39:13 pm » |
OK, one new list render version is out: (Initially attached the wrong video)
|
|
|
|
« Last Edit: May 21, 2011, 12:23:09 pm by liudr »
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #17 on: May 21, 2011, 02:10:45 am » |
Or do you want a list that starts from this: 1. High lighted item 2. 3. Then it ends with this: 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.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5920
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #18 on: May 21, 2011, 12:25:55 pm » |
Now the right video is attached  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.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5920
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #19 on: May 21, 2011, 01:19:01 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #20 on: May 21, 2011, 01:36:24 pm » |
When porting to GLCD you can do inverse text which will be even better.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5920
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #21 on: May 21, 2011, 01:38:28 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #22 on: May 21, 2011, 01:39:40 pm » |
Well you can put it in a box or something instead... Loads of possibilites on an GLCD
|
|
|
|
|
Logged
|
|
|
|
|
|