Pages: 1 [2]   Go Down
Author Topic: Phi_prompt new release teaser - scrolling list items  (Read 2413 times)
0 Members and 1 Guest are viewing this topic.
Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Or do you want a list that starts from this:

Code:
1. High lighted item
2.
3.

Then it ends with this:

Code:
8.
9.
10. High lighted item
Logged


Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Then it ends with this:
Code:
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 Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 [2]   Go Up
Jump to: