Skip to content

Use STATIC_ITEM for static text#2

Merged
birkett merged 0 commit intobirkett:info-menufrom
thinkyhead:rc_birkett_info_menu
Jul 1, 2016
Merged

Use STATIC_ITEM for static text#2
birkett merged 0 commit intobirkett:info-menufrom
thinkyhead:rc_birkett_info_menu

Conversation

@thinkyhead
Copy link

@thinkyhead thinkyhead commented Jun 30, 2016

The PR MarlinFirmware#3662 adds a STATIC_ITEM macro to ultralcd.cpp that works within the menu system to display a non-interactive line of static text. This gains us 2 spaces since there is no cursor display. The cursor still exists, so you can scroll the display. The cursor cannot move above the 4th display line (on a 4-line display). Thus, if you scroll to the top, there is no "dead spot" where it will not scroll.

This also makes the feature optional, and disabled by default.

Since static items are non-interactive, we explicitly check for a click to return to status.

@thinkyhead thinkyhead force-pushed the rc_birkett_info_menu branch from e908050 to 60f05e4 Compare June 30, 2016 18:50
@birkett birkett merged commit 60f05e4 into birkett:info-menu Jul 1, 2016
@thinkyhead thinkyhead deleted the rc_birkett_info_menu branch July 1, 2016 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants