Symbian
Symbian OS Library

FAQ-0786 How do I remove an EikCommandButtonGroup from my Frame?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: AWT
Created: 04/12/2002 Modified: 04/25/2002
Number: FAQ-0786
Platform: Symbian OS v6.0

Question:
When I try to remove an EikCommandButtonGroup from my Frame, it doesn't seem to work. How can I do this?

Answer:
The short answer is that you cannot. It is a limitation of EikCommandButtonGroup that, although it subclasses java.awt.Component, the remove() method it inherits does not work, so you should not try to use it. However, if you no longer wish your Frame to make use of the command button array, you can remove your Frame as a listener with EikCommandButtonGroup.removeCBAListener(...) or CBAHandler.deactivate(). Your Frame can also use the screen area which would otherwise be used by the command button array by calling, say, setBounds(...).