Home » U++ Library support » Menus&Toolbars » Bar::Item - adding 'Get' function(s)?
|
|
Re: Bar::Item - adding 'Get' function(s)? [message #49395 is a reply to message #49060] |
Sat, 03 February 2018 14:46  |
luoganda
Messages: 211 Registered: November 2016
|
Experienced Member |
|
|
this is more or less to get info for custom usage, bypassing Help,Tip etc,
not that it can't be done, but it's not straightforward,
data(f.e. text)hasToBeDuplicated if custom info is desired.
What sort of info?
all of it would be neat - but for example 'text':
there is a Bar::Item,
then forExample there is ToolButton::text which is set by the Bar::Item overridenFuncs
ToolButton::text is protected, it could be accessed with subclassing,
but then again in ToolBar it's defined as Array<ToolButton> item;, so it can't be accessed with subclassing anyway
It's similar for Menu bars.
...ahh, there is one thing i overlooked for possible solution,
subclassing Bar::Item itself and using that wherever possible - but then again - data
duplication would probably be needed, but at least similar data - when access to it(if desired) - would be in same place
|
|
|
Goto Forum:
Current Time: Mon Apr 28 23:39:55 CEST 2025
Total time taken to generate the page: 0.03886 seconds
|