Column title of wxListCtrl from XRC file


#1

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.html#xrc_wxlistctrl)
it shall be possible to define column names for wxLC_REPORT style for
this control by 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.


#2

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


#3

Alex F. 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”.


#4

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.html#xrc_wxlistctrl)
it shall be possible to define column names for wxLC_REPORT style for
this control by 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


#5

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


#6

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