search for: fxtextfields

Displaying 9 results from an estimated 9 matches for "fxtextfields".

Did you mean: fxtextfield
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 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 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 Apr 14
3
Copy-paste between FXTable and FXTextfield
Hi, I''m using FXRuby 1.6.13 under Windows XP / Ruby 1.8.6. I''ve noticed something strange when copying-pasting things between FXTable cells, and FXTextfields. ---------------------------------------------- 1) When copying the content of an FXTextfield, and pasting it into an FXTable cell, everything works fine. 2) When selecting an FXTable cell, issuing a "copy" with the keyboard, and pasting into the text field, the result is more or less...
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,
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
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
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 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