virtual update, fixed round courners bug
fluxgen fluxgen
2 files changed,
9 insertions(+),
2 deletions(-)
M
src/FbMenu.cc
→
src/FbMenu.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbMenu.cc,v 1.2 2003/12/10 23:08:03 fluxgen Exp $ +// $Id: FbMenu.cc,v 1.3 2004/04/18 18:53:55 fluxgen Exp $ #include "FbMenu.hh"@@ -39,7 +39,13 @@ FbMenu::~FbMenu() {
} +void FbMenu::update(int index) { + FbTk::Menu::update(index); + m_shape->update(); +} + void FbMenu::clearWindow() { + FbTk::Menu::clearWindow(); m_shape->update(); }
M
src/FbMenu.hh
→
src/FbMenu.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbMenu.hh,v 1.3 2003/12/10 23:08:03 fluxgen Exp $ +// $Id: FbMenu.hh,v 1.4 2004/04/18 18:53:55 fluxgen Exp $ #ifndef FBMENU_HH #define FBMENU_HH@@ -36,6 +36,7 @@ public:
FbMenu(MenuTheme &tm, FbTk::ImageControl &imgctrl, FbTk::XLayer &layer); ~FbMenu(); + void update(int index = -1); void clearWindow(); void raise() { m_layeritem.raise(); } void lower() { m_layeritem.lower(); }