Displaying 19 results from an estimated 19 matches similar to: "Tab control using FXRuby"
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
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
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,
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"
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
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
2006 Jun 07
0
How to determine width and height of FXImageView?
On Wed, 07 Jun 2006 16:38:43 +0200, "Axel Etzold" <AEtzold at gmx.de> wrote :
> In one field of an FX4Splitter, I want to display a PNG
> image.
> I know how to do this (basically) from the imageviewer.rb
> file.
> But the image I display needs to be generated first
> (by Gnuplot ... no problem to output PNG from there,
> except one: to set the size : I
2007 Aug 28
6
Factor levels
Dear R-users,
I have found this not-so-recent post in the archives -
http://tolstoy.newcastle.edu.au/R/devel/00a/0291.html - while I was
looking for a particular way to reorder factor levels. The question
addressed by the author was to know if the read.table function could be
modified to order the levels of newly created factors "according to the
order that they appear in the data
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
2009 Jul 21
0
Lots of "file exists" errors with rsync version 3.0.6
Hi, we have started getting "file exists" ~100s errors every day. I think we
never got it with rsync 2.6.9. Is there anything changed in new version that
has been generating these errors?
Error while syncing /usr/local/theapp/: rsync: symlink
"/usr/local/theapp/2009.uv" -> "../thedt.uv" failed: File exists (17)
...
Error while syncing /usr/local/theapp/: rsync
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
2004 Jul 22
0
Re: FXRuby and Threads (was: radiobuttons are weird in 1.2.x series)
*********** REPLY SEPARATOR ***********
On 22/07/2004 at 14:01 lyle@knology.net wrote:
>On Thu, 22 Jul 2004 14:47:47 +0100, "Bil" <bil.bas@virgin.net> wrote :
>
>> Err, well it does work, though it does not require the background thread
>to run very fast at all. The application is a prototype of a board-game
>engine. The server is a regular threaded Ruby
2006 Dec 24
0
[801] trunk/wxruby2/doc/textile: Explain how to use the block-style class methods in these classes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 May 31
3
FXLabel: ca''nt set the Icon attibute
Hi,
trying that:
aLabel = FXLabel.new(menuBar35,nil,@@maximizeIcon,0)
aLabel.icon = @@restoreIcon # ok
aLabel.connect(SEL_LEFTBUTTONPRESS) do |sender, selector, data|
case sender.icon
when @@maximizeIcon
sender.icon = @@restoreIcon
when @@restoreIcon
sender.icon = @@maximizeIcon
end
0
end
Result
abnormal
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'' %
2007 Apr 26
3
FXSplitter width is 1 until created
Why is the width of an FXSplitter equal to 1 before the
FXSplitter#create method is called?
My splitter is configured to have LAYOUT_FILL_X, so wouldn''t its width
be determined before its children were created?
It''s not really a big deal, but I was configuring the split based on a
preferences file during initialize, and couldn''t make it work properly.
Doing it in
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 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