search for: id_ok

Displaying 20 results from an estimated 20 matches for "id_ok".

Did you mean: did_ok
2004 Jun 19
4
FlexGridSizer question
...''Date'') date.set_font(ROMAN_10B) sizer.add(date, 0, Wx::ALIGN_CENTRE_VERTICAL|Wx::ALIGN_RIGHT, 5) @date = Wx::TextCtrl.new(self, -1, ''6/28/2004'') @date.set_font(ROMAN_12) sizer.add(@date, 0, Wx::ALL, 5) button = Wx::Button.new(self, Wx::ID_OK, ''OK'', Wx::Point.new(0,0),Wx::Size.new(70,25)) button.evt_button(Wx::ID_OK){|event| onDoOK()} sizer.add(button, 0, Wx::SOUTH|Wx::WEST|Wx::EAST, 10) button = Wx::Button.new(self, Wx::ID_CANCEL, ''Cancel'',...
2008 Oct 06
2
StdDialogButtonSizer default button
Hi all, How do i set the default button for a Wx::StdDialogButtonSizer? Any hints would be appreciated. regards. bio. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
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 23
0
[796] trunk/wxruby2/samples/xrc/xrc_sample.rb: Simplify some method calls, rubyify and add a little more explanation
...&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp# - -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp@ok = Wx::Window.find_window_by_id(Wx::xrcid(''wxID_OK''),self) - @cancel = Wx::Window.find_window_by_id(Wx::xrcid(''wxID_CANCEL''),self) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp@message = Wx::Window.find_window_by_id(...
2004 Aug 07
1
end_modal question
...::Point.new( 225 , > 75 ) , > Wx::Size.new( 60 , 25 ) ); > > cancel_btn.evt_button( cancel_btn.get_id() ){ |e| exit(0); } > ok_btn.evt_button( ok_btn.get_id() ){ |e| > Game.updateOpponent( input_txt.get_value() ); > popup.end_modal( Wx::ID_OK ); } > > popup.show_modal(); > end > > Any idea''s why my end_modal quits the entire application? Thanks, > > Zach > > > > > > > > > _______________________________________________ > wxruby-users mailing list > wxruby-...
2007 Apr 14
0
[963] branches/wxruby2/wxwidgets_282/doc/textile/dialog.txtl: Added a few missing methods and cleaned up a bit.
...he identifier to be used as OK button. When the button with this identifier is pressed, the dialog calls "validate":window.html#Window_validate and "Window::transfer_data_from_window":window.html#Window_transferdatafromwindow and, if they both return true, closes the dialog with ID_OK return code. + +Also, when the user presses a hardware OK button on the devices having one or the special OK button in the PocketPC title bar, an event with this id is generated. + +By default, the affirmative id is ID_OK. + +h4. See also + +"Dialog::get_affirmative_id":dialog.html#Dialog...
2007 Apr 14
0
[964] branches/wxruby2/wxwidgets_282/doc/textile/dialog.txtl: Fixed spelling mistake in sample.
...tl&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-04-14 06:19:44 UTC (rev 964) </span><span class="lines">@@ -52,7 +52,7 @@ </span><span class="cx"> case dlg.show_modal </span><span class="cx"> when Wx::ID_OK # user clicked ok </span><span class="cx"> ... </span><del>- when Wx::ID_CANCLE # user clicked cancel or closed the dialog </del><ins>+ when Wx::ID_CANCEL # user clicked cancel or closed the dialog </ins><span class="cx"> ......
2007 Feb 12
0
[860] trunk/wxruby2/doc/textile/fontdialog.txtl: Documentation for FontDialog was missing completely
...og controls. + +h3(#FontDialog_getfontdata). FontDialog#get_font_data + + "FontData":fontdata.html *get_font_data*() + +Returns the font data associated with the font dialog. + +h3(#FontDialog_showmodal). wxFontDialog::show_modal + + Integer *show_modal*() + +Shows the dialog, returning @ID_OK@ if the user pressed Ok, and +@ID_CANCEL@ otherwise. + +If the user cancels the dialog (show_modal returns @ID_CANCEL@), no font +will be created. If the user presses OK, a new "Font":font.html will be created +and stored in the font dialog''s "FontData":fontdata.html st...
2007 Jun 28
2
Keeping GUI responsive while processing data
...p if file1 == '''' or file2 == '''' info = sprintf("Please make sure you have selected both files.") dialog2 = Wx::MessageDialog.new(self, info, "Missing File?") dialog2.show_modal() elsif dialog.show_modal() == Wx::ID_OK save_path = dialog.get_path() puts save_path puts file1 puts file2 $t = Thread.new { ap = APBook.new ap.run(file1, file2, save_path) ### THIS IS THE PART THAT TAKES } ### SOME TIME end end And my on_init looks like this:...
2006 Oct 23
0
[709] trunk/wxruby2/samples/dialogs/dialogs.rb: Use paint method again, remove unnecessary global (Alex Fenton)
...t_colour(Wx::get_app.canvas_text_colour) </ins><span class="cx"> </span><span class="cx"> dialog = FontDialog.new(self, data) </span><span class="cx"> </span><span class="cx"> if dialog.show_modal() == ID_OK </span><span class="cx"> retData = dialog.get_font_data() </span><del>- # $app.canvas_font = retData.get_chosen_font() - # $app.canvas_text_colour = retData.get_colour() </del><ins>+ Wx::get_app.canvas_font = retData.get_chosen_font...
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...s="cx"> colour = Colour.new(i*16, i*16, i*16) </span><span class="cx"> data.set_custom_colour(i, colour) </span><span class="lines">@@ -214,14 +213,14 @@ </span><span class="cx"> if dialog.show_modal() == ID_OK </span><span class="cx"> retData = dialog.get_colour_data() </span><span class="cx"> col = retData.get_colour() </span><del>- $myCanvas.set_background_colour(col) - #$myCanvas.clear() - $myCanvas.refresh() </del&g...
2007 Mar 23
0
[918] branches/wxruby2/wxwidgets_282/samples/aui/aui.rb: Fix a couple of little bugs and typos
...:ColourDialog.new(@frame) </span><del>- dlg.set_title("Cololur Picker") </del><ins>+ dlg.set_title("Colour Picker") </ins><span class="cx"> </span><span class="cx"> return unless dlg.show_modal == Wx::ID_OK </span><span class="cx"> </span><span class="cx"> var = nil </span><span class="cx"> case event.get_id() </span><del>- when ID_BackgroundColor </del><ins>+ when ID_BackgroundColour </ins&...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...t;cx"> center_on_screen(Wx::BOTH) </span><span class="cx"> end </span><del>- text = Wx::TextCtrl.new(self, -1, msg, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::TE_MULTILINE | Wx::TE_READONLY) - ok = Wx::Button.new(self, Wx::ID_OK, "OK") - lc = Wx::LayoutConstraints.new() - lc.top.same_as(self, Wx::LAYOUT_TOP, 5) - lc.bottom.same_as(ok, Wx::LAYOUT_TOP, 5) - lc.right.same_as(self, Wx::LAYOUT_RIGHT, 5) - lc.left.same_as(self, Wx::LAYOUT_LEFT, 5) - - text.set_constrain...
2007 Apr 12
9
taille de caractère
en fait je vous renvoi ce message car maintenant la taille de la police change au bout de 500 lignes environ, alors que j''avais reussi à garder la taille jusqu''à environ 5000 lignes. Je ne comprend pas. Est-ce que c''est instable? le bout de code que vous m''avez envoyer ne marche pas. merci Sebastien _______________________________________________ wxruby-users
2004 Jan 08
3
pictorG
...','''','''',''Picture organizer catalog *.poc|*.poc'',OPEN|CHANGE_DIR).show_modal} evt_menu(ID_SETROOT) { dirdlg=DirDialog.new(self,''Catalog base dir'',@root_dir) self.root_dir=dirdlg.get_path if dirdlg.show_modal==ID_OK } evt_menu(ID_EXIT) {close TRUE } evt_menu(ID_ABOUT) {message_box "pictorG - PICTure ORganizer by Gregory\n?Gergely Kontra","About pictorG",OK|ICON_INFORMATION} #show_pics end def root_dir= (dir) @config.write("/rootdir",@root_dir=dir) set_...
2004 Aug 06
12
0.4.0 Compiling Under Mingw
> I am compiling wxRuby 0.4.0 on WinXP Home under MingW and MSYS 1.0. I can > compile wxWindows and Ruby fine and I get about 20 minutes into the wxRuby > compile and it quits, It says: [snip] > C:\mingw\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe : > cannot find -lwxmsw241d > make: *** [wxruby.so] Error 1 > I replaced the $LIBS in the extconf.rb file
2007 Mar 29
0
[926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
...The dialog usually contains either a single button allowing to close the +dialog or two buttons, one accepting the changes and the other one +discarding them (such button, if present, is automatically activated if +the user presses the @"Esc"@ key). By default, buttons with the standard +@ID_OK@ and @ID_CANCEL@ identifiers behave as expected. It is also +possible to use a button with a different identifier nstead, see +"set_affirmative_id":#Dialog_setaffirmativeid and +"set_escape_id":#Dialog_setescapeid. + +Also notice that the "create_button_sizer()":#Dialo...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...t_dock_art.set_metric( Wx::AUI_DOCKART_CAPTION_SIZE, + event.get_position ) + @frame.do_update + end + + def on_set_colour(event) + dlg = Wx::ColourDialog.new(@frame) + dlg.set_title("Cololur Picker") + + return unless dlg.show_modal == Wx::ID_OK + + var = nil + case event.get_id() + when ID_BackgroundColor + var = Wx::AUI_DOCKART_BACKGROUND_COLOUR + when ID_SashColor + var = Wx::AUI_DOCKART_SASH_COLOUR + when ID_InactiveCaptionColor + var = Wx::AUI_DOCKART_INACTIVE_CAPTION_COLOUR + when ID_InactiveCapti...
2006 Nov 06
3
HtmlWindow and friends
Hi Attached is a patch to add HtmlWindow and some of its friends, including HtmlEasyPrinting. Also a sample. I haven''t tried exposing the parsing and rendering API yet to allow custom tags etc - I just wanted to get basic HTML and the 0.6.0 compatibility classes first. There may well be some quite easy classes left. There''s one ugly kludge to get OnOpeningURL to compile -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...close + end + + def on_open_file + f_dlg = Wx::FileDialog.new(self, "Open an HTML file", "", "", + "HTML files (*.html;*.htm)|.html;.htm)", + Wx::OPEN) + if not f_dlg.show_modal == Wx::ID_OK + return + end + html_file = f_dlg.get_path + + @html_win.load_file(html_file) + end + + # show an ''About'' dialog + def on_about + msg = sprintf("This is the About dialog of the HTML sample.\n" \ + "Welcome to wxRuby, version %...