Hi, [1] Is there a way of hiding/showing list/table/whatever elements without rebuilding a new list ? [2] How to initialize the height of a frame whose parent is a splitter ? My main window is splitted vertically, the bottom pane contains a FXText only, I''d like to display 3 lines (or a given height) only when I create the main window. [3] I''m still using FXRuby 1.0, is the API available somewhere ? Thanks Thomas Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34 ?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn)
On Wed, 15 Feb 2006 23:10:35 +0100, "thom01" <thom01 at laposte.net> wrote :> [1] > Is there a way of hiding/showing list/table/whatever elements > without rebuilding a new list ?Obviously, you can add or remove list items without "rebuilding" the list from scratch. But no, there''s no way to temporarily hide a list item.> [2] > How to initialize the height of a frame whose parent is a > splitter ? > My main window is splitted vertically, the bottom pane > contains a FXText only, I''d like to display 3 lines (or a > given height) only when I create the main window.Please see if this topic from the FOX Community Wiki site addresses your question: http://fox-toolkit.net/cgi-bin/wiki.pl?Cookbook/Setting_The_Relative_Sizes_Of_Panes_In_An_FXSplitter> [3] > I''m still using FXRuby 1.0, is the API available somewhere ?Yes, here: http://www.fxruby.org/1.0/doc/api/ Hope this helps, Lyle
On Wednesday 15 February 2006 16:10, thom01 wrote:> Hi, > > [1] > Is there a way of hiding/showing list/table/whatever elements > without rebuilding a new list ?You can delete and re-insert a single item at any arbitrary place in the list.> [2] > How to initialize the height of a frame whose parent is a > splitter ?splitterchild->setHeight() ought to do it.> My main window is splitted vertically, the bottom pane > contains a FXText only, I''d like to display 3 lines (or a > given height) only when I create the main window.The best way [what I''d do] is to call setVisibleRows() on the FXText, then call splitterchild->setHeight(text->getDefaultHeight()+FUDGE) where FUDGE depends on the selected padding and border styles you''ve defined for the intervening widgets between your text widget and it''s splitterchild ancestor. Regards, - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 16:50 02/15/2006 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: not available Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060215/08e532a3/attachment.bin