Displaying 20 results from an estimated 100 matches similar to: "Learning FXRuby please help!"
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 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
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
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
Hi,
I am having trouble debugging this one. The code is attached below, but
it seems to be a problem at the
C-tk interface. If I run this 1 time there are no problems if I run it
more than once I start to get warnings
that increase in multiples of 11 everytime I run it. Here is a sample
session
> source("clrramp2.r")
Loading required package: tcltk
Loading Tcl/Tk interface ... done
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
2011 Sep 22
1
Wrapper of linearHypothesis (car) for post-hoc of repeated measures ANOVA
For some time I have been looking for a convenient way of performing
post-hoc analysis to Repeated Measures ANOVA, that would be acceptable
if sphericity is violated (i.e. leaving aside post-hoc to lme models).
The best solution I found was John Fox's proposal to similar requests
in R-help:
http://tolstoy.newcastle.edu.au/R/e2/help/07/09/26518.html
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
2008 Mar 25
2
FXImageFrame/SEL_LEFTBUTTONRELEASE
Hi,
I have a FXImageFrame widget and I would like it to show another image when
I click on it.
I''m having no luck with receiving a onclick via SEL_LEFTBUTTONRELEASE.
...
imageframe=FXImageFrame.new(mainwindow,the_image,LAYOUT_EXPLICIT,0,0,20,20)
imageframe.connect(SEL_LEFTBUTTONRELEASE) {p ''onclick received''}
...
What is it that I''m missing?
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
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
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
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
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"
2008 May 31
2
Getting items to fill a column
Hi
I''ve been following through the example app in the FXRuby book (which
has generally been very helpful!) and I''m now at the extending it
stage.
I''d like to get the images display at the centre of a column and have
a uniform width for all columns. The centering I have fixed, but no
combinations of setting width and height options and LAYOUT_FILLs
seems to work to get
2007 Apr 27
2
mdiclient windows do not always activate on click
I just noticed that MDIClient windows do not automatically become
current when they receive a mouse click, but only do so if the click
happens inside of an enabled widget. This may very well be correct, but
if so then what is the right way to handle it, if you want a more
familiar window-manager behavior (click to focus)?
For example, if you change the mditest.rb example like so...
---
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
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across
something that kinda bothers me...
In order to implement validators you have to override the clone method.
The directors seems to be set up to specifically handle this situation.
However, whenever C++ calls back to the object''s methods the swig_get_up
function is returning false. It seems like swig_up
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
<!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 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
2010 Apr 30
3
Ogv file only plays in VLC / Can't be used by most tools.
Hi,
I'm new here - thanks for having me. (Sorry if I'm in the wrong place or a noob.)
I downloaded the Theora encoder sample (ver 1.1.1), modified it to encode a sequence of bitmaps, and created an OGV file.
The OGV file plays fine in the latest VLC (1.0.5), but I can't do much else with it:
I tried uploading to YouTube, and the video just comes out really corrupt: