similar to: Copy-paste between FXTable and FXTextfield

Displaying 20 results from an estimated 1100 matches similar to: "Copy-paste between FXTable and FXTextfield"

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 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 May 06
1
Wrap text inside an FXTable cell?
Hi, Is it possible to wrap text inside an FXTable cell, just like it is possible with an FXText object? I''d like to display and edit multi-line text inside an FXTable cell. Thanks! Philippe
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
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>
2007 Aug 24
2
setting the font in FXText
I have subclassed a FXDialogBox and put a FXText in it for displaying a hex dump in my application. I want to change the font to a courier type font since it''s a hex dump. When do the following it works as expected: # A little dialog box to use in our tests class FXTextDialog < FXDialogBox def initialize(owner) # Invoke base class initialize function first super(owner,
2010 Apr 09
2
Problem detecting keypresses in FXTable
I''m using an RXTable in my application and I would like to be able to select a row and then press the Delete key to delete the selected row. This does not seem to work, however, as apparently keypresses are not initially recognized. In my FXTable derived class I have: connect(SEL_KEYRELEASE) do |sender, selector, event| puts "code = #{''%X'' %
2006 May 15
3
FXTextField - posSelected?(pos)
Hi, I wonder if am facing a bug or something else On a FXtextField, I want to detect the low and high pos of the selected string example: the text is: 0123456789 The selected string is : 234567 first = last = -1 atext.text.length.times do |pos| first = pos if atext.posSelected?(pos) and first < 0 last = pos if atext.posSelected?(pos)
2008 May 18
8
FXTable::fitColumnsToContents
On May 17, 2008, at 6:54 AM, David Toll wrote: > I tried to submit the following message to the "fxruby-users" > message board (I clicked the link to send it as an email to fxruby-users at rubyforge.org > , but the message did not appear). I conclude I do not know how to > submit questions to this message board. You need to be subscribed to the mailing list before you
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,
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
2008 Jul 02
2
FXTextField and text alignment
Hi, When the text inside an FXTextField is larger that the available space, the FXTextField apparently "switches" from left alignment to right aligment: you only see the end of the text. When the text is smaller than the available space, text is aligned on the left. Is there a way to change that, and have left alignment all the time? I''ve been trying a few things, like
2006 Apr 10
1
Display an arrow, or transparent image colors
I want to display an arrow in the user interface between 2 GUI Components. I think I know how I can do it, but I ran into a problem displaying pixel images with transparent background. I describe this image display problem here and ask for advice. but if someone knows of a different and easier way to display arrows, please tell me. Example Problem: I want a FXHorizontalFrame to contain, from
2008 Oct 27
2
Using BUTTON_TOOLBAR
Hi, folks. I''m trying to make a toolbar with buttons that change appearance when hovered over with the mouse. The docs on FXButton say that using BUTTON_TOOLBAR "causes the edge of the button to be raised when the cursor moves over it." What I''m getting is buttons without any frame, but they do not change appearance when the cursor moves over them. I''m
2006 Mar 28
11
setting widget attributes
I''m trying to set attributes of widgets in subclasses like the following. class PersonTable < FXTable def initialize(owner) options = TABLE_COL_SIZEABLE super(owner, nil, 0, options) visibleRows = 5 ... end end visibleRows doesn''t get set. However, if I do this self.visibleRows = 5 then it does. Shouldn''t it work without "self."?
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,
2004 Oct 23
0
Re: FXTable -- numColumns & resize
On Fri, 22 Oct 2004 13:39:06 -0700, Bob Sidebotham <bob@windsong.bc.ca> wrote: > In 1.2 FXTable, numColumns is documented as numCols, but should be > numColumns, I think. Also the examples/table.rb app uses numCols, and > should use numColumns. Yes, you''re right. I''ve added both of these bugs to the FXRuby bug list, found here:
2012 Dec 16
0
Bug: FXTable: programmatic deselection doesn't work as expected.
Hello Lars and company. Was working with FXTable wdiget; what I want to acomplish is that the the table is read only but full full read only, I mean: the user can''t select any cell. Well I realized that it is not possible, so I''ve tried to look for another solutions, and none of them work for me. The one which put me close to the solution was: "when the user select a cell,
2010 Mar 17
0
getting text being entered into an FXTable cell
I have an application that uses an FXTable widget, and when the contents of a cell is being edited, I want to anticipate what the user wishes to enter (by matching the text with a previous entry), and present that for completion. (This is similar to how Excel works.) I''ve attempted to do this by using the FXTable getItem(currentRow, currentColumn).text method when a SEL_KEYRELEASE