[Mono-list] Which event should I use?

Salvatore Scarciglia s.scarciglia at hyperphar.com
Fri Apr 7 03:34:57 EDT 2006


On Fri, 7 Apr 2006 17:22:34 +1000
"ksadil at bigpond.net.au" <ksadil at bigpond.net.au> wrote:

> I have a treeview in a window, and immediately after the window is shown, I
> want to fill the treeview with rows, without user interaction. What event on
> which widget should I use? I have set up a dummy button to do this for the
> time being. I do not have a problem with how to add rows, etc; just want to
> know how to make it populate the treeview without user interaction.

Why don't you do like this:

- In the Main method:
	...
       	fillTreeView();
       	myWindow.ShowAll();
	...

You can simply populate the TreeView and then make the Window visible !

For an example, view the last lesson of my tutorial "TreeView for kids" at:

http://laas.altervista.org/tutorials/tview_7.php

bye


-- 

Salvatore ---------------------<|
LAAS --------------------------<|
http://laas.altervista.org ----<|


More information about the Mono-list mailing list