T
timasmith
So suppose you have a complex frame with multiple panels and depending
on the state of specific controls on the panels - you should enable or
disable menus and toolbars accordingly.
Menus have a workaround in that you could perform logic on 'click' -
but what about toolbars.
If I select text so copy and cut should be enabled. If a click on a
node so my delete button should enable.
I want to avoid polling the entire frames state every second of course.
Perhaps I could have some kind of property listener for the relevant
controls that on change changes (de)activates the toolbar - but the
cut/copy example shows the impracticality of that.
There must be a design pattern for this...
Tim
on the state of specific controls on the panels - you should enable or
disable menus and toolbars accordingly.
Menus have a workaround in that you could perform logic on 'click' -
but what about toolbars.
If I select text so copy and cut should be enabled. If a click on a
node so my delete button should enable.
I want to avoid polling the entire frames state every second of course.
Perhaps I could have some kind of property listener for the relevant
controls that on change changes (de)activates the toolbar - but the
cut/copy example shows the impracticality of that.
There must be a design pattern for this...
Tim