Displaying 8 results from an estimated 8 matches for "getapp".
Did you mean:
netapp
2007 Aug 24
2
setting the font in FXText
...|FRAME_NONE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
contents = FXHorizontalFrame.new(self,
LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y|PACK_UNIFORM_WIDT
H)
@fxtext = FXText.new(contents, nil, 0,
TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
@fxtext.font = FXFont.new(getApp(), "courier", 8)
# Ok button
ok = FXButton.new(button, "OK", nil, self, ID_CANCEL,
FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_X|LAYOUT_CENTER_Y|LAYOUT_FILL_X)
ok.setDefault
ok.setFocus
end
end
However, when I add the following method to FXTextDialog and call...
2007 May 19
3
table with no row headers
Is this the right way to turn off row headers?
table.rowHeaderMode = LAYOUT_FIX_WIDTH
table.rowHeaderWidth = 0
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
2005 Dec 01
1
Can''t add text to FXCanvas
...# Dialogs for later use
colorDialog = FXColorDialog.new(self, "Color Dialog")
# Create a font dialog for later use
@fontDialog = FXFontDialog.new(self, "Axis Font Dialog")
# Create a tooltip so we get tool tips for things in this window
FXToolTip.new(self.getApp())
statusbar = FXStatusBar.new(self,
LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
#BUTTONS
@rightFrame = FXVerticalFrame.new(self,
LAYOUT_SIDE_TOP|LAYOUT_SIDE_RIGHT|LAYOUT_FILL_Y)
FXVerticalSeparator.new(self,
LAYOUT_SIDE_RIGHT|LAYOUT_FILL_Y|SEPARATOR_GRO...
2005 Apr 05
0
Connecting messages to methods
...)
self.setSelector(ID_SELF)
self.setTarget(self)
self.connect(SEL_CLOSE, method(:onClose))
self.connect(SEL_COMMAND, method(:onCommand))
FXButton.new(self, "Click me!", nil, self, ID_BTN)
end
def create
super
show(PLACEMENT_SCREEN)
end
def onClose(sender, sel, event)
getApp.exit(0)
end
def onCommand(sender, sel, event)
# ...
end
end
--
I''d like to redirect all SEL_COMMAND events to Window::onCommand. As an example, if one
clicks the button, the message (SEL_COMMAND, ID_BTN) is sent to the Window class but is not
handled there (Window::onCommand is ne...
2008 Jun 12
0
[Foxgui-users] Segmentation fault on exit
...>
> Viewer is a gl window with a menubar across the top; one of the
entries
> in the pull-down menu is an exit button, implemented thus;
>
>
> filemenuQuit_ = new FXMenuCommand
> (
> filemenu_,
> "&Quit\tCtl-Q",
> NULL,
> getApp(),
> FXApp::ID_QUIT
> );
>
> which I believe is the standard way of exiting a Fox application
window.
> viewer also contains a destructor function ~viewer which cleans up all
> the memory allocated to the viewer object. It ends with a statement
> Info << "...
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
2007 May 21
0
[1027] trunk/wxruby2/doc/textile/app.txtl: Ruby-specific Wx::App documentation
...program will have a single instance of Wx::App, which can be
+accessed once the app has started by the constant @Wx::THE_APP@, or by
+the module method @Wx::get_app()@.
</ins><span class="cx">
</span><del>-Use DECLARE_APP(appClass) in a header file if you want the GetApp function (which returns
-a reference to your application object) to be visible to other files.
-
</del><span class="cx"> h2. Derived from
</span><span class="cx">
</span><span class="cx"> "EvtHandler":evthandler.html
</...
2005 Sep 03
3
Re: FXRuby issues
On Sep 3, 2005, at 3:58 AM, Gonzalo Garramuno wrote:
> Sorry to bother you personally, but after working with FXRuby for the
> first time on a relatively medium-sized project, I collected a list of
> things that seem to be broken in fxruby (or fox), and I thought it
> would be good for you guys to be aware of.
> Some of these things I consider them somewhat serious in term of