Displaying 4 results from an estimated 4 matches for "sel_keyrelease".
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'' % event.code}"
case event.code
when KEY_Delete, KEY_KP_Delete
puts "Delete key hit"
# process...
# ...
end
end
When I left-click on a row header, t...
2005 May 16
1
TEXTFIELD_ENTER_ONLY doesn''t work
...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 send the message
SEL_KEYPRESSED/SEL_KEYRELEASED with
ID_INPUT to the target. But that somehow doesn''t work.
Regards,
Jannis
2010 Mar 17
0
getting text being entered into an FXTable cell
...ll 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 message is received, but this gets the previous text
of the cell, rather than the text that is currently being entered.
I could of course collect the keys pressed in response to SEL_KEYRELEASE
in a private buffer, but this would mean I would have to do complicated
processing of the keys entered, w...
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