Question

I have action pane's MyButtonGroup's visible property set to 'no'.

What I want to do is to show (to set its visible property to 'yes') MyButtonGroup when I click Line view button.

I overrode Line view's method gotFocus:

MyButtonGroup.visible(true); 
super();

but I also want MyButtonGroup visible property to be false if Line view button is not focused / clicked

for this I overrode the lostFocus method on Line view

MyButtonGroup.visible(false); 
super();

so the lostFocus method "does not work", I mean when Line view button is not focused anymore MyButtonGroup remains visible.

how can I solve it?

Was it helpful?

Solution

Never use gotFocus or lostFocus.

Use the clicked method of LineViewButton and HeaderViewButton instead. See my pastebin for an example.

That said, you are on the wrong track, the button group would be better placed on the action pane directly above the lines.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top