U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Menus&Toolbars » Bar::Item - adding 'Get' function(s)?
Bar::Item - adding 'Get' function(s)? [message #49060] Sun, 10 December 2017 17:29 Go to next message
luoganda is currently offline  luoganda
Messages: 218
Registered: November 2016
Experienced Member
adding this in some way?
else desired info has to be passed in some way(duplicated)
Re: Bar::Item - adding 'Get' function(s)? [message #49367 is a reply to message #49060] Wed, 31 January 2018 19:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
I just cannot imagin what sort of info you want to fetch from it?
Re: Bar::Item - adding 'Get' function(s)? [message #49395 is a reply to message #49060] Sat, 03 February 2018 14:46 Go to previous message
luoganda is currently offline  luoganda
Messages: 218
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
Previous Topic: ToolBar creates some additional space in the view area
Next Topic: Repainting of DropList
Goto Forum:
  


Current Time: Thu Sep 10 15:55:27 GMT+2 2026

Total time taken to generate the page: 0.00740 seconds