similar to: Connecting messages to methods

Displaying 20 results from an estimated 100 matches similar to: "Connecting messages to methods"

2005 Feb 18
5
FXTable segfaults after multiple setTableSize calls
When I empty and refill an FXTable multiple times with a large data set (10,000 rows x 1 column in the example below, around 1000 rows x 6 columns in a more complicated app), the application eventually fails with a segmentation fault. The number of repetitions required to produce the segfault is rather random, ranging from just a couple reps to 15 or 20 in some trials. The program disappears
2008 Sep 06
0
Tab control using FXRuby
In the sample program below I have a form of 6 text fields, in a scrolling window, followed by a row of function buttons. Problems: 1) For data entry purposes I''d like the function buttons NOT to be entered by pressing Tab keys, and retain their ''clickability'', but when the user Tab''s out of the last scrolling field (postcode) to have the form scroll to the
2008 Nov 21
3
Dynamic generation of a (sub) layout
Hi, first of all - I''m relatively unexpierienced with GUI programming in general and with FXRuby in particular. I''ve managed to write a little FXRuby app that animates some data I''ve collected. I made really good progress for a while, but now I''m stuck with the following problem. My data is read from file and can have a varying number of elements, depending on
2006 Apr 18
1
FXSwitcher message problem
Hi, I use @mySwitcher.setCurrent( index ) and have a method connected to my FXSwitcher object: @mySwitcher.connect(SEL_COMMAND, method(:onCmdSwitch)) I would expect that onCmdSwitch(sender, sel, index) would receive the new index as third parameter. At least it should according to the fxruby documentation: "SEL_COMMAND: sent whenever the current (topmost) child window changes; the
2007 Dec 14
3
FXTabBook / FXTabItem / FXTabBar
Lyle and Henon; thanks for helping out with ''clearing'' the frames. It''s working. I end up using; parent.removeChild(righttopframe) righttopframe = nil Am afraid I stumbled on another question. I managed to put my application in a tabbook. I am looking to catch the event ''click on tabitem''. I tried SEL_COMMAND on TabItem but that seems not to work.
2006 Apr 25
5
FXListBox ...connect(SEL_COMMAND)
Hi, I think I got a problem with the FXListBox widget. ( ruby 1.8.4 (2005-12-24) [i386-mswin32]) ) FXListBox.new(parent, nil, 0) do |libo4| libo4.appendItem("0 very weird") libo4.appendItem("1 very weird") libo4.appendItem("2 very weird") libo4.appendItem("3 very weird") libo4.appendItem("4 very
2005 Jul 31
1
Re: FXRuby on OpenBSD
On Aug 1, 2005, at 4:21 AM, brett s hallett wrote: > I''m having some problems installing FXRuby on OpenBSD 3.7 > > -- Note : OpenBSD supplied Ruby 1.8.1 and fox > version /mnt/cdrom/3.7/packages/i386/fox-1.1.41.tgz > > If I try to install any FXRuby against these I get the error message > " fox version is expiremental" ( something like that !) ,
2009 Jun 23
9
Learning FXRuby please help!
Hi all, I''m trying to get text on to the screen in response to pressing a button. This code doesn''t work, and I don''t know why. My puts command says that the window is shown, but it''s not displayed. Also, it seems to me that there should be an easier way to get text on a screen in response to pressing a button. Any hints? Thanks! Marlene require
2008 Aug 20
0
FXTable scrolling problem
Hi, I''m trying to accomplish the following task: 1) Query database for records 2) Populate FXTable with first 50 records from cursor 3) Populate more rows as the table scrolls down To accomplish this I subclassed FXTable (class Table < FXTable) and defined the initialize method as shown below: def initialize(parent) super(parent,
2005 Dec 01
1
Can''t add text to FXCanvas
I have a ruby program that uses a FXCanvas, and I have attached a FXDCWindow to control it. It lets me draw lines, rectangles and ellipses, but not text. If I attempt to draw text, I get the following error This application has requested the Runtime to terminate it in an unusual way. Please contact the application''s support team for more information. >Exit code: 3 I also get this
2005 Aug 05
3
Popup menu attached to a FXTreeItem
Hi, I''m using FXRuby 1.0 on Windows. I''d like to display a popup menu after a right click on a tree item, I cannot make it work : #-------------------- root = FXTreeList.new(parent, 1, self, 0) pop = FXMenuPane.new(parent) expandCmd = FXMenuCommand.new(pop, "Expand", nil, app) expandCmd.connect(SEL_COMMAND) { root.currentItem.expanded=(true) }
2005 Feb 18
2
Fixed column widths in FXTable?
Is there a way to make an FXTable''s column widths (and row heights) unchangeable by the user? By experimentation it looks to me like leaving out TABLE_COL_SIZABLE and TABLE_ROW_SIZABLE from the options field in FXTable.new() has no effect. I can still drag the intersection between two column heading buttons to change the column width. The code I''m using to test this is
2005 Apr 12
2
FXSettings problem
Hi all. I tried to subclass FXSettings in order to add some functionality to it but I ran into the following problem. The code which shall be executed looks like this: def test reg = Registry.new("test.reg") reg.Parse end The Registry class basically looks this way: require "fox12" include Fox class Registry < FXSettings
2007 Aug 15
0
Branch 'vivi' - 13 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h vivified/core vivified/ui
doc/swfdec-sections.txt | 1 libswfdec/swfdec_as_debugger.h | 12 +++- libswfdec/swfdec_as_frame.c | 36 +++++++++++- libswfdec/swfdec_as_frame.h | 1 libswfdec/swfdec_as_types.h | 2 vivified/core/.gitignore | 2 vivified/core/Makefile.am | 25 +++++++- vivified/core/vivi_application.c | 12 +--- vivified/core/vivi_application.h |
2005 Mar 23
2
FXListBox size behavior?
The default behavior of FXListBox seems to be to grow and shrink in width depending on the length of the selected entry in the list. This is a problem when the list contains items of varying width, because if a short item is picked then the longer entries are obscured in the drop-down list. Is this deliberate, an oversight, or a bug? Its certainly not how I''d choose it to act. Is
2010 Jul 28
6
FXTextField.connect(SEL_CHANGED)
When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised. The text is changed on the screen. How do I detect that the text has been changed and/or ... how do I raise SEL_CHANGED? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100728/e0d169e5/attachment.html>
2008 Nov 11
3
FXTextField and number of digits after decimal point
Hello, Here''s the context: I read a number either pure integer or float with eventually up to 12 digits after the decimal point from a YAML file. The number is injected into a FXTextField with the following code: @value_sel = FXDataTarget.new(@value.to_s) @value_value = FXTextField.new(@matrix_mem_value, 20, at value_sel, :opts =>TEXTFIELD_NORMAL|JUSTIFY_RIGHT,
2006 Mar 07
5
FXProgressDialog trouble
Hey all, I''m having trouble with FXProgressDialog-- I''m trying to use it to show the progress of a file upload.. I am running the upload in a separate thread that calls the dialog''s destroy method when its done.. the dialog closes, but the application remains non-responsive (as if its still in the execute loop). I''ve tried sending ID_ACCEPT to the dialog with
2004 Jul 20
7
radiobuttons are weird in 1.2.x series
Hello all, Run groupbox.rb example in any of the two alpha versions and click the radiobutton in the upper right group box (those named Hilvesum 1, Hilversum 2, etc). You''ll notice that once a radiobutton is checked, it remains checked when some other radiobutton is checked. What''s the reason? Thank you. -- Best regards, Yuri Leikind
2005 May 16
1
TEXTFIELD_ENTER_ONLY doesn''t work
Hi Lyle, I noticed that when creating a FXTextField with TEXTFIELD_ENTER_ONLY it still sends messages to its target when other keys than KEY_Return are pressed. I usually create a textfield this way: textfield = FXTextField.new(self, 50, self, ID_INPUT, TEXTFIELD_ENTER_ONLY) textfield.setText(aStr) textfield.setFocus textfield.move(x, y, w, h) textfield.show This way only the enter key should