Displaying 20 results from an estimated 71 matches for "statictext".
2007 Jul 20
8
Wx::StaticText
Salut alex.
J''ai une question a propos de wx::statictext(wxruby2)
est-il possible de mettre les accents pour la langue française?, car pour l''instant je ne peut pas mettre l''accentuation alors que ça marche bien avec "wxruby".
merci
Sebastien
_______________________________________________
wxruby-users mailing list
wxruby-use...
2007 Jan 22
4
Adding sizers to other sizers doesn''t work
...ke the following:
class CharacterInfoPanel < Wx::Panel
def initialize(parent)
super(parent)
sizer = Wx::BoxSizer.new(Wx::VERTICAL)
set_sizer(sizer)
row = Wx::Panel.new(self,-1)
row_sizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
row.set_sizer(row_sizer)
row_sizer.add(Wx::StaticText.new(self, -1, "Character Name"))
row_sizer.add(Wx::Panel.new(self,-1, Wx::DEFAULT_POSITION, Wx::Size.new
(10,1)))
row_sizer.add(Wx::StaticText.new(self, -1, "Player Name"))
sizer.add(row_sizer)
row = Wx::Panel.new(self,-1)
row_sizer = Wx::BoxSizer.new(Wx::HO...
2004 Aug 07
1
end_modal question
Really stupid question, but have you wrapped this all in an App class? If you don''t have a
wxApp subclass driving your applications then all sorts of badness would happen.
> I''m writing a custom little application for my boss''s high school
> football team to track there stats play by play.
>
> My problem is that when I start the application, it
2005 Sep 02
2
About.rbw.patch
This patch file allows the About menu item in the bigdemo sample to work.
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Nov 18
4
set background label to transparent??
I just use wxRuby and I have problem
I use background image on my app and when I create label it seem look
background of label is gray, how can I change it into transparent????
--
Posted via http://www.ruby-forum.com/.
2004 Oct 21
0
Re: wxRuby: How to add a scrollbar to a Wx::Notebook tab
...["3rd check 4", "..." ] ]
> }
> ]
>
> @sl.each_with_index{ | line, idx |
> panel = Wx::Panel.new( notebook, -1 )
> sizer = Wx::FlexGridSizer.new( 2, 0, 2 )
> panel.set_sizer sizer
>
> header = Wx::StaticText.new( panel, -1, line[:header] )
> sizer.add( header, 0, Wx::ALIGN_LEFT )
> sizer.add( Wx::StaticText.new( panel, -1, '''' ), 0,
> Wx::ALIGN_LEFT )
>
> line[:list].each { | item |
> checker = Wx::CheckBox.new( panel, -...
2004 Jun 19
4
FlexGridSizer question
...N_10B = Wx::Font.new(10, Wx::ROMAN, Wx::NORMAL, Wx::BOLD)
ROMAN_12 = Wx::Font.new(12, Wx::ROMAN, Wx::NORMAL, Wx::NORMAL)
class MyDialog < Wx::Dialog
def initialize(parent)
super( parent, -1, ''FlexGridSizer'')
sizer = Wx::FlexGridSizer.new(4,2,0,5)
week = Wx::StaticText.new(self, -1, ''Week'')
week.set_font(ROMAN_10B)
sizer.add(week,0, Wx::ALIGN_CENTRE_VERTICAL|Wx::ALIGN_RIGHT, 10)
@week = Wx::TextCtrl.new(self, -1, ''week'')
@week.set_font(ROMAN_12)
sizer.add(@week, 0, Wx::ALL, 5)
day = Wx::StaticText.new(s...
2007 Jul 17
0
[1116] trunk/wxruby2/samples/bigdemo/wxStaticBitmap.rbw: Fix hardcoded image paths, tidy up indenting
...12,27 +12,37 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> class TestPanel < Wx::Panel
</span><del>- def initialize(parent, log)
- super(parent, -1)
-
- Wx::StaticText.new(self, -1, "This is a wxStaticBitmap.", Wx::Point.new(45,5))
-
- Wx::StaticBitmap.new(self, -1, Wx::Bitmap.new("./icons/test2.xpm", Wx::BITMAP_TYPE_XPM), Wx::Point.new(80,25))
-
- Wx::StaticBitmap.new(self, -1, Wx::Bitmap...
2008 Mar 31
2
Mouse motion example - help
...aptured right. What am I doing
wrong?
Thanks
warrior
# code below
require ''wx''
class MyFrame < Wx::Frame
def initialize
super(nil, -1, "My Frame", :size => [300,300])
@my_panel = Wx::Panel.new(self, -1)
evt_motion(){ |event| on_move(event)}
Wx::StaticText.new(@my_panel, -1, :label => "Pos:", :pos => [10, 12])
@posCtrl = Wx::TextCtrl.new(@my_panel, -1, "",:pos => [40, 10])
show
end
def on_move(event)
@pos = event.get_position
@posCtrl.change_value("#{@pos}")
end
end
Wx::App.run{MyFrame.new...
2006 Aug 25
3
Patch to wxComboBox.rbw
This patch fixes the sample so it works correctly. You''ll need to
patches in the previous e-mail.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2004 Jun 04
7
I''m ready to build 0.4.0 for Windows
Let me know when you''ve got the cvs repo labeled -- I''m already to go to
build the 0.4.0 installer for Windows.
Curt
2006 Sep 03
9
Patch files to implement AcceptFocus
These files add the virtual function AcceptFocus that was missing from
wxWindow.h. In order to make things right I had to make sure it was
also declared in all the places where wxWindows also changes it. Also,
in wxTextCtrl on Windows GetDefaultAttributes needs to be redeclared. I
haven''t downloaded the Unix and Mac headers for 2.6.3 so I couldn''t see
if it also applies
2007 Sep 15
2
wxRuby 1.9.1 and id accessor consistency problem
Hi all,
wxRuby 1.9.1 introduced great Rubish style accessors (x.label as a synonym
for x.get_label).
I just found that get_id has no corresponding Rubish style id accessor.
For a CheckListBox or a StaticText (I haven''t checked for other kind of
controls), id just returns the Ruby object_id.
This is very confusing and not consistent with other accessors.
Chauk-Mean.
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailm...
2006 Sep 14
1
wxChoicebook
wxChoicebook.rbw + patch file to bigdemo.rb
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Aug 25
1
wxCheckListBox.rbw patch file
This fixes truncated text on the CheckListBox sample in bigdemo.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Sep 04
3
bigdemo patches
...ng the list
2) wxCalendarCtrl.rbw: Uses ruby DateTime now
3) wxButton.rbw: There is no function ''set_tool_tip_string''. Changed
to set_tool_tip
4) wxCheckBox.rbw: Missing quote on require. cID was too big, caused
assert failure
5) wxCheckListBox.rbw: Missing argument to StaticText.new added (I
don''t /think/ it''s supposed to work without that argument)
There are some .i and .h patches that I didn''t have time to put together
and deserve their own e-mail.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-use...
2010 Sep 09
1
Wx::Grid and motion events, bug?
...-------------------------------------------------
#!/usr/bin/env ruby
#Encoding: UTF-8
require "wx"
class MyFrame < Wx::Frame
include Wx
def initialize(parent = nil)
super(parent, title: "Test", size: Size.new(400, 400))
self.background_colour = NULL_COLOUR
StaticText.new(self, label: "") #Dummy
@grid = Grid.new(self, size: Size.new(300, 200))
@grid.create_grid(10, 10)
@grid.evt_motion{|e| p "!"; $stdout.flush}
end
end
class MyApp < Wx::App
include Wx
def on_init
@mainwindow = MyFrame.new
@mainwindow.show
end...
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
_______________________________________________
2007 Oct 09
3
Trouble with dialog based application
...s !!
The following code based on a frame works as expected.
After the closing of the application window, the "exit from
application" string is output.
require "wx"
class HelloWorld < Wx::App
def on_init
helloframe = Wx::Frame.new(nil, "Hello World")
Wx::StaticText.new(helloframe, "Hello World")
helloframe.show
end
end
HelloWorld.new.main_loop
puts "exit from application"
If the frame is replaced by a dialog, the application seems to be
closed but the message is never output.
I tried both show and show_modal to display the window....
2007 Dec 28
1
Wx:Wizard, Wx::WizardPageSimple
...mple.new()
setup_page_one(step_one)
step_two = Wx::WizardPageSimple.new(nil, step_one)
step_one.set_next(step_two)
setup_page_two(step_two)
run_wizard(step_one)
#self.show(true)
end
def setup_page_one(step)
intro_label =
"some
text
here"
Wx::StaticText.new(step, :label => intro_label)
end
def setup_page_two(step)
label =
"more
text here"
Wx::StaticText.new(step, :label => label)
txt = Wx::TextCtrl.new(step,
:id => 21,
:value => @timefly.running_p...