In Touchgfx designs how to expose a protected attribute to a view class from a parent class.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-17 6:27 AM
I have a SlideManu object in my ViewBase. I would like to modify the stateChangeButton attribute to allow shading from the View class object. This is a protected attribute in the SlideMenu class but there should be some way for me to have access to the parent protected attribute via inheritance in my View class.
Right now I just changed the attribute from protected to public so I can modify it but am looking for a more elegant solution.
Labels:
- Labels:
-
TouchGFX
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-17 7:00 AM
protected is C++ design, no TGFX. Elegant dont exist, only extend class with public method for access protected value inside.
