-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Element visibility #24
Comments
Definitely something that should be added. The ability to Hide() or Show() is needed, along with cascading redraws of affected regions. |
Agreed. I will move this feature into the shortlist for implementation as it should be relatively straightforward and potentially quite useful. Note that I may initially implement this with a full-display invalidation (I don’t expect show/hide to be done frequently), but clearly it would be desirable to support an optimized invalidated region. There are other features that could benefit from this optimized invalidation, so it would be worthwhile. |
maybe just fill with screen color if hiding a visible window - a good first
step ...
personally, I dont expect a full windows system on small micros. I mainly
would want to show/hide windows in a simple manner based on state:
EG if a system is disarmed, make the ARM-HOME and ARM-AWAY button visible
otherwise make the DISARM button visible. things like that.
I can create the page with three fields invisible. At run time, I can
decide which to show/hide. Other solutions (other than hide/show) are
possible, but a lot less intuitive.
thanks,
Ron
…On Sat, Jan 12, 2019 at 12:22 PM Calvin Hass ***@***.***> wrote:
Agreed. I will move this feature into the shortlist for implementation as
it should be relatively straightforward and potentially quite useful. Note
that I may initially implement this with a full-display invalidation (I
don’t expect show/hide to be done frequently), but clearly it would be
desirable to support an optimized invalidated region. There are other
features that could benefit from this optimized invalidation, so it would
be worthwhile.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATWi5W_vi6BdLoHI4vFFJldVnET5fBZGks5vCUbvgaJpZM4RVsfL>
.
--
regards,
Ron
|
- New API: ElemSetShow() - NOTE: This implementation triggers full-page redraw when an element is hidden. Future implementations will perform selective redraw of revealed regions. - ElemRefFlags updated to add GSLC_ELEMREF_SHOW - Create default ElemRefFlags GSLC_ELEMREF_DEFAULT
@rrroonn -- I have now integrated a preliminary implementation of the element visibility feature into the WIP24-Visibility branch
|
- Note: hiding an element triggers full page redraw in the current implementation (not yet optimized for partial redraw)
Visibility feature has now been integrated into master via #117
|
It would be useful to support dynamic displays that show / hide GUI elements on the basis of the current state (e.g. A button that is only visible when a radio button / checkbox is set). This may just involve adding a ElemSetVisibleEn() and then integrating this with the existing redraw functionality. The visibility status could potentially be stored by expanding tsElem:bValid into a multi-bit state field.
The text was updated successfully, but these errors were encountered: