From: Arne S. <sch...@kn...> - 2004-12-15 14:27:55
|
ok, i must correct myself. It is not a good example ;-) But anyway, you can do it like this : if (showSpectogram) { if (!parent->isChild (spectogramView)) parent->addView (spectogramView); if (parent->isChild (presetView)) parent->removeView (presetView, false); } else if (showPresets) { if (!parent->isChildView (presetView)) parent->addView (presetView); if (parent->isChild (spectogramView)) parent->removeView (spectogramView, false); } presetView and spectogramView should be the same size. cheers arne On Dec 15, 2004, at 3:15 PM, Arne Scheffler wrote: > You may want to check out the latest cvs source. > I've added a control called CTabView. It is I think a good example on > how to use a view container, especially for cases like yours. > > cheers > arne > > > On Dec 15, 2004, at 12:26 PM, Alexey Menshikov wrote: > >> Hi, >> >> A little problem here: >> I created control display that have different screens swiched by kick >> button: Samples, Presets, Spectrogram, Setup. >> >> Created in that order as described above. All controls have "disable" >> variable, if it true than mouse and draw methods are skipped. >> The problem is even if control is enables, mouse work only with last >> created. >> >> I trued use frame->setViewFocus but it still bahve same. >> Should i create them dyanmically or we have somemethod to remove view >> from queue temprorary? >> >> Thanks in advance, >> >> Alex >> >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real >> users. >> Discover which products truly live up to the hype. Start reading now. >> http://productguide.itmanagersjournal.com/ >> _______________________________________________ >> Vstgui-devel mailing list >> Vst...@li... >> https://lists.sourceforge.net/lists/listinfo/vstgui-devel > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Vstgui-devel mailing list > Vst...@li... > https://lists.sourceforge.net/lists/listinfo/vstgui-devel |