Skip to content

MUI read only fields #2312

Answered by olikraus
Cat30Mk3 asked this question in Q&A
Dec 4, 2023 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Of course you can also make a copy of this macro:

u8g2/csrc/mui_u8g2.h

Lines 243 to 246 in 34be7c8

#define MUIF_U8G2_U8_MIN_MAX(id, valptr, min, max, muif) \
MUIF(id, MUIF_CFLAG_IS_CURSOR_SELECTABLE, \
(void *)((mui_u8g2_u8_min_max_t [] ) {{ (valptr) MUI_U8G2_COMMA (min) MUI_U8G2_COMMA (max)}}), \
(muif))

by using 0 instead of "MUIF_CFLAG_IS_CURSOR_SELECTABLE"

It could be then used to display the value as a bar graph like demonstrated here: https://github.com/olikraus/u8g2/wiki/muiref#bar-graph-uint8

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Cat30Mk3
Comment options

Comment options

You must be logged in to vote
3 replies
@Cat30Mk3
Comment options

@olikraus
Comment options

@Cat30Mk3
Comment options

Answer selected by Cat30Mk3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants