Displaying 15 results from an estimated 15 matches for "calendarctrl".
2007 Apr 03
2
CalendarCtrl.date not working?
...my CheckListBoxes under control (thanks Alex& Phil) and
have moved on to tackling the CalendatCtrl. This one seemed pretty easy
when I was reading through the documentation but I cannot retrieve the
selected date. I have the following code:
def initialize...
...
@calendar = panel.add(Wx::CalendarCtrl[])
panel.add(Wx::Button[:label => ''test'']) do |@button|
listen(:button, @button, :on_b)
end
end
def on_b
date = @calendar.date
puts date
end
And I am getting the following error(s):
c:/ruby/lib/ruby/gems/1.8/gems/wx_sugar-0.1.14/lib/wx_sugar/accessors.rb:53:in
`
init...
2005 Aug 17
1
enums
See the attached patch to typedefs.i. I added the enums included from
CalendarCtrl.i. The calendar sample won''t work correctly without this
patch but I''m wondering if there''s a better way, such as moving the
declarations into RubyConstants.i instead.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyfor...
2007 Apr 13
0
[961] branches/wxruby2/wxwidgets_282/swig: Move wxDateTime typemap into shared file, map to core Time class instead
...13 Apr 2007)</dd>
</dl>
<h3>Log Message</h3>
<pre>Move wxDateTime typemap into shared file, map to core Time class instead
of stdlib DateTime</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#brancheswxruby2wxwidgets_282swigclassesCalendarCtrli">branches/wxruby2/wxwidgets_282/swig/classes/CalendarCtrl.i</a></li>
<li><a href="#brancheswxruby2wxwidgets_282swigclassesCalendarEventi">branches/wxruby2/wxwidgets_282/swig/classes/CalendarEvent.i</a></li>
<li><a href="#branchesw...
2007 Jun 25
0
[1073] trunk/wxruby2/doc/textile/calendarevent.txtl: Explain that get/set_week_day work with Integers
...EKDAY_CLICKED@ handler. It doesn''t make sense to call
-this function in other handlers.
</del><ins>+Returns an integer for the weekday clicked in an
+@EVT_CALENDAR_WEEKDAY_CLICKED@ handler. This is an integer corresponding
+to the day name that the user clicked upon in a
+"CalendarCtrl":calendarctrl.html (Sunday = 0, Monday = 1, Tuesday = 2
+etc, as in Ruby''s Time class).
</ins><span class="cx">
</span><ins>+It doesn''t make sense to call this method in other handlers.
</ins><span class="cx">
</spa...
2005 Jul 26
10
Patch for wxRuby2
...fixmainmodule.rb to mWx from mWxruby2.
Also changed mWx in functions.i and XmlResource.i
- Added the xrc example program (again)
- Added typemap to finally get wxItemKind working correctly, gets rid
of my fixedswigcode.rb hack.
- Added the wxMenuItem class.
- Added a type check for wxDateTime so CalendarCtrl now works properly
with ruby class DateTime.
- Changed $DEBUG in extconf.rb to $DEBUG_BUILD, for some reason it was
clashing with mkmf on Windows.
- Added wxBeginBusyCursor and wxEndBusyCursor to functions.i
- Added wxToolTip class.
- Many missing methods for existing classes.
- Slight tweaks to th...
2004 Apr 25
2
wxruby-swig 0.0.9
More progress on wxruby-swig. Nothing too exciting.
It now support 36 classes, compared to the (apparently) 139 supported by
wxRuby 0.3. A working version of the calendar sample is included. I made
several changes to the sample.
I have tentatively decided *not* to wrap the wxDateTime class, and
instead to automatically convert to/from Ruby''s own DateTime class.
My logic is that in
2008 May 18
0
[ wxruby-Bugs-20211 ] Unresolved symbol due to linkage error
...pp.o obj/ArtProvider.o obj/AuiDockArt.o obj/AuiManager.o obj/AuiManagerEvent.o obj/AuiNotebook.o obj/AuiNotebookEvent.o obj/AuiPaneInfo.o obj/Bitmap.o obj/BitmapButton.o obj/BitmapComboBox.o obj/BitmapDataObject.o obj/BoxSizer.o obj/Brush.o obj/BusyInfo.o obj/Button.o obj/CalculateLayoutEvent.o obj/CalendarCtrl.o obj/CalendarDateAttr.o obj/CalendarEvent.o obj/Caret.o obj/CheckBox.o obj/CheckListBox.o obj/ChildFocusEvent.o obj/Choice.o obj/Choicebook.o obj/ChoicebookEvent.o obj/ClientDC.o obj/ClientDataContainer.o obj/Clipboard.o obj/CloseEvent.o obj/CollapsiblePane.o obj/CollapsiblePaneEvent.o obj/Colour....
2007 Feb 12
0
[864] trunk/wxruby2/samples/calendar/calendar.rb: Fix a couple of errors, add a note on CalendarDateAttr
...sp   2007-02-12 19:13:16 UTC (rev 864)
</span><span class="lines">@@ -33,14 +33,14 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> class MyCalendar < CalendarCtrl
</span><del>- def initialize(parent, initial_date, calendar_flags)
</del><ins>+ def initialize(parent, display_frame, initial_date, calendar_flags)
</ins><span class="cx"> super(parent, -1,
</span><span class="cx">...
2004 Apr 23
11
Building wxruby-swig for Mac
0.0.5 sure gets the Mac build a lot further.
There''s a bug in the wxMac-2.4.2 distribution that I''m running into:
wx-config wants to invoke a program in the source directory at link
time. That''s ugly in itself, but it tries to use a variable
${top_srcdir} to accomplish this, and it''s apparently empty. It tries
to invoke
2006 Nov 29
5
wxSugar control problem
...wxruby2-preview 0.0.37 on OSX and am
coming up with an error when trying to create a SpinCtrl (and quite a
few others have exactly the same prob.):
#file date_picker.rb
class DatePicker < Wx::Dialog
def initialize
super(nil, :title => "Pick a date...")
@cal = Wx::CalendarCtrl.new(self)
add(@cal)
#works fine up to this point, will make a lovely calendar in the
window if I comment the next 2 lines out...
@month = Wx::SpinCtrl.new(self) # line 9 - doesn''t like this!
add(@month)
end
end
gives error:
ArgumentError:
Error initializing #...
2010 Jan 28
5
Compiling problem on Ubuntu 9.10 64 bit
.../AuiManager.o obj/AuiManagerEvent.o obj/AuiNotebook.o
obj/AuiNotebookEvent.o obj/AuiPaneInfo.o obj/Bitmap.o obj/BitmapButton.o
obj/BitmapComboBox.o obj/BitmapDataObject.o obj/BookCtrlBase.o
obj/BookCtrlBaseEvent.o obj/BoxSizer.o obj/Brush.o obj/BusyInfo.o
obj/Button.o obj/CalculateLayoutEvent.o obj/CalendarCtrl.o
obj/CalendarDateAttr.o obj/CalendarEvent.o obj/Caret.o obj/CheckBox.o
obj/CheckListBox.o obj/ChildFocusEvent.o obj/Choice.o obj/Choicebook.o
obj/ChoicebookEvent.o obj/ClientDC.o obj/ClientDataContainer.o
obj/Clipboard.o obj/ClipboardTextEvent.o obj/CloseEvent.o
obj/CollapsiblePane.o obj/Collapsib...
2005 Jul 31
5
SWIG compilation
The result of the compilation after installing swig results in lots of
errors of the sort:
WindowDisabler.obj : error LNK2001: unresolved external symbol
_SWIG_Ruby_ConvertPtr
I can see this is defined in rubydef.swg but I''m not sure why this isn''t
just included in the files that need it. Can any swig experts tell me
what I need to do to progress? I''m using
2004 Apr 29
10
wxruby-swig 0.0.12 is up
This one includes the latest App.cpp which includes the Mac fix from
Nick. I thought it was in 0.0.11, but it wasn''t.
It also adds support for "stock objects", like colours, pens, and fonts.
This turned out to be quite challenging, but I''m happy with the
solution. It only took a few days :-/
Kevin
2007 May 05
0
[1012] trunk/wxruby2/doc/textile: Added docs for AUI Advanced User Interface classes
...dows or widgets which provide allow for various types
+of user input and interaction.
+
+|Control|The base class for controls|
+|Button|Push button control, displaying text|
+|BitmapButton|Push button control, displaying a bitmap|
+|ToggleButton|A button which stays pressed when clicked by user.|
+|CalendarCtrl|Control showing an entire calendar month|
+|CheckBox|Checkbox control|
+|CheckListBox|A listbox with a checkbox to the left of each item|
+|Choice|Choice control (a combobox without the editable area)|
+|ComboBox|A choice with an editable area|
+|DatePickerCtrl|Small date picker control|
+|Gauge|A...
2007 Feb 09
20
Hello Everyone
I have a bit of a problem with installation. I installed wxX11 in my
linux box. I compiled the demos and all the demos, save dbbrowse,
work. I think I have a functional wx. Now I''m trying to install wxRuby
from source, since I have a 64 bit machine. I only have permission to
my home directory so my installation is :
/usr/people/stevenq/Applications/wxX11/