Displaying 19 results from an estimated 19 matches for "default_frame_style".
2007 Aug 24
2
SURVEY: wxRuby API style
...e = ''my frame''
# as well as
frame.set_title(''my frame'')
or
frame.title
# as well as
frame.get_title
2) Allow keyword constructors for window classes. This means you can write
frame = Wx::Frame.new(parent, :title => ''foo'', :style =>
Wx::DEFAULT_FRAME_STYLE)
as well as
frame = Wx::Frame.new(parent, -1, ''foo'', Wx::DEFAULT_POSITION,
Wx::DEFAULT_SIZE, Wx::DEFAULT_FRAME_STYLE)
In both cases, these would be based on the current wxSugar
implementation, which is 100% backwards compatible - no existing code
would need to be changed.
Ple...
2004 Jan 27
2
The flicker of the status bar.
...-----------
require ''wxruby''
include Wx
class RbApp < App
def on_init
frame = MyFrame.new("Test status bar flicker")
frame.show(TRUE)
end
end
class MyFrame < Frame
def initialize(title)
super( nil,-1,title, DEFAULT_POSITION, DEFAULT_SIZE,
DEFAULT_FRAME_STYLE | CLIP_CHILDREN | NO_FULL_REPAINT_ON_RESIZE )
@status_bar = create_status_bar(3)
set_status_bar( @status_bar )
end
end
a = RbApp.new
a.main_loop
#-------------------------------------
Thanks for any answer in advance.
--
Pavel.
mailto:papushev@inp.nsk.su
2005 Aug 17
7
Volunteer requested: Implement SplitterWindow
...to spend more than a few minutes on this, please post a note
to the list so you don''t duplicate effort.
Thanks,
Kevin
----
kevins@aria:~/work/wxruby2$ cat samples/testsplitter.rb
require ''wx''
include Wx
class MyFrame < Frame
def initialize(title,pos,size,style=DEFAULT_FRAME_STYLE)
super(nil,-1,title,pos,size,style)
splitter = SplitterWindow.new(self, -1)
end
end
class RbApp < App
def on_init
frame = MyFrame.new("Spliter Tester",Point.new(50, 50),
Size.new(450, 340))
frame.show(TRUE)
end
end
a = RbApp.new
a.main_loop()
kevin...
2006 Jul 24
6
MiniFrame.i
Hi
Another little patch, adding MiniFrame (a frame with small title bar and
buttons which doesn''t appear in the desktop taskbar).
Also a sample - not very interesting, happy to roll this into something
else if that''s better.
cheers
alex
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
2007 May 11
0
[ wxruby-Bugs-10759 ] Wx::AuiManager.get_all_panes can not get all pane.
...by2::AuiPaneInfo:0x2e3c0a4>,name=a
#<Wxruby2::AuiPaneInfo:0x2e3bf78>,name=b
====================================================
=end
class MainApp < Wx::App
def on_init
@frame = Wx::Frame.new(nil, -1, "bug get_all_panes",Wx::DEFAULT_POSITION,Wx::Size.new(800,600),Wx::DEFAULT_FRAME_STYLE)
aui =Wx::AuiManager.new @frame
pi = Wx::AuiPaneInfo.new.set_name(''a'').left.set_caption("a")
aui.add_pane(createTextCtrl("a"), pi)
pi = Wx::AuiPaneInfo.new.set_name(''b'').center.set_caption("b")
aui....
2003 Nov 25
1
Does wxRuby have event masks or something similar?
I''m trying to capture character events on a frame, using the following
piece of
code (adapted from samples/etc/test.rb):
def initialize(title)
super(nil, -1, title, Wx::Point.new(-1,-1), Wx::Size.new(530,590),
Wx::DEFAULT_FRAME_STYLE | Wx::FRAME_SHAPED)
evt_paint { onPaint }
evt_char { | evt |
puts "Got char evt: "+evt.to_s
if evt.get_key_code.chr =~ /\s/
next_image
end
}
@bitmap = nil
@file = nil
end
(I''ve added the constant for Wx::FRAME_SHAPED to try and allow res...
2007 Aug 22
2
Can''t change button-size?
...10)) but it always has the size of the whole frame?:
#!/usr/bin/env ruby
$Verbose=true
require ''rubygems''
require ''wx''
include Wx
class MyFrame < Frame
def initialize
super(nil, -1, "Threepwood",Point.new(400,250),Size.new(600,200),DEFAULT_FRAME_STYLE)
button = Button.new(self, -1, "Push me",Point.new(10,10),Size.new(50,10))
evt_button(button.get_id()) {|event| on_button(event)}
show()
end
def message(text, title)
m = Wx::MessageDialog.new(self, text, title, Wx::OK | Wx::ICON_INFORMATION)...
2007 May 20
3
bouton de fermeture
Bonjour, je voudrais savoir si il est possible de désactiver le bouton de fermeture en haut a droite (le bouton rouge avec une croix blanche), sans se servir de "FRAME_NO_WINDOW_MENU", car j''ai besoin des autres boutons.
Merci.
Sebastien
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
2007 Nov 19
4
options
Bonjour tout le monde.
En fait je voudrait savoir si il est possible d''enlever l''une des trois fonctions de la frame(maximize_box, minimise_box, close_box).
On peut retirer les 3 en même temps, mais est-ce que l''on peut juste retirer l''une des trois?
merci
sebastien
http://beusse.liveror.com
_______________________________________________
wxruby-users mailing
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...load ''wx''
- rescue
- raise no_wx_err
- end
-end
-
-
-class GridFrame < Wx::Frame
-
- def initialize(parent, id = -1, title = "MyFrame",
- pos = Wx::DEFAULT_POSITION,
- size = Wx::DEFAULT_SIZE,
- style = Wx::DEFAULT_FRAME_STYLE)
-
- super(parent, id, title, pos, size, style)
- sizer = Wx::BoxSizer.new(Wx::VERTICAL)
- create_status_bar()
- set_status_text(Wx::VERSION_STRING)
-
- # panel = Wx::Panel.new(self)
- sel_menu = Wx::Menu.new
- sel_menu.append(1002, ''Select all'', ''Sel...
2007 Aug 05
5
accent
Salut alex, est-ce qu''il est possible d''avoir la liste de tous les accents qu''il est possible de représenter avec wxruby2,
comme "é" par exemple.
merci
Sebastien
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...load ''wx''
+ rescue
+ raise no_wx_err
+ end
+end
+
+
+class GridFrame < Wx::Frame
+
+ def initialize(parent, id = -1, title = "MyFrame",
+ pos = Wx::DEFAULT_POSITION,
+ size = Wx::DEFAULT_SIZE,
+ style = Wx::DEFAULT_FRAME_STYLE)
+
+ super(parent, id, title, pos, size, style)
+ sizer = Wx::BoxSizer.new(Wx::VERTICAL)
+ create_status_bar()
+ set_status_text(Wx::VERSION_STRING)
+
+ # panel = Wx::Panel.new(self)
+ sel_menu = Wx::Menu.new
+ sel_menu.append(1002, ''Select all'', ''Sel...
2004 Dec 09
6
Scrolling to the bottom of a Grid
Hi,
Thanks to the newly added event handlers for Wx::Grid in the 0.6.0
release, I can now provide a much slicker intreface to my "data widgets"
which heavily rely on that control.
However, I haven''t quite figured out how to programmatically scroll to
the last row of a populated grid (actually, the first empty row). So
say that I have a grid with 200 rows only 20 of which
2006 Jul 25
6
Wizards
Hi
Please find attached a set of patches and swig files to implement
Wizards for wxruby. Also a brief sample.
Quick q - the C declarations of evt_xxx_xxx methods and their attaching
to Ruby classes seems to be duplicated across Events.i and EvtHandler.i
- is one of these the right place to be adding them? or both?
Thanks
alex
_______________________________________________
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...s="cx">
</span><del>-ID = 1
-
</del><span class="cx"> class ListctrlFrame < Wx::Frame
</span><span class="cx"> def initialize(title,pos,size)
</span><span class="cx"> super(nil,-1,title,pos,size,Wx::DEFAULT_FRAME_STYLE)
</span><span class="cx">
</span><del>- list = Wx::ListCtrl.new(self, ID, Wx::DEFAULT_POSITION,Wx::DEFAULT_SIZE,Wx::LC_REPORT)
</del><ins>+ list = Wx::ListCtrl.new(self, -1, Wx::DEFAULT_POSITION,
+ Wx::DEFAULT_SIZE,
+...
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...@|Under Windows, puts a query button on thecaption. When pressed, Windows will go into a context-sensitive help mode and Widgets will senda EVT_HELP event if the user clicked on an application window.This style cannot be used together with MAXIMIZE_BOX or MINIMIZE_BOX, soyou should use the style of@DEFAULT_FRAME_STYLE & @@(MINIMIZE_BOX | MAXIMIZE_BOX)@ for theframes having this style (the dialogs don''t have minimize nor maximize box bydefault)|
-|@WS_EX_PROCESS_IDLE@|This window should always process idle events, evenif the mode set by "IdleEvent#set_mode":idleevent.html#IdleEvent_setmode...
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 -
2008 Feb 17
15
A bug in wxRuby. Segmentation fault in random situations.
Hello,
I wrote an application in wxRuby:
ruby 1.8.6
wxruby 1.9.4 installed from gem
windows xp sp2
After several minutes of running it crashes with the following error:
"c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG]
Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual way.
Please contact
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...status_text(link.get_href)
+ else
+ get_related_frame.set_status_text('''')
+ end
+ end
+end
+
+# The frame or self-contained window for this application
+class HtmlFrame < Wx::Frame
+ attr_reader :html_win, :addr_bar
+
+ def initialize(title, pos, size, style = Wx::DEFAULT_FRAME_STYLE)
+ # A main application frame has no parent (nil)
+ # -1 means this frame will be supplied a default id
+ super(nil, -1, title, pos, size, style)
+ setup_menus
+ setup_panel
+ create_status_bar(2)
+ set_status_text("Welcome to wxRuby!")
+ end
+
+ def setup_panel
+...