Forum: wxRuby column title of wxListCtrl from XRC file

6f38e846b03cb07463beac0174be19da?d=identicon&s=25 Jakub S. (jakub_s)
on 2013-04-29 10:33
Attachment: gui.xml (1022 Bytes)
Attachment: my_gui.rb (1 KB)
Hello,

I have problem with loading column title for wxListCtrl which are
defined in xrc file. According to XRC file format description
(http://docs.wxwidgets.org/trunk/overview_xrcformat...)
it shall be possible to define column names for wxLC_REPORT style for
this control by <listcol> class. Attached you can find code which I need
to run (gui.xml is a xrc file with desired layout). Unfortunately in my
script I need to add column title manually so they are shown in GUI
(commented lines 22, 23 in my_gui.rb). Is there a way to force wxRuby to
load  column titles from xrc or am I doing something wrong?

I'm using ruby 1.9.3p327 (2012-11-10) [i386-mingw32] with wxruby-ruby19
(2.0.1 x86-mingw32).

Thx in advance for support.
06f6780c99d4a8dd71f2b474082ea9ce?d=identicon&s=25 Alex Fenton (Guest)
on 2013-04-30 18:30
(Received via mailing list)
On 29/04/13 09:33, Jakub S. wrote:
>
> I have problem with loading column title for wxListCtrl which are
> defined in xrc file. According to XRC file format description
> (http://docs.wxwidgets.org/trunk/overview_xrcformat...)
> it shall be possible to define column names for wxLC_REPORT style for
> this control by <listcol> class.

The code looks fine, but wxRuby 2.0 is based on wxWidgets 2.8.
Unfortunately the ability to define list columns for wxListCtrl in XML
was only added to later wxWidgets (the 2.9 / 3.0 series).

cheers
alex
E616d8c74827175f975efcbac2ca1ec0?d=identicon&s=25 unknown (Guest)
on 2013-04-30 18:37
(Received via mailing list)
Bonjour,

Je suis absent du 1er au 10 mai inclus. Je prendrais donc connaissance
de votre message a mon retour.
En cas d'urgence, vous pouvez contacter Mathieu Bartoletti au
03.80.43.91.29.

Cordialement,

Jean-Baptiste FERRAUD
6f38e846b03cb07463beac0174be19da?d=identicon&s=25 Jakub S. (jakub_s)
on 2013-05-05 08:31
Alex Fenton wrote in post #1107388:
>
> The code looks fine, but wxRuby 2.0 is based on wxWidgets 2.8.
> Unfortunately the ability to define list columns for wxListCtrl in XML
> was only added to later wxWidgets (the 2.9 / 3.0 series).
>
> cheers
> alex

Thx Alex. If I print out const Wx::WXWIDGETS_VERSION in my ruby script
it says "2.8.10".
E616d8c74827175f975efcbac2ca1ec0?d=identicon&s=25 unknown (Guest)
on 2013-05-05 09:01
(Received via mailing list)
Bonjour,

Je suis absent du 1er au 10 mai inclus. Je prendrais donc connaissance
de votre message a mon retour.
En cas d'urgence, vous pouvez contacter Mathieu Bartoletti au
03.80.43.91.29.

Cordialement,

Jean-Baptiste FERRAUD
E616d8c74827175f975efcbac2ca1ec0?d=identicon&s=25 unknown (Guest)
on 2013-05-05 09:06
(Received via mailing list)
Bonjour,

Je suis absent du 1er au 10 mai inclus. Je prendrais donc connaissance
de votre message a mon retour.
En cas d'urgence, vous pouvez contacter Mathieu Bartoletti au
03.80.43.91.29.

Cordialement,

Jean-Baptiste FERRAUD
This topic is locked and can not be replied to.