[wxruby-users] Tabs
Luc Traonmilin
luc.traonmilin at gmail.com
Mon Mar 16 13:26:48 EDT 2009
Luc Traonmilin a écrit :
> Trans a écrit :
>> Can anyone tell me how to create a tabbed interface? I tried using the
>> Notebook control but I could not get it to work.
>>
>> I'm trying to put a Grid on one of the Notebook pages.
>>
>> Thanks,
>> Trans
>> _______________________________________________
>> wxruby-users mailing list
>> wxruby-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wxruby-users
>>
>>
> Here is some code I used in a small app:
>
> # the tabbed interface
> # create the notebook
> @notebook = Notebook.new(
> @frame, # the parent frame
> 1,
> DEFAULT_POSITION,
> DEFAULT_SIZE, 0,
> 'notebook')
> welcome_text = StaticText.new(
> @notebook, 2, "\nClick on a project node to open it or
> create a new project.",
> DEFAULT_POSITION,
> DEFAULT_SIZE,
> 0,
> "welcomeText")
> @notebook.add_page(
> welcome_text, "Welcome",
> true,
> -1)
>
> Hope it's useful
>
Sorry about bad formatting... thunderbird messed it all
More information about the wxruby-users
mailing list