You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
|
Nov
(14) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(5) |
Feb
(2) |
Mar
(9) |
Apr
(13) |
May
(2) |
Jun
(2) |
Jul
(10) |
Aug
(6) |
Sep
(6) |
Oct
|
Nov
(6) |
Dec
|
2003 |
Jan
|
Feb
(3) |
Mar
(3) |
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(4) |
Apr
(3) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
(3) |
Apr
(3) |
May
(3) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2007 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Takaaki T. <tt...@kt...> - 2001-12-06 04:21:39
|
立石です. ruby-fltk-0.5を今週か来週にはリリースするつもりでいます. 今回は,ソースとcygwinのバイナリに加えて,mingw版バイナリも提供 するつもりです.また,OpenGLモジュールともとりあえずうまく連携 できるようになりました. 結構変更が多くなったのでcvsにアクセスできる人は一度テストして頂 けると嬉しいです.mingw対応については今回が初めてですので,一応 現時点でのバイナリを以下のURLにて公開しておきます.このruby-fltk はOpenGLに対応させて作成し,またopengl拡張モジュールも含まれてい ます.このため,opengl32.dll,glu32.dll というDLLが必要になります. これらは http://www.opengl.org/ からとってくることができます. [mingw版ruby-fltk] http://ruby-fltk.sourceforge.net/archive/ruby-fltk-20011205.mingw.zip 時間があればよろしくお願いします. # ちゃんと動くと良いのですが… -- Takaaki Tateishi <tt...@kt...> |
From: Takaaki T. <tt...@kt...> - 2001-12-05 09:47:59
|
Hello, I'll release the next version 0.5 in this week or next week. So I hope you to test latest sources on cvs. This version can work with OpenGL extension module for ruby. Also I will distribute binary packages for mingw and cygwin including OpenGL extension module which is provided by the other. There is the preview release of mingw version of ruby-fltk at: http://ruby-fltk.sourceforge.net/archive/ruby-fltk-20011205.mingw.zip. (requires opengl32.dll and glu32.dll) Regards, -- Takaaki Tateishi <tt...@kt...> |
From: Takaaki T. <tt...@kt...> - 2001-12-05 07:58:46
|
At Tue, 04 Dec 2001 22:42:17 +0100, sz...@t-... (Christian Szegedy) wrote: > I am using Suse Linux 7.3 (Kernel 2.4.10), ruby-fltk-0.4, fltk-1.1.0b6 and > configured the ruby fltk with the option --disable-gl (otherwise there were > unresolved symbols in the fltk so). Thank you. I will release the version 0.5 after fixing this problem. I will check it with fltk-1.0.11 and fltk-1.1.0b6. -- Takaaki Tateishi <tt...@kt...> |
From: <sz...@t-...> - 2001-12-04 21:42:40
|
I downloaded today the latest sources of fltk and ruby-fltk. I am using Suse Linux 7.3 (Kernel 2.4.10), ruby-fltk-0.4, fltk-1.1.0b6 and configured the ruby fltk with the option --disable-gl (otherwise there were unresolved symbols in the fltk so). I tried some of your examples, and if I click around a while in the file browser, then it crashes with the following trace: (gdb) r file_chooser.rb Starting program: /usr/local/bin/ruby file_chooser.rb Program received signal SIGSEGV, Segmentation fault. 0x080a1adb in rb_str_new2 (ptr=0x0) at string.c:57 57 return rb_str_new(ptr, strlen(ptr)); (gdb) where #0 0x080a1adb in rb_str_new2 (ptr=0x0) at string.c:57 #1 0x080a1b52 in rb_tainted_str_new2 (ptr=0x0) at string.c:75 #2 0x40216ca8 in rb_fltk_file_chooser_callback_internal (str=0x0) at fltk.cc:699 #3 0x40240eba in callback () at flmenu.cc:169 #4 0x40247f24 in Fl_File_Chooser::fileListCB () at flmenu.cc:169 #5 0x40246aa7 in Fl_File_Chooser::cb_fileList () at flmenu.cc:169 #6 0x4022684a in Fl_Browser_::handle () at flmenu.cc:169 #7 0x4022c2b5 in send () at flmenu.cc:169 #8 0x4022c68b in Fl_Group::handle () at flmenu.cc:169 #9 0x40222b61 in Fl_Window::handle () at flmenu.cc:169 #10 0x40222614 in send () at flmenu.cc:169 #11 0x40222770 in Fl::handle () at flmenu.cc:169 #12 0x4023c2a7 in fl_handle () at flmenu.cc:169 #13 0x4023b798 in do_queued_events () at flmenu.cc:169 #14 0x4023bacb in fd_callback () at flmenu.cc:169 #15 0x4023b9d1 in fl_wait () at flmenu.cc:169 #16 0x40221f69 in Fl::wait () at flmenu.cc:169 #17 0x40221fea in Fl::wait () at flmenu.cc:169 #18 0x40240fb9 in fl_file_chooser () at flmenu.cc:169 #19 0x40216e65 in rb_fltk_file_chooser (argc=1, argv=0xbfffe924, self=1075620236) at fltk.cc:745 #20 0x08059c18 in call_cfunc (func=0x40216d30 <rb_fltk_file_chooser(int, unsigned long *, unsigned long)>, recv=1075620236, len=-1, argc=1, argv=0xbfffe924) at eval.c:4214 #21 0x0805a1c2 in rb_call0 (klass=1075600936, recv=1075620236, id=8977, argc=1, argv=0xbfffe924, body=0x401c4ce4, nosuper=1) at eval.c:4353 #22 0x0805a9aa in rb_call (klass=1075600936, recv=1075620236, mid=8977, argc=1, argv=0xbfffe924, scope=0) at eval.c:4569 #23 0x080558fc in rb_eval (self=1075674256, n=0x401caa04) at eval.c:2524 #24 0x08055730 in rb_eval (self=1075674256, n=0x401caa90) at eval.c:2516 #25 0x08051edc in eval_node (self=1075674256, node=0x401caa90) at eval.c:1058 #26 0x0805228f in ruby_run () at eval.c:1188 #27 0x08050a52 in main (argc=2, argv=0xbffff484, envp=0xbffff490) at main.c:50 #28 0x4009f7ee in __libc_start_main () from /lib/libc.so.6 |
From: Kevin S. <kev...@ya...> - 2001-11-29 01:43:27
|
--- Kent Dahl <ke...@st...> wrote: > Oh, and Kevin: Where is the Space Monkeys thingie > available? It sounds cool! I have just now released the Ruby/FLTK version. It's rough, but works just as well as the GTK version ever did. Actually, a bit better because I improved the command interface slightly. The zip file is now linked from my main page, or you can grab it directly from http://www.qualitycode.com/code/monkeys-fltk.zip Oh, I didn't update the README, so ignore the stuff at the bottom about a keyboard interface. The command to run the game is: ruby uigame.rb Let me know if you actually play it! Kevin __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 |
From: Kent D. <ke...@st...> - 2001-11-28 13:27:28
|
Kent Dahl wrote: > > Fra: Takaaki Tateishi <tt...@kt...> > >I'd like to provide the ruby-fltk with your editor. > >Can I absorb it? > > You're welcome to. I cleaned it up, fixed the shortcuts and added some more comments. http://www.stud.ntnu.no/~kentda/public/coding/ruby/projects/toys/ But, it seems that the "&Search" blocks the usage of Alt+Shift+S for "Save As". I think this is a "bug" in the original FLTK Editor sample, thou I haven't tried it in a while. I'm also not all sure on the usage of "setup_menubar", where I made a helper function that makes the construction of the menubar look as much as C++ as possible, to avoid repeating myself. ("File", "File/Open", "File/Save"...etc) I think it is a nice thing, but I've been using FLTK from C++ before, so that has made me somewhat brain-damaged :-) > >"#s" and "+s" mean FL_ALT + 's' and FL_SHIFT + 's' respectively. > > So does that mean that "#+s" would work as FL_ALT + FL_SHIFT + 's' ? Wow, that works too! Excellent! -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Kent D. <ke...@st...> - 2001-11-28 12:25:49
|
Fra: Takaaki Tateishi <tt...@kt...> >I'd like to provide the ruby-fltk with your editor. >Can I absorb it? You're welcome to. >"#s" and "+s" mean FL_ALT + 's' and FL_SHIFT + 's' respectively. So does that mean that "#+s" would work as FL_ALT + FL_SHIFT + 's' ? >But I fixed Menu_#add() so that we can pass an integer value >like this: > > @menu.add("file/exit2", FLTK::CTRL + ?q){ exit(0) } > >This line is a part of test/menu_bar.rb I modified today. Thanks, that is much more readable. -- ([ Kent Dahl ])================([ http://www.stud.ntnu.no/~kentda/ ]) (stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix)) /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Takaaki T. <tt...@kt...> - 2001-11-28 12:01:17
|
At Tue, 27 Nov 2001 21:59:10 -0500, Kent Dahl <ke...@st...> wrote: > I've got most of the "Simple Text Editor" sample application in FLTK up > and running in Ruby-FLTK, however it does require the newest cvs (+ > implementation of Fltk.input, which I sent a naive version of on the > devel list.) I'd like to provide the ruby-fltk with your editor. Can I absorb it? > "^n" which mean Ctrl+n, but I'm not sure how to do all the various > shortcuts that are shown in the tutorial. > It has (FL_ALT + 's') and (FL_ALT + FL_SHIFT + 's') > Ideally, I think it should be possible to have a method you pass in the > Fltk::ALT constant with the character to some "shortcut creator", so > that we don't end up with more > regexp-look-alike magical character sequences ;-) "#s" and "+s" mean FL_ALT + 's' and FL_SHIFT + 's' respectively. But I fixed Menu_#add() so that we can pass an integer value like this: @menu.add("file/exit2", FLTK::CTRL + ?q){ exit(0) } This line is a part of test/menu_bar.rb I modified today. Thank you for your advice. -- Takaaki Tateishi <tt...@kt...> |
From: Kent D. <ke...@st...> - 2001-11-27 20:47:28
|
Kent Dahl wrote: > With these, I've got my first running version of MasterMind in Ruby > using FLTK. ... > For the curious: > http://www.stud.ntnu.no/~kentda/public/coding/ruby/projects/toys/ Hi again. I've got most of the "Simple Text Editor" sample application in FLTK up and running in Ruby-FLTK, however it does require the newest cvs (+ implementation of Fltk.input, which I sent a naive version of on the devel list.) One thing I haven't got working yet, is Alt-shortcuts. The samples show "^n" which mean Ctrl+n, but I'm not sure how to do all the various shortcuts that are shown in the tutorial. It has (FL_ALT + 's') and (FL_ALT + FL_SHIFT + 's') Ideally, I think it should be possible to have a method you pass in the Fltk::ALT constant with the character to some "shortcut creator", so that we don't end up with more regexp-look-alike magical character sequences ;-) Oh, and Kevin: Where is the Space Monkeys thingie available? It sounds cool! -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Takaaki T. <tt...@kt...> - 2001-11-25 04:10:35
|
At Sat, 24 Nov 2001 22:33:34 -0500, > But when I tried to set up a MenuBar, I got stumped. I cannot find any > MenuItem class, but perhaps I don't need it? Are there any samples of > using menus and menubars in Ruby-FLTK? Wrappers to Fl_Menu_Item have not been available yet. But I think we can use Menu#add() method to do such things simply. See also test/menu_bar.rb. -- Takaaki Tateishi <tt...@kt...> |
From: Kent D. <ke...@st...> - 2001-11-24 21:22:14
|
Takaaki Tateishi wrote: > I've also added them. Thank you! With these, I've got my first running version of MasterMind in Ruby using FLTK. MasterMind is one of those games I write in every new language I learn, to help me get a feel for various parts of the language, and in this case Ruby-FLTK too. For the curious: http://www.stud.ntnu.no/~kentda/public/coding/ruby/projects/toys/ but the rules aren't explained in-game yet. Ok, back to nagging :-) I'm thinking of writing the example Editor FLTK application in Ruby-FLTK. http://www.fltk.org/doc-1.0/editor.html#editor But when I tried to set up a MenuBar, I got stumped. I cannot find any MenuItem class, but perhaps I don't need it? Are there any samples of using menus and menubars in Ruby-FLTK? -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Takaaki T. <tt...@kt...> - 2001-11-24 02:06:39
|
At Fri, 23 Nov 2001 22:56:33 -0500, Kent Dahl <ke...@st...> wrote: > -I/usr/X11R6/include -c -o flmenu.o flmenu.cc > flmenu.cc:145:20: warning: extra tokens at end of #undef directive .. > flscroll.cc:29:3: warning: pasting "::" and "HORIZONTAL" does not give a > valid preprocessing token .. These are my faults. I've fixed them on the cvs. > I changed the intern.h of Ruby to read > void rb_gc_mark(VALUE); > and the flwidget.cc in ruby-fltk to read > rb_gc_mark( (long unsigned int)(userdata)); This is correct. Actually ruby-1.7 has void rb_gc_mark _((VALUE)); in the intern.h. > Now, as for something _functional_ I'm missing. FL_SYMBOL_LABEL. I've also added them. Thanks, -- Takaaki Tateishi <tt...@kt...> |
From: Kent D. <ke...@st...> - 2001-11-23 21:45:22
|
Takaaki Tateishi wrote: > I'd like to inform you that I've released the version 0.4 of Ruby/FLTK. > You can download the source archive and the binary for cygwin at the > following URL: > http://ruby-fltk.sourceforge.net/ Hi. I have some small problems with 0.4. I'm running Mandrake 8.0, Ruby 1.6.4 (and 1.6.5), gcc 2.96 <SNIP> g++ -fPIC -O3 -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_X11_X_H -DHAVE_X11_XLOCALE_H -DHAVE_SETLOCALE -DHAVE_FL_FL_H -I/usr/local/include -I/usr/X11R6/include -DUSE_GL -I/usr/local/include -I/usr/X11R6/include -c -o flmenu.o flmenu.cc flmenu.cc:145:20: warning: extra tokens at end of #undef directive g++ -fPIC -O3 -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -I/usr/lib/ruby/1.6/i586-linux-gnu -I/usr/include -DHAVE_X11_X_H -DHAVE_X11_XLOCALE_H -DHAVE_SETLOCALE -DHAVE_FL_FL_H -I/usr/local/include -I/usr/X11R6/include -DUSE_GL -I/usr/local/include -I/usr/X11R6/include -c -o flscroll.o flscroll.cc flscroll.cc:29:3: warning: pasting "::" and "HORIZONTAL" does not give a valid preprocessing token flscroll.cc:30:3: warning: pasting "::" and "VERTICAL" does not give a valid preprocessing token flscroll.cc:31:3: warning: pasting "::" and "BOTH" does not give a valid preprocessing token flscroll.cc:32:3: warning: pasting "::" and "HORIZONTAL_ALWAYS" does not give a valid preprocessing token flscroll.cc:33:3: warning: pasting "::" and "BOTH_ALWAYS" does not give a valid preprocessing token </SNIP> This all compiles, but those warnings look scary. Is this something I should worry about? But I also got the ol' rb_gc_mark problem. <SNIP> flwidget.cc: In function `void rb_fl_mark (Fl_Widget *)': /usr/local/lib/ruby/1.6/i686-linux/intern.h:189: too many arguments to function `void rb_gc_mark ()' flwidget.cc:34: at this point in file </SNIP> But this seemed to be the GCC 2.96 fault. I changed the intern.h of Ruby to read void rb_gc_mark(VALUE); and the flwidget.cc in ruby-fltk to read rb_gc_mark( (long unsigned int)(userdata)); I know, I should update :-) ________________________ Now, as for something _functional_ I'm missing. FL_SYMBOL_LABEL. I was hoping for find SYMBOL_LABEL constant in Fltk, as I want my buttons to show those nice arrow pictures. When I didn't find, it I tried this: 10.times{|i| upbutton = Fltk::Button.new( x, y ,butw, h/(4*3), '@#2<-' ). labeltype=i } and noticed that the second button (labeltype=1) doesn't show anything (a.k.a. it is FL_NO_LABEL), but the other types don't appear to work. (labeltype>5 all also go blank.) -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Takaaki T. <tt...@kt...> - 2001-11-18 01:53:04
|
Hello, I'd like to inform you that I've released the version 0.4 of Ruby/FLTK. You can download the source archive and the binary for cygwin at the following URL: http://ruby-fltk.sourceforge.net/ Regards, -- Takaaki Tateishi <tt...@kt...> |
From: Kent D. <ke...@st...> - 2001-11-16 08:37:42
|
Takaaki Tateishi wrote: > I guess it was caused by missing MANIFEST file. > How about updating the following two file? Thank you, that worked wonders! -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Takaaki T. <tt...@kt...> - 2001-11-16 01:03:21
|
At Thu, 15 Nov 2001 16:53:47 -0500, Kent Dahl <ke...@st...> wrote: > I noticed that Ruby-FLTK isn't configured nor compiled when I do this. > (I also added XMLParser, for which the same procedure worked.) I guess it was caused by missing MANIFEST file. How about updating the following two file? http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ruby-fltk/ruby-fltk/MANIFEST http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ruby-fltk/ruby-fltk/extconf.rb Regards, -- Takaaki Tateishi <tt...@kt...> |
From: Kevin S. <kev...@ya...> - 2001-11-15 20:13:13
|
--- Kent Dahl <ke...@st...> wrote: > Would it be worth the effort to change the make config of > Ruby-FLTK to work "magically" with the ruby compilation > configuration, such as XMLParser aparently does? That sounds great to me. Unfortunately, I know almost nothing about packaging, so someone other than me would have to take care of this. Kevin __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com |
From: Kent D. <ke...@st...> - 2001-11-15 15:43:25
|
Hi. I'm trying to get Ruby 1.6.5 up and running on my Agenda VR3, with more extensions than last time. I copied the ruby-fltk (v0.3) into the ext/ folder, added ruby-fltk to the ext/Setup and ran ./configure --with-static-ext in the ruby directory, and them make. I noticed that Ruby-FLTK isn't configured nor compiled when I do this. (I also added XMLParser, for which the same procedure worked.) Also, there are some hard-codings in the Makefile, that makes it necessary to edit the makefile to cross-compile. (I use "export CC=mipsel-linux-gcc", which doesn't work with the current Ruby-FLTK makefile, since it defined CC directly) Would it be worth the effort to change the make config of Ruby-FLTK to work "magically" with the ruby compilation configuration, such as XMLParser aparently does? -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Kent D. <ke...@st...> - 2001-09-30 18:20:50
|
Takaaki Tateishi wrote: > If you'd like to get non-nil value, give the data like this: > > @transactionlist.callback(somedata){ ... } Well, the problem was, that transactionlist is a Fltk::HoldBrowser, which has one callback, but a list of entries. Maybe I've misunderstood Fltk on this part, since the obvious, useful thing for me when I have a select callback, is the structure it represents and not some toplevel object assosiated solely with the Browser... If I think hard about it, I realize that it would break the way callbacks work everywhere else in FLTK where 1 widget -> 1 callback -> 1 user data. > Here is a part of FLTK manual: > > Each line contains a null-terminated string of text and a void * data pointer. > The text string is displayed, the void * pointer can be used by the callbacks > to reference the object the text describes. > > If I don't misunderstand, I think this description mention > something like "a.data(a.value)" in your code, > and the void * pointer (= "a.data(a.value)") *can* be used > in the callback block. I'll buy that now. When I read "void * pointer can be used by callbacks" before I just assumed that it was the closest pointer to the callback, the one it gets as an argument... I'm off to kick myself a bit now :-) -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Takaaki T. <tt...@kt...> - 2001-09-30 17:00:44
|
At Sun, 30 Sep 2001 16:48:18 -0400, Kent Dahl <ke...@st...> wrote: > ...I still get b==nil. Its not an immediate problem, as I can get the > data thru the browser object, but since most Fltk callbacks use the > idiom of a widget pointer and a void pointer as arguments in C++, this > caught me by surprise. If you'd like to get non-nil value, give the data like this: @transactionlist.callback(somedata){ ... } > Reading /ruby-fltk/doc/en/guide.txtand especially 3.2 seems to be > somewhat misleading on this subject, as it states that only the data > should be passed. I'm assuming it should say that the widget itself and > the data will be passed. (Or is this changing?) Here is a part of FLTK manual: Each line contains a null-terminated string of text and a void * data pointer. The text string is displayed, the void * pointer can be used by the callbacks to reference the object the text describes. If I don't misunderstand, I think this description mention something like "a.data(a.value)" in your code, and the void * pointer (= "a.data(a.value)") *can* be used in the callback block. @transactionlist.callback do |a,b| puts a.value.to_s + ":" + a.data(a.value).to_s + ";" + b end But I don't be assure of my thought. -- Takaaki Tateishi <tt...@kt...> |
From: Kent D. <ke...@st...> - 2001-09-30 14:40:27
|
Hi. I just started playing around and changing the ListBox to accomodate my needs. When I did that, I noticed something that appears to work not quite as FLTK does when you're using C++, and confused me for a few seconds :-) After populating the HoldBrowser with data... @transactionlist.add("Some text", objectItRefersTo) And setting up a callback: @transactionlist.callback do |a,b| puts a.value.to_s + ":" + a.data(a.value).to_s + ";" + b end ...I still get b==nil. Its not an immediate problem, as I can get the data thru the browser object, but since most Fltk callbacks use the idiom of a widget pointer and a void pointer as arguments in C++, this caught me by surprise. Reading /ruby-fltk/doc/en/guide.txtand especially 3.2 seems to be somewhat misleading on this subject, as it states that only the data should be passed. I'm assuming it should say that the widget itself and the data will be passed. (Or is this changing?) -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |
From: Takaaki T. <tt...@kt...> - 2001-09-27 04:44:23
|
Hello, I'd like to inform you that I've released the version 0.3 of Ruby/FLTK. You can download the source archive and the binary for cygwin at the following URL: http://ruby-fltk.sourceforge.net/ Here are major changes: * v0.2 had problems on compiling. (Thanks N.Nakada) * Support for the xunicode + FLTK. * All member functions of Fl_Button are implemented. * All public member functions of the following classes are implemented. - Fl_Window - Fl_Input_ (Thanks Kent Dahl) * Fltk::file_chooser was added. * Fltk::MenuButton get to have methods menu_button_type and popup and some constants like POPUP1. * Support for mingw. (Thanks Lorien Dunn) Regards, -- Takaaki Tateishi <tt...@kt...> |
From: Kevin S. <kev...@ya...> - 2001-09-24 15:35:35
|
--- Kent Dahl <ke...@st...> wrote: > Is there any way of setting the default fontsize in Ruby-Fltk? > Changing the FLTK itself isn't really a viable option. That's a great idea (if I understand you correctly). We could have a method, something like Fltk::default_fontsize, which would return the default, or allow you to set a new default. All widgets that got created could automatically invoke fontsize with this value. I think we would have to implement this in C++, and not in the Ruby layer. We could easily add it to our contructor body, since we only have a couple of them. And the Fltk initialize could either pick a default default, or create a raw Fltk widget, ask for the fontsize, and then destroy the widget. At some point, we could also add features to set default colors and other options this way. Of course, with Fltk2, themes should solve all of this, so we don't want to do too much with it right now. What do you think? Kevin P.S. to Kent: Thanks for the code contribution! One of our goals was that it be quick and easy to enhance and modify. __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com |
From: Takaaki T. <tt...@kt...> - 2001-09-24 14:10:39
|
At Mon, 24 Sep 2001 15:22:55 -0400, Kent Dahl <ke...@st...> wrote: > I want to use Ruby-Fltk as a way of developing Ruby apps for my PDA, an That's great! > I'd like to keep the scripts as portable as possible between the PDA and > host computer. One problem in that respect, is with fontsizes. Is there > any way of setting the default fontsize in Ruby-Fltk? Changing the FLTK > itself isn't really a viable option. FLTK has the fl_font() which is used for setting the font's face and size. Is this what you want? But Ruby-FLTK don't provide it yet. # Thank you for Input_#textsize. I've added it now. -- Takaaki Tateishi <tt...@kt...> |
From: Kent D. <ke...@st...> - 2001-09-24 13:52:42
|
Kent Dahl wrote: > Also, I noticed that setting the labelsize for widgets such as > Fltk::Widget don't affect the size of the input text. According to FLTK > API for 1.0.10, there is the methods called textsize, which I can't find > in Ruby-Fltk. Fixing that wasn't too hard: <SNIP> [kentda@v128a ruby-fltk]$ cvs diff cvs server: Diffing . Index: flinput.cc =================================================================== RCS file: /cvsroot/ruby-fltk/ruby-fltk/flinput.cc,v retrieving revision 1.9 diff -r1.9 flinput.cc 24a25 > static FN_GETSET_INT(Input_,textsize); 128a130 > DEF_METHOD_EQ(Input_,textsize,-1); cvs server: Diffing doc </SNIP> -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/ |