Here are the new files in a zip and the patches to existing. Also added Listbook values to parents.rb that I forgot when adding that. Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Oops. Disregard the wxChoice.h in the zip file, I wanted to upload wxChoicebookEvent.h. Sorry Sean On 8/28/05, Sean Long <sean.m.long@gmail.com> wrote:> Here are the new files in a zip and the patches to existing. > > Also added Listbook values to parents.rb that I forgot when adding that. > > Sean > > >-------------- next part -------------- // Copyright 2004-2005 by Kevin Smith // released under the MIT-style wxruby2 license #if !defined(_wxChoicebookEvent_h_) #define _wxChoicebookEvent_h_ class wxChoicebookEvent : public wxNotifyEvent { public: wxChoicebookEvent(wxEventType commandType = wxEVT_NULL, int id = 0, int nSel = wxNOT_FOUND, int nOldSel = wxNOT_FOUND); int GetOldSelection() const; int GetSelection() const; void SetOldSelection(int page ) ; void SetSelection(int page ) ; }; #endif
Sean Long wrote:>>Here are the new files in a zip and the patches to existing. >> >>Also added Listbook values to parents.rb that I forgot when adding that.Applied, thanks. Just a couple notes: Choicebook.i had a comment: // TODO: Are these correct? Docs don''t show Listbook I changed it to Choicebook instead of Listbook Any chance of getting a little sample app that demonstrates a Choicebook? Kevin
Actually both classes are listed in the wx documentation if you go to the alphabetical class reference: http://wxwidgets.org/manuals/2.6.1/wx_classref.html#classref. So those comments can be removed. The listbook example can be converted by changeing all wxListBook and listbookpage entries in the listbook.xrc to wxChoiceBook and choicebookpage and change wxLB_LEFT to wxCHB_LEFT. Also need to change evt_listbook_page_changed to evt_choicebook_page_changed in listbook.rb. I don''t have the time right now to actually do it, but I did once before when I added the code and it worked fine. Sean On 9/1/05, Kevin Smith <wxruby@qualitycode.com> wrote:> Sean Long wrote: > >>Here are the new files in a zip and the patches to existing. > >> > >>Also added Listbook values to parents.rb that I forgot when adding that. > > Applied, thanks. Just a couple notes: > > Choicebook.i had a comment: > // TODO: Are these correct? Docs don''t show Listbook > I changed it to Choicebook instead of Listbook > > Any chance of getting a little sample app that demonstrates a Choicebook? > > Kevin > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >