Displaying 20 results from an estimated 200 matches similar to: "FXTextField.connect(SEL_CHANGED)"
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
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 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
2010 Aug 17
2
SEL_UPDATE not responsive
I have read what I could about SEL_UPDATE and I understand that the block(s) that get called "from" SEL_UPDATE only get called when "there is no more work to do".
I took the splitter.rb example that comes with FXRuby. I put in a "puts" in one of the SEL_UPDATE blocks and I get about 4 a second. Not awful ... but ... why is it so slow?
In my code which is ... more
2010 Jul 09
8
Repository of sample FXRuby programs?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Repository of sample FXRuby programs?</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
2010 Jul 31
2
Non-modal FXMessageBox
Is there a way to make FxMessageBox non-modal?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100731/bd63db58/attachment-0001.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
2010 Aug 04
16
Moving On
Cross-posted to the blog (at
http://lylejohnson.name/blog/2010/08/04/moving-on/):
When Jamis Buck wrote last year about ceasing development on
Capistrano, his post really struck a chord with me. If this post
reminds you of that one, it''s because I re-read it before sitting down
to compose this one. It was the next best thing to having Jamis on
hand to give me a pep talk before I had to
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
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 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)
2010 Jul 20
1
ruby\samples\FXRuby\splitter.rbw
I am running the above sample and there are 3 panels (and, thus, two, uh, sliders).
The left hand slider behaves the way I want. That is, when I move it left or right, the right hand slider does not move.
The right hand slider does not do that. When I move it ... it moves the left hand slider.
How do I make the right hand slider behave like the left hand slider?
- - - -
On a slightly
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"
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 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
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
2003 May 08
3
R crashes with package SJava; was Memory leakage?
Dear all,
Maybe this has something to do with R crashing?
When my R version crashes, there is Rgui.exe still
running in the background (i.e. W2K's task manager
recognises it only as a process, which apparently
is using almost 100% of the CPU).
I can reproduce that by "using" the SJava package
(from Brian Ripley's homepage, as suggested on
http://www.omegahat.org/RSJava/).
2008 Feb 05
1
How to set text in text_field_tag???????
Simple problem but I can''t find a solution.
I have this tag:
<%=text_field_tag("query", params[:query], :autocomplete => "off" ) %>
Its a search field box.
Question: how do I update the text in the text field???? i.e is there a
rails equivalent like query.setText("some text")
Thanks
--
Posted via http://www.ruby-forum.com/.
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