Displaying 18 results from an estimated 18 matches similar to: "FXTabBook / FXTabItem / FXTabBar"
2005 Mar 20
2
[Q] Scrolling a tabbook?
I am using the Tabbook widget to manage multiple files in an editor.
One problem is when there too many files loaded the new tabs get
created on the far right of the Tabbook and cannot be accessed.
Any hint, tip or work aorund for this? (using FOX 1.2)
Thanks!
Laurent
2007 Dec 12
2
fxruby and framecontrole
I am new to (FX)ruby and am wrestling with the following question.
In my application I have a three frame split by two splitters.
One frame on the left side with a treelist and two frames above each
other on the right side.
The editable content of the right top frame depends on the item clicked
in the treelist.
The editable content of the right bottom frame depends on data enter in
the right
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) }
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,
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
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 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
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
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 Apr 05
0
Connecting messages to methods
Hi all.
I''m trying to write a subclass of FXMainWindow which has several methods to
dispatch events. The class looks like this:
--
require "fox12"
require "fox12/responder"
include Fox
class Window < FXMainWindow
include Responder
ID_SELF,
ID_BTN = enum(FXMainWindow::ID_LAST, 2)
def initialize(a, title)
super(a, title, nil, nil, DECOR_ALL, 0, 0, 640,
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
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
2010 Jun 02
0
Segmentation fault on paste a long text into Scintilla
Hi there,
In bundled samples\scintilla.rb, paste a long one-line text (see below)
caused segmentation fault
scintilla.rb:166: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
However, It was Ok if not including last 100 or so characters (worked on
13100 characters).
Cheers,
Zhimin
-- text copied
<tbody><tr><td