fxruby-users Mailing List for FXRuby (Page 12)
Status: Inactive
Brought to you by:
lyle
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(75) |
Jul
(90) |
Aug
(61) |
Sep
(56) |
Oct
(56) |
Nov
(39) |
Dec
(83) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(56) |
Feb
(45) |
Mar
(61) |
Apr
(40) |
May
(95) |
Jun
(79) |
Jul
(63) |
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
From: Lyle J. <ly...@kn...> - 2004-04-03 03:18:05
|
On Mar 30, 2004, at 7:52 PM, Daniel Sheppard wrote: > Is it possible to add Tooltips to an FXCanvas? Is it true that the stock FXCanvas doesn't support tooltips, but we can get around that with a subclass of FXCanvas: require 'fox' require 'fox/responder' include Fox class TooltipCanvas < FXCanvas include Responder attr_accessor :tipText def initialize(*args) # Initialize base class super # Default tooltip self.tipText = "Canvas" # Listen for query messages from the tooltip FXMAPFUNC(SEL_UPDATE, FXWindow::ID_QUERY_TIP, :onQueryTip) end def onQueryTip(sender, sel, ptr) sender.text = tipText return 1 end end You should be able to use this one in place of a normal canvas, and set its tooltip message with the tipText accessor. Hope this helps, Lyle |
From: Lyle J. <ly...@kn...> - 2004-04-03 02:46:46
|
On Apr 2, 2004, at 4:23 PM, Gilles Filippini wrote: > It's been long time since I've tried FXRuby intensively :o) > I'm back with the same kind of segfaults I had then. OK. > For example FXEvent appears corrupted after a while in an onPaint > callback. I don't have a simple test case yet. I'll try to narrow the > probelm using valgrind. The bug vanishes when GC is disabled. Yes, if you can send me a simple test case for this one, please do. > Just to try, I've launched an old test case (not related to the above > bug) I used when there were problems with TreeList items. Segfault > again. Yes, I still have this test case and run it before each release ;) It is the "stress1.rb" case, under the FXRuby tests directory. How many iterations did it take for this one to crash on your machine? I ask because I'm running it right now (with my development version of FXRuby) and so far it's gotten to "count=1800" without crashing. I will go back and build FXRuby-1.0.28 from the earlier sources, but I'm fairly sure I ran this test before releasing that version too. |
From: Gilles F. <gil...@fr...> - 2004-04-03 00:07:59
|
Me again... Here is a valgrind output for the first bug reported in my previous=20 mail. It seems to be related with GCing FXTableItem. Tell me if it is=20 sufficient for you to find the actual problem. _gilles. maison:~/Mirrage$ valgrind --suppressions=3Druby.supp=20 --gen-suppressions=3Dyes ruby application.rb =3D=3D11753=3D=3D Memcheck, a memory error detector for x86-linux. =3D=3D11753=3D=3D Copyright (C) 2002-2004, and GNU GPL'd, by Julian Sewar= d. =3D=3D11753=3D=3D Using valgrind-2.1.1, a program supervision framework f= or=20 x86-linux. =3D=3D11753=3D=3D Copyright (C) 2000-2004, and GNU GPL'd, by Julian Sewar= d. =3D=3D11753=3D=3D For more details, rerun with: -v =3D=3D11753=3D=3D =3D=3D11753=3D=3D Invalid read of size 4 =3D=3D11753=3D=3D at 0x3CA4EB63: FXObject::getClassName() const (in=20 /usr/lib/libFOX-1.0.so.0.0.42) =3D=3D11753=3D=3D by 0x3C7BE6DA: FXRbTableItem::markfunc(FXTableItem*)= (in=20 /usr/local/lib/site_ruby/1.8/i386-linux/fox.so) =3D=3D11753=3D=3D by 0x3C077002: (within /usr/lib/libruby1.8.so.1.8.1) =3D=3D11753=3D=3D by 0x3C076B53: (within /usr/lib/libruby1.8.so.1.8.1) =3D=3D11753=3D=3D Address 0x3D94CA60 is 0 bytes inside a block of size 2= 0 free'd =3D=3D11753=3D=3D at 0x3C021A3C: operator delete(void*) (vg_replace_ma= lloc.c:129) =3D=3D11753=3D=3D by 0x3CA7E843: FXTableItem::~FXTableItem() (in=20 /usr/lib/libFOX-1.0.so.0.0.42) =3D=3D11753=3D=3D by 0x3CA86634: FXTable::~FXTable() (in=20 /usr/lib/libFOX-1.0.so.0.0.42) =3D=3D11753=3D=3D =3D=3D11753=3D=3D ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- = n =3D=3D11753=3D=3D =3D=3D11753=3D=3D Invalid read of size 4 =3D=3D11753=3D=3D at 0x3CA4EB66: FXObject::getClassName() const (in=20 /usr/lib/libFOX-1.0.so.0.0.42) =3D=3D11753=3D=3D by 0x3C7BE6DA: FXRbTableItem::markfunc(FXTableItem*)= (in=20 /usr/local/lib/site_ruby/1.8/i386-linux/fox.so) =3D=3D11753=3D=3D by 0x3C077002: (within /usr/lib/libruby1.8.so.1.8.1) =3D=3D11753=3D=3D by 0x3C076B53: (within /usr/lib/libruby1.8.so.1.8.1) =3D=3D11753=3D=3D Address 0x3 is not stack'd, malloc'd or free'd =3D=3D11753=3D=3D =3D=3D11753=3D=3D ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- = n ./donnees.rb:20: [BUG] Segmentation fault ruby 1.8.1 (2004-02-03) [i386-linux] =3D=3D11753=3D=3D =3D=3D11753=3D=3D Process terminating with default action of signal 6 (SI= GABRT):=20 dumping core =3D=3D11753=3D=3D at 0x3C1AD571: kill (in /lib/libc-2.3.2.so) =3D=3D11753=3D=3D by 0x3C01AB7B: gsignal (vg_intercept.c:65) =3D=3D11753=3D=3D by 0x3C1AE837: abort (in /lib/libc-2.3.2.so) =3D=3D11753=3D=3D by 0x3C055D90: rb_bug (in /usr/lib/libruby1.8.so.1.8= .1) =3D=3D11753=3D=3D =3D=3D11753=3D=3D ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 68= 2232=20 from 10) =3D=3D11753=3D=3D malloc/free: in use at exit: 4098868 bytes in 80068 blo= cks. =3D=3D11753=3D=3D malloc/free: 446726 allocs, 366658 frees, 13775889 byte= s=20 allocated. =3D=3D11753=3D=3D For a detailed leak analysis, rerun with: --leak-check= =3Dyes =3D=3D11753=3D=3D For counts of detected errors, rerun with: -v Abandon maison:~/Mirrage$ Gilles Filippini a =E9crit : > Hi Lyle, >=20 > It's been long time since I've tried FXRuby intensively :o) > I'm back with the same kind of segfaults I had then. >=20 > For example FXEvent appears corrupted after a while in an onPaint=20 > callback. I don't have a simple test case yet. I'll try to narrow the=20 > probelm using valgrind. The bug vanishes when GC is disabled. >=20 > Just to try, I've launched an old test case (not related to the above=20 > bug) I used when there were problems with TreeList items. Segfault=20 > again. I send it to you by private mail. >=20 > My box runs : > - Debian/sarge GNU/Linux > - fox-1.0.42 > - ruby 1.8 > - FXRuby 1.0.28 > HTH. >=20 > _gilles. >=20 |
From: Gilles F. <gil...@fr...> - 2004-04-02 22:22:54
|
Hi Lyle, It's been long time since I've tried FXRuby intensively :o) I'm back with the same kind of segfaults I had then. For example FXEvent appears corrupted after a while in an onPaint callback. I don't have a simple test case yet. I'll try to narrow the probelm using valgrind. The bug vanishes when GC is disabled. Just to try, I've launched an old test case (not related to the above bug) I used when there were problems with TreeList items. Segfault again. I send it to you by private mail. My box runs : - Debian/sarge GNU/Linux - fox-1.0.42 - ruby 1.8 - FXRuby 1.0.28 HTH. _gilles. |
From: Lyle J. <ly...@kn...> - 2004-04-02 15:16:17
|
On Apr 1, 2004, at 1:14 PM, Daniel Sperl wrote: > If I'm right, I just found a small bug in the FXUndoList. <snip> Yes, this looks like a bug. I have just added it to the bug list at SourceForge. > I've got another question regarding the FXUndoList. I did not quite > find out how I could use 'undoName' and 'redoName' properly. Or, to be > more specific, the problem occured only with 'redoName'. > Using 'FXUndoList.current', I can update the text of my undo-command > in the menu -- but how can I get the correct text of the next > redo-Command? I did not manage to access the next redo-Command which > would be called by 'FXUndoList.redo', so I had to insert a new method > into FXUndoList: > > class FXUndoList < FXObject > def currentRedo > @redolist.last > end > end > > Now I could access the next redo-command and therefor alter the text > in my menubar. > > Is there another way to do this, which I overlooked in the > documentation? No, you are correct that there's no way to get a handle on the current redo command. Jeroen has addressed this problem in the FOX 1.2 version of FXUndoList, so in the interest of (future) API compatibility, I think I'll add two new methods: * FXUndoList#undoName returns the text of the current undo command (or nil if there is none) * FXUndoList#redoName returns the same for the current redo command. How does that sound? Lyle |
From: Riccardo G. <ric...@fi...> - 2004-04-02 09:13:48
|
Hi well, with Marco Frailis we have done in Ruby a ColredListItem that works following the fifthplanet answer of Lyle .. the main difference (and problem) with respect to the C++ solution was that it is not sufficient to have a ColoredListItem inheriting from an FXListItem and implementing a different draw method .. it seems that the Ruby wrapper of FXList use always the method draw of the superclass (in this case FXListItem) when it paints the widget .. our solution was to define a new ColoredList inheiritng from a FXList and reimplement just the onPaint method of this class (just coping and Ruby adapting from the C++ method onPaint of the Fox) .. in that case it calls the draw method of the ColoredListItem .. this solve our problem, but probably is not an elegant solution .. moreover we need also a ColoredTreeList and it is much more complicate to reimplement the onPaint method of the FXTreeList .. Lyle, do you know of a better (and easier) way to obtain that? Hmm .. reading back the email probably is not so clear .. if someone is interested let me know and I'll send the code .. Bye, Riccardo :) Matthew Miller wrote: > Hello, > > On the fifthplanet wiki I saw one answer to a question I hadn't asked yet ;^) > The question dealt with subclassing FXList to draw the list items in different > colors. Lyle provide a very good solution in C++. I'm wondering if, using his > solution as a guide, the same result could be done using FXRuby. I thought I > would ask and see if there were any gotchas before I tried an implementation in > Ruby. > > I've one more question as well. The way that I'm learning FXRuby is to write a > file manager that is similar to the one called sfm that was written using > GTK+. When renaming a file in sfm the equivalent of a FXLabel is replaced by a > one-line text field where the filename can be edited (i.e. the same way that the > Windows Explorer works.) > > FXList doesn't support this behavior. Now I'm wondering how to write a widget to > do what I want. I've looked at the C++ source for FXList and hope that here is > an easy way to accomplish the behavior I see in sfm. After doing some reading I > thought that I might could use a FXVerticalFrame to stack the widgets that show > the filenames. The trouble is that I couldn't find a way to iterate through the > contents of the frame and if necessary replace a FXLabel with a FXTextField > object. Well, there is the FXWindow#children method in the FXVerticalFrame > subclass, but would replacing an element in the returned array with a different > widget affect the display? > > Well, for both these things I'm looking for some insight. Thanks. > > Matthew. > -- +--------------------------------------------------------------+ | Riccardo Giannitrapani | | | | Dipartimento di Fisica - Room L1-14-BE | | Universita` di Udine - Via delle Scienze, 206 Udine (Italy) | | Tel (Office): +39-0432-558209 | | Home Page: http://www.fisica.uniud.it/~riccardo | | ICQ# 86590904 | +--------------------------------------------------------------+ |
From: Jamey C. <jc...@tw...> - 2004-03-31 16:04:35
|
Although I have been using FXIconList as a listview in my applications, it is missing a few things like column justification and gridlines. So, I started playing around with FXTable to see if I could get it to work as a listview. I have pretty much gotten it working like I would want. Here are the advantages/disadvantages I have noticed between using FXTable or FXIconList as a listview widget: FXTable --------- Advantages: * Gridlines * Column justification * Looks nicer (IMO) * Can specify custom column header arrow. Disadvantages: * Lose column resizing (I know FXTable has column resizing, but I had to turn it off to get the rest of my sample app to work right.) * You have to do your listview sorting outside of the listview, instead of letting the widget handle it. Anyway, I have include a sample program that demonstrates how it looks. Give it a try. If you figure out a better way to do something in the program, please let me know. Thanks. Jamey Cribbs |
From: Daniel S. <da...@pr...> - 2004-03-31 01:54:16
|
Is it possible to add Tooltips to an FXCanvas? I gather that the way if I wanted to do so, I'd be connecting to a ID_QUERY_TIP message and then doing something in response to that. However, ID_QUERY_TIP never seems to be fired.=20 Or possibly I'm meant to be connecting to a SEL_UPDATE and ID_QUERY_TIP is the selector? (I'm not sure I'm understanding what selectors are all about). Am I looking in the right place? This is all I can find on the topic: http://www.geocrawler.com/archives/3/3371/2001/4/0/5623242/ http://www.geocrawler.com/archives/3/3371/2001/4/0/5625195/=20 Daniel Sheppard http://jroller.net/page/soxbox=20 #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |
From: Daniel S. <da...@pr...> - 2004-03-30 03:08:05
|
I've been frustrated with the fact that you can't connect multiple things to an FXObject. Ie. =09target =3D FXDataTarget.new() =09target.connect(SEL_COMMAND) { puts "hello" } =09target.connect(SEL_COMMAND) { puts "hello2" } The only thing that gets printed when the target is changed is "hello2". How do others normally deal with this? Do you have your code such that all connectors must go through in intermediary? Do you only connect in the one place? I've thrown together a module to include in classes that I want to multi-connect to.=20 module MultiConnect =20 def self.append_features(mod) =20 mod.module_eval { =20 alias_method :connect_orig, :connect =20 private :connect_orig =20 } =20 super =20 end =20 def connect_single(messageType, callableObject=3Dnil, &proc) =20 disconnect_all(messageType) =20 connect(messageType, callableObject, proc) =20 end =20 def disconnect_all(messageType) =20 @multiConnectHash[messageType] =3D [] if @multiConnectHash =20 end =20 def connect(messageType, callableObject=3Dnil, &proc) =20 proc =3D callableObject unless proc =20 @multiConnectHash =3D Hash.new unless @multiConnectHash =20 if(@multiConnectHash.has_key? messageType) =20 @multiConnectHash[messageType] << proc =20 else =20 array =3D [ proc ]=20 =20 connect_orig(messageType) { |a,b,c| array.each { |proc| proc.call= a,b,c }} =20 @multiConnectHash[messageType] =3D array =20 end =20 end =20 end #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |
From: Sander J. <San...@es...> - 2004-03-26 17:40:29
|
The DEV and the Stable versions of FOX are not API compatible. So you can't compile with FOX 1.1.x Sander On Friday 26 March 2004 11:32, Marc Cartright wrote: > Jeroen van der Zijp recently made a few changes to the FOX library that > are necessary to the completion of a project I'm working on. However the > changes are only reflected in the dev. snapshot of FOX, and are not yet > labeled 'stable'. I've recently found out that FXRuby, as is, refuses to > build against anything but a 'stable' copy of the FOX library. Is there any > way to convince the installer that I don't care if it's built on a dev. > copy of FOX? > > I have FOX-1.1.49 built, the developement copy, and I tried building > FXRuby-1.0.28 against that. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users |
From: Marc C. <ma...@is...> - 2004-03-26 17:32:32
|
Jeroen van der Zijp recently made a few changes to the FOX library that are necessary to the completion of a project I'm working on. However the changes are only reflected in the dev. snapshot of FOX, and are not yet labeled 'stable'. I've recently found out that FXRuby, as is, refuses to build against anything but a 'stable' copy of the FOX library. Is there any way to convince the installer that I don't care if it's built on a dev. copy of FOX? I have FOX-1.1.49 built, the developement copy, and I tried building FXRuby-1.0.28 against that. |
From: Claus W. S. <cws...@ac...> - 2004-03-26 04:05:27
|
I had read that and was trying to avoid subclassing FXTableItem. Oh well, I guess I will have to wait for 1.2 then. If only the API documentation was a bit more complete... Paul Rogers wrote: > This was posted to CLR by Lyle > > Daniel Sperl wrote: > > >>Is there a way to change the color of a _single_ cell? >>Or does anyone know a workaround? > > > There isn't a straightforward way to do this in FOX 1.0. You could > conceivably do it by subclassing FXTableItem and overriding its > drawContent() method, but that is much more problematic than it should > be. Hopefully, Jeroen will address some of these limitations in FOX 1.2. > > > (http://groups.google.ca/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=1072 > 716784.464720%40news.liwest.at&rnum=4&prev=/groups%3Fq%3DFXTable%2Bcell% > 2Bgroup:comp.lang.ruby%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26gro > up%3Dcomp.lang.ruby%26selm%3D1072716784.464720%2540news.liwest.at%26rnum > %3D4 ) > > I don't know if it still applies - It was posted in December of last > year > > > > -----Original Message----- > From: fxr...@li... > [mailto:fxr...@li...] On Behalf Of Claus W. > Spitzer > Sent: 25 March 2004 20:25 > To: fxr...@li... > Subject: [Fxruby-users] Setting individual cell color with > FXTableItem::drawBackground( )? > > > I've recently begun working a bit with FXRuby. While messing around with > > the code for Tables, I found out that I cannot set individual cell > colors with FXTable::setCellColor . Now, looking at the API I noticed > that FXTableItem has an instance method called drawBackground, with the > parameters table, dc, x, y, w, h. I am assuming that dc is a FXDC > object, table the parent table of the FXTableItem in question, x and y > coordinated in pixels, and w and h width and height in pixels. So I > figured that I could possibly set individual cell color with something > along the lines of > @table.getItem( row, col ).drawBackground( @table, dc, x, y, w, h ) > However, my attempts so far have been in vain. I've attempted to get x, > y, w, and h by using > @table.getColumnX( col ), > @table.getRowY( row ), > @table.getItem( row, col ).getWidth( @table ), and > @table.getItem( row, col ).getHeight( @table ) respectively. I > wasn't sure what to use for dc, so I created a new FXDC > by using > dc = FXDC.new( self ) > (which didn't work if I recall correctly). So my question is, is it even > > possible to use FXTableItem.drawBackground or am I on a futile quest? If > > it is possible, what should I use for dc? > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users > |
From: Paul R. <pau...@sh...> - 2004-03-26 03:36:54
|
This was posted to CLR by Lyle Daniel Sperl wrote: > Is there a way to change the color of a _single_ cell? > Or does anyone know a workaround? There isn't a straightforward way to do this in FOX 1.0. You could conceivably do it by subclassing FXTableItem and overriding its drawContent() method, but that is much more problematic than it should be. Hopefully, Jeroen will address some of these limitations in FOX 1.2. (http://groups.google.ca/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=1072 716784.464720%40news.liwest.at&rnum=4&prev=/groups%3Fq%3DFXTable%2Bcell% 2Bgroup:comp.lang.ruby%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26gro up%3Dcomp.lang.ruby%26selm%3D1072716784.464720%2540news.liwest.at%26rnum %3D4 ) I don't know if it still applies - It was posted in December of last year -----Original Message----- From: fxr...@li... [mailto:fxr...@li...] On Behalf Of Claus W. Spitzer Sent: 25 March 2004 20:25 To: fxr...@li... Subject: [Fxruby-users] Setting individual cell color with FXTableItem::drawBackground( )? I've recently begun working a bit with FXRuby. While messing around with the code for Tables, I found out that I cannot set individual cell colors with FXTable::setCellColor . Now, looking at the API I noticed that FXTableItem has an instance method called drawBackground, with the parameters table, dc, x, y, w, h. I am assuming that dc is a FXDC object, table the parent table of the FXTableItem in question, x and y coordinated in pixels, and w and h width and height in pixels. So I figured that I could possibly set individual cell color with something along the lines of @table.getItem( row, col ).drawBackground( @table, dc, x, y, w, h ) However, my attempts so far have been in vain. I've attempted to get x, y, w, and h by using @table.getColumnX( col ), @table.getRowY( row ), @table.getItem( row, col ).getWidth( @table ), and @table.getItem( row, col ).getHeight( @table ) respectively. I wasn't sure what to use for dc, so I created a new FXDC by using dc = FXDC.new( self ) (which didn't work if I recall correctly). So my question is, is it even possible to use FXTableItem.drawBackground or am I on a futile quest? If it is possible, what should I use for dc? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Fxruby-users mailing list Fxr...@li... https://lists.sourceforge.net/lists/listinfo/fxruby-users |
From: Claus W. S. <cws...@ac...> - 2004-03-26 03:25:24
|
I've recently begun working a bit with FXRuby. While messing around with the code for Tables, I found out that I cannot set individual cell colors with FXTable::setCellColor . Now, looking at the API I noticed that FXTableItem has an instance method called drawBackground, with the parameters table, dc, x, y, w, h. I am assuming that dc is a FXDC object, table the parent table of the FXTableItem in question, x and y coordinated in pixels, and w and h width and height in pixels. So I figured that I could possibly set individual cell color with something along the lines of @table.getItem( row, col ).drawBackground( @table, dc, x, y, w, h ) However, my attempts so far have been in vain. I've attempted to get x, y, w, and h by using @table.getColumnX( col ), @table.getRowY( row ), @table.getItem( row, col ).getWidth( @table ), and @table.getItem( row, col ).getHeight( @table ) respectively. I wasn't sure what to use for dc, so I created a new FXDC by using dc = FXDC.new( self ) (which didn't work if I recall correctly). So my question is, is it even possible to use FXTableItem.drawBackground or am I on a futile quest? If it is possible, what should I use for dc? |
From: John R. <col...@ya...> - 2004-03-24 05:00:51
|
Im trying to put a workable hyperlink on my FXDialogBox screen, and Im wondering if anyone else has done something like this without using something like MS Word. Thanks, John Reed Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. |
From: Daniel S. <da...@pr...> - 2004-03-24 02:06:41
|
Try forceRefresh. Though I've had some frustration with that occasionally too. > -----Original Message----- > From: Hal Fulton [mailto:ha...@hy...]=20 > Sent: Wednesday, 24 March 2004 12:34 PM > To: fxr...@li... > Subject: [Fxruby-users] More questions... >=20 >=20 >=20 >=20 > 1. Given an FXTreeList wherein I add or change an item, how=20 > do I get the tree to redisplay? >=20 > 2. Given an MDIClient where I add or resize an MDIChild, how=20 > do I get it to display? >=20 > 3. Given an MDIChild with a textbox inside it, can I click on=20 > the window frame and select the window without giving focus=20 > to the textbox? >=20 >=20 > #1 and #2 are obviously variations on a theme. I've tried=20 > various permutations of create, show, repaint, recalc,=20 > refresh and one or two others. >=20 > Is there a method called just_show_me_the_damned_widget ? >=20 >=20 > Hal >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President=20 > and CEO of GenToo technologies. Learn everything from=20 > fundamentals to system=20 > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users >=20 #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |
From: Hal F. <ha...@hy...> - 2004-03-24 01:34:13
|
1. Given an FXTreeList wherein I add or change an item, how do I get the tree to redisplay? 2. Given an MDIClient where I add or resize an MDIChild, how do I get it to display? 3. Given an MDIChild with a textbox inside it, can I click on the window frame and select the window without giving focus to the textbox? #1 and #2 are obviously variations on a theme. I've tried various permutations of create, show, repaint, recalc, refresh and one or two others. Is there a method called just_show_me_the_damned_widget ? Hal |
From: Sander J. <sa...@kn...> - 2004-03-19 04:48:36
|
Although they don't use datatargets its a similar concept. The MenuCommand sends a SEL_UPDATE to its target, in this case the table and the table responds by sending a message back to the sender (the menucommand) to either check or uncheck himself. Sander On Thursday 18 March 2004 10:03 pm, Daniel Sheppard wrote: > I've been looking at the code for the sample program table.rbw, and the > following section is confusing me: > > # Options Menu > tablemenu = FXMenuPane.new(self) > FXMenuCommand.new(tablemenu, "Horizontal grid", nil, > @table, FXTable::ID_HORZ_GRID) > FXMenuCommand.new(tablemenu, "Vertical grid", nil, > @table, FXTable::ID_VERT_GRID) > FXMenuTitle.new(menubar, "&Options", nil, tablemenu) > > This creates the Options menu pane, and creates two buttons in it that > send the "ID_HORZ_GRID" and "ID_VERT_GRID" events to @table when they > are clicked. > > When the application is run, these two menu items have check-boxes next > to them. What is making these checkboxes appear? There's no events with > the menu items as targets. There's no calls to the "check" method. How > does this hang together? > ########################################################################### >########## This email has been scanned by MailMarshal, an email content > filter. > ########################################################################### >########## > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=Click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- "Nervous hands grip tight the knife In the darkness, till the cake is cut" - Peter Gabriel |
From: Daniel S. <da...@pr...> - 2004-03-19 04:09:47
|
Never mind, my question is answered here: http://fox-toolkit.org/datatarget.html Missing some of that fundamental knowledge stuff. > -----Original Message----- > From: Daniel Sheppard=20 > Sent: Friday, 19 March 2004 3:03 PM > To: fxr...@li... > Subject: FXMenuCommands as options >=20 >=20 > I've been looking at the code for the sample program=20 > table.rbw, and the following section is confusing me: >=20 > # Options Menu > tablemenu =3D FXMenuPane.new(self) > FXMenuCommand.new(tablemenu, "Horizontal grid", nil, > @table, FXTable::ID_HORZ_GRID) > FXMenuCommand.new(tablemenu, "Vertical grid", nil, > @table, FXTable::ID_VERT_GRID) > FXMenuTitle.new(menubar, "&Options", nil, tablemenu) >=20 > This creates the Options menu pane, and creates two buttons=20 > in it that send the "ID_HORZ_GRID" and "ID_VERT_GRID" events=20 > to @table when they are clicked.=20 >=20 > When the application is run, these two menu items have=20 > check-boxes next to them. What is making these checkboxes=20 > appear? There's no events with the menu items as targets.=20 > There's no calls to the "check" method. How does this hang together? >=20 #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |
From: Daniel S. <da...@pr...> - 2004-03-19 04:03:25
|
I've been looking at the code for the sample program table.rbw, and the following section is confusing me: =20 # Options Menu =20 tablemenu =3D FXMenuPane.new(self) =20 FXMenuCommand.new(tablemenu, "Horizontal grid", nil, =20 @table, FXTable::ID_HORZ_GRID) =20 FXMenuCommand.new(tablemenu, "Vertical grid", nil, =20 @table, FXTable::ID_VERT_GRID) =20 FXMenuTitle.new(menubar, "&Options", nil, tablemenu) This creates the Options menu pane, and creates two buttons in it that send the "ID_HORZ_GRID" and "ID_VERT_GRID" events to @table when they are clicked.=20 When the application is run, these two menu items have check-boxes next to them. What is making these checkboxes appear? There's no events with the menu items as targets. There's no calls to the "check" method. How does this hang together? #########################################################################= ############ This email has been scanned by MailMarshal, an email content filter. #########################################################################= ############ |
From: Hal F. <ha...@hy...> - 2004-03-16 19:14:06
|
Thanks, Lyle and others, for your assistance. The reward for answering questions is always the same... you get to answer more. ;) I didn't know a widget could be "deaf" to events (although experimentation had convinced me that this one was). Anyone as clumsy with Fox as I am may find this function as useful as I have: def snag(obj,msg) # for debugging obj.connect(eval(msg)) { puts "#{obj.class} object got #{msg}" } end My next question is: Given an MDIClient, how can I redisplay its contents after I resize a child or add a new child? I've tried various combinations of repaint and refresh and recalc and show and whatnot. Thanks, Hal |
From: <ly...@kn...> - 2004-03-15 16:48:50
|
On Mon, 15 Mar 2004 17:11:41 +0100, Frederic de Villamil <ne...@se...> wrote : > I want to redesign the menubar when I click on icons, but all I got is > nasty error message. Is there a way to do what I want? Maybe. |
From: Frederic de V. <ne...@se...> - 2004-03-15 16:08:21
|
Hello, I'm currently working on a FXRuby personnal information manager project. I have started from fxruby.org sample code http://fxruby.org/examples/shutter.rb I want to redesign the menubar when I click on icons, but all I got is nasty error message. Is there a way to do what I want? -- < Ylli> lol je rigole neuro jte prend pa pr un pervers ms un president et pere de famille respectable :s http://www.seclab.jp |
From: Lyle J. <ly...@kn...> - 2004-03-15 14:37:26
|
On Mar 11, 2004, at 3:53 PM, Jamey Cribbs wrote: > FXTable has a sort and a sort_by method. Well, yes, but it's getting those from Ruby's Enumerable module. FXTable, like some other widgets, mixes-in Enumerable. Since FXTable's each() method is aliased to FXTable#each_row, I guess that FXTable#sort is going to return a sorted array of table rows, where each table row is represented by an array of cells. It's questionable how useful that is ;) > Anyway, any light shed upon FXTable sorting would be greatly > appreciated! There's no FXTable equivalent for the sortItems() method. I think you'll have to roll your own on this one, possibly making use of the results returned by sort(). |
From: Lyle J. <ly...@kn...> - 2004-03-15 14:18:43
|
On Mar 12, 2004, at 4:36 PM, Hal Fulton wrote: > Lyle Johnson wrote: >>> How do I pass the non-Esc keys back into the FXText object? >> false # i.e. signal that we didn't handle this message > > Works beautifully, thank you. > > What about the other issue? Is it doable? > > I want to click on the MDIClient background and take the focus > away from the child. Hmmm. Try this: * Make sure that the MDI client widget is enabled (i.e. it's not "deaf" to events) by calling its enable() method after you create it. * Add a handler on the MDI client for the SEL_LEFTBUTTONRELEASE (or SEL_LEFTBUTTONPRESS, if you prefer) and do the killFocus() in that one. Let me know how it goes, Lyle |