Lyle and Henon; thanks for helping out with ''clearing'' the frames. It''s working. I end up using; parent.removeChild(righttopframe) righttopframe = nil Am afraid I stumbled on another question. I managed to put my application in a tabbook. I am looking to catch the event ''click on tabitem''. I tried SEL_COMMAND on TabItem but that seems not to work. I also would appreciate some text to explain the difference between Tabbar and Tabbook. Thanks, Ernst T.
This might not be the best way to do it, but the docs say that when you click on a tab item, the tab book sends a SEL_COMMAND to it''s target. If you set something to be the target and react on SEL_COMMANDs, then that should do the trick. On 12/14/07, Ernst J. Tanaka <ernst at tanakasite.com> wrote:> > Lyle and Henon; thanks for helping out with ''clearing'' the frames. It''s > working. > I end up using; > parent.removeChild(righttopframe) > righttopframe = nil > > Am afraid I stumbled on another question. > > I managed to put my application in a tabbook. I am looking to catch the > event ''click on tabitem''. > I tried SEL_COMMAND on TabItem but that seems not to work. > > I also would appreciate some text to explain the difference between > Tabbar and Tabbook. > > Thanks, > > Ernst T. > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >-- Ralph -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20071214/320a39f2/attachment.html
On 12/14/07, Ernst J. Tanaka <ernst at tanakasite.com> wrote:> I managed to put my application in a tabbook. I am looking to catch the > event ''click on tabitem''. I tried SEL_COMMAND on TabItem but that seems > not to work.The FXTabBook widget should send a SEL_COMMAND message whenever you select a new tab: tabBook.connect(SEL_COMMAND) do puts "User selected tab number #{tabBook.current}" end Hope this helps, Lyle
On Friday 14 December 2007, Ernst J. Tanaka wrote:> Lyle and Henon; thanks for helping out with ''clearing'' the frames. It''s > working. > I end up using; > parent.removeChild(righttopframe) > righttopframe = nil > > Am afraid I stumbled on another question. > > I managed to put my application in a tabbook. I am looking to catch the > event ''click on tabitem''. > I tried SEL_COMMAND on TabItem but that seems not to work. > > I also would appreciate some text to explain the difference between > Tabbar and Tabbook.FXTabBook is a row of tabs with a number of panes below it; the children of FXTabBook are tabitem, panel, tabitem, panel, ... So usually an even number of children. The FXTabBar is just a number of FXTabItems on a row. Its useful if you want tabbook-like behaviour but the content being switched is done in some other way [e.g. changing the content of a GL window by drawing a different object]. Hope this helps, - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 22:40 12/ 3/2007 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20071215/4959871f/attachment.bin