<?xml version="1.0" ?><rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel rdf:about="http://issues.wxformbuilder.org/">
    <title>wxFormBuilder Issues::</title>
    <link>http://issues.wxformbuilder.org/</link>
    <description>wxFormBuilder Issues</description>
    <dc:date>2010-07-30T23:04:15Z</dc:date>
    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=463" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=462" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=461" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=460" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=458" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=457" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=455" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=453" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=451" />
                <rdf:li rdf:resource="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=448" />
              </rdf:Seq>
    </items>
    		
  </channel>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=463">
    <title>FS#463: adds &#039;public&#039; to python class when doing &#039;subclass&#039;</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=463</link>
    <dc:date>2010-07-30T23:04:15Z</dc:date>
    <dc:creator>Michael Hipp</dc:creator>
    <description>

What steps will reproduce the problem?


 Create a project to generate python code

 Add a panel to the project, select the panel object

 Under Object Properties &amp;rarr; &amp;lsquo;subclass&amp;rsquo; add &amp;lsquo;MyCustomPanel&amp;rsquo; as the subclass name




 What is the expected output? What do you see instead? expected: 

class MyPanel4 ( MyCustomPanel ):



got:

&amp;lt;code&amp;gt;class MyPanel4 ( public MyCustomPanel ):&amp;lt;/code&amp;gt;


 The word &amp;lsquo;public&amp;rsquo; is a syntax error in Python.

</description>
    <content:encoded><![CDATA[
<p>
What steps will reproduce the problem?
</p>
<ol>
<li class="level1"><div class="li"> Create a project to generate python code</div>
</li>
<li class="level1"><div class="li"> Add a panel to the project, select the panel object</div>
</li>
<li class="level1"><div class="li"> Under Object Properties &rarr; &lsquo;subclass&rsquo; add &lsquo;MyCustomPanel&rsquo; as the subclass name</div>
</li>
</ol>

<p>
 What is the expected output? What do you see instead? expected: 
</p>
<pre class="code">class MyPanel4 ( MyCustomPanel ):</pre>
<pre class="code"></pre>

<p>
got:
</p>
<pre class="code">&lt;code&gt;class MyPanel4 ( public MyCustomPanel ):&lt;/code&gt;</pre>

<p>
 The word &lsquo;public&rsquo; is a syntax error in Python.
</p>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=462">
    <title>FS#462: &quot;Internationalize&quot; property is not only a C++ property</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=462</link>
    <dc:date>2010-06-02T15:57:16Z</dc:date>
    <dc:creator>Luca Allulli</dc:creator>
    <description>

What steps will reproduce the problem?


 Open a new project

 Clic on root item of project tree

 On the &amp;ldquo;Properties&amp;rdquo; tab of Object Properties pane, under &amp;ldquo;C++ properties&amp;rdquo;, clic &amp;ldquo;internationalize&amp;rdquo;




 What is the expected output? What do you see instead? On the lower pane the help string &amp;ldquo;For C++ only&amp;rdquo; appears. However, i18n is also avaliable for Python. Thus the &amp;ldquo;internationalize&amp;rdquo; property should be moved just under &amp;ldquo;Project&amp;rdquo;, and &amp;ldquo;For C++ only&amp;rdquo; should be removed from the help string.

</description>
    <content:encoded><![CDATA[
<p>
What steps will reproduce the problem?
</p>
<ol>
<li class="level1"><div class="li"> Open a new project</div>
</li>
<li class="level1"><div class="li"> Clic on root item of project tree</div>
</li>
<li class="level1"><div class="li"> On the &ldquo;Properties&rdquo; tab of Object Properties pane, under &ldquo;C++ properties&rdquo;, clic &ldquo;internationalize&rdquo;</div>
</li>
</ol>

<p>
 What is the expected output? What do you see instead? On the lower pane the help string &ldquo;For C++ only&rdquo; appears. However, i18n is also avaliable for Python. Thus the &ldquo;internationalize&rdquo; property should be moved just under &ldquo;Project&rdquo;, and &ldquo;For C++ only&rdquo; should be removed from the help string.
</p>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=461">
    <title>FS#461: build errors on Fedora 12 w/ gcc 4.4.3</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=461</link>
    <dc:date>2010-03-21T21:59:56Z</dc:date>
    <dc:creator>Ray</dc:creator>
    <description>

On Fedora 12 with gcc 4.4.3 I encountered the following build issues:



create_build_files.sh is written in MSDOS format (LF+CR) and fails to run because of the ^M on the shabang line.  It needs to be converted to unix format using: &amp;ldquo;dos2unix create_build_files.sh&amp;rdquo;.  This likely effects all Linux/Unix builds.



Two source files had build errors due to missing header files (this is likely to be compiler-specific):



sdk/tinyxml/ticpp.cpp needs:

#include &amp;lt;typeinfo&amp;gt;


 src/dbg_stack_trace/stack.cpp needs:

#include &amp;lt;cstdlib&amp;gt;  (for free())
#include &amp;lt;cstring&amp;gt;  (for strcmp())
</description>
    <content:encoded><![CDATA[
<p>
On Fedora 12 with gcc 4.4.3 I encountered the following build issues:
</p>

<p>
create_build_files.sh is written in MSDOS format (LF+CR) and fails to run because of the ^M on the shabang line.  It needs to be converted to unix format using: &ldquo;dos2unix create_build_files.sh&rdquo;.  This likely effects all Linux/Unix builds.
</p>

<p>
Two source files had build errors due to missing header files (this is likely to be compiler-specific):
</p>

<p>
sdk/tinyxml/ticpp.cpp needs:
</p>
<pre class="code">#include &lt;typeinfo&gt;</pre>

<p>
 src/dbg_stack_trace/stack.cpp needs:
</p>
<pre class="code">#include &lt;cstdlib&gt;  (for free())
#include &lt;cstring&gt;  (for strcmp())</pre>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=460">
    <title>FS#460: wx.listCtrl and wx.EVT_LIST_ITEM_DESELECTED event</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=460</link>
    <dc:date>2010-03-18T17:56:38Z</dc:date>
    <dc:creator>nicolas</dc:creator>
    <description>

What steps will reproduce the problem?


 Using wxFormBuilder in Linux Version 3.1.64-beta

 I create a wxlistCtrl named myListCtrl with a OnListItemDeselected event 




 In the python code, I have:

self.name.Bind( wx.EVT_LIST_ITEM_DESELECTED, self.onDeselect)


instead of:

self.myListCtrl.Bind( wx.EVT_LIST_ITEM_DESELECTED, self.onDeselect)


the others events work well: 

self.myListCtrl.Bind( wx.EVT_LIST_COL_CLICK, self.onCol )
self.name.Bind( wx.EVT_LIST_ITEM_DESELECTED, self.onDeselect )
self.myListCtrl.Bind( wx.EVT_LIST_ITEM_SELECTED, self.onChange )
</description>
    <content:encoded><![CDATA[
<p>
What steps will reproduce the problem?
</p>
<ol>
<li class="level1"><div class="li"> Using wxFormBuilder in Linux Version 3.1.64-beta</div>
</li>
<li class="level1"><div class="li"> I create a wxlistCtrl named myListCtrl with a OnListItemDeselected event </div>
</li>
</ol>

<p>
 In the python code, I have:
</p>
<pre class="code">self.name.Bind( wx.EVT_LIST_ITEM_DESELECTED, self.onDeselect)</pre>

<p>
instead of:
</p>
<pre class="code">self.myListCtrl.Bind( wx.EVT_LIST_ITEM_DESELECTED, self.onDeselect)</pre>

<p>
the others events work well: 
</p>
<pre class="code">self.myListCtrl.Bind( wx.EVT_LIST_COL_CLICK, self.onCol )
self.name.Bind( wx.EVT_LIST_ITEM_DESELECTED, self.onDeselect )
self.myListCtrl.Bind( wx.EVT_LIST_ITEM_SELECTED, self.onChange )</pre>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=458">
    <title>FS#458: Change a property for many widgets</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=458</link>
    <dc:date>2010-03-03T10:32:27Z</dc:date>
    <dc:creator>Yohann</dc:creator>
    <description>

It would be very helpful to have the possibility to change a property for many widgets in the same time. I explain my problem : Currently, if you have to disable the wxALL border for 30 wxStaticText, you must click on each wxStaticText one by one and disable its wxALL border. One possibility would be to select all the widgets we want to change, and their common properties would be shown in the property panel. So, you just have to modify the property you want. Another alternative is to allow the user to create some shortcuts. For my example, you create a shortcut to disable wxALL border, so after you just have to click on each widget and press your shortcut. 

</description>
    <content:encoded><![CDATA[
<p>
It would be very helpful to have the possibility to change a property for many widgets in the same time. I explain my problem : Currently, if you have to disable the wxALL border for 30 wxStaticText, you must click on each wxStaticText one by one and disable its wxALL border. One possibility would be to select all the widgets we want to change, and their common properties would be shown in the property panel. So, you just have to modify the property you want. Another alternative is to allow the user to create some shortcuts. For my example, you create a shortcut to disable wxALL border, so after you just have to click on each widget and press your shortcut. 
</p>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=457">
    <title>FS#457: Enable/Disable prefix &#039;m_&#039;</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=457</link>
    <dc:date>2010-03-03T10:22:48Z</dc:date>
    <dc:creator>Yohann</dc:creator>
    <description>

As we can now generate Python Code in wxFB v3.1 beta, it would be useful to have the possibility to disable the prefix &amp;lsquo;m_&amp;rsquo; for the name of the widgets, because in Python we already have the &amp;lsquo;self.&amp;rsquo; to distinguish class attributes. 

</description>
    <content:encoded><![CDATA[
<p>
As we can now generate Python Code in wxFB v3.1 beta, it would be useful to have the possibility to disable the prefix &lsquo;m_&rsquo; for the name of the widgets, because in Python we already have the &lsquo;self.&rsquo; to distinguish class attributes. 
</p>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=455">
    <title>FS#455: Option for using spaces for indentation instead of tabs</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=455</link>
    <dc:date>2010-02-18T20:21:07Z</dc:date>
    <dc:creator>Toni Ruža</dc:creator>
    <description>

Most people use spaces for indentation, it would be useful to have an option for what kind of indentation wxFormBuilder generates.



This is an issue when the generated empty methods for events are copy-pasted into other files. 

</description>
    <content:encoded><![CDATA[
<p>
Most people use spaces for indentation, it would be useful to have an option for what kind of indentation wxFormBuilder generates.
</p>

<p>
This is an issue when the generated empty methods for events are copy-pasted into other files. 
</p>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=453">
    <title>FS#453: Subclass attribute for the custom control is not generated in the XRC</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=453</link>
    <dc:date>2010-01-22T19:37:51Z</dc:date>
    <dc:creator>Jack Daniels</dc:creator>
    <description>

What steps will reproduce the problem?


 Create custom control

 Add some text for subclass property

 Switch to XRC tab

 Verify that custom control has no subclass attribute




 This is non-intuitive because the user would expect that if data has been entered in the subclass property of the control that it should be present in the output of any format that supports it.  wxFB appears to support the subclass feature for every other control. 

</description>
    <content:encoded><![CDATA[
<p>
What steps will reproduce the problem?
</p>
<ol>
<li class="level1"><div class="li"> Create custom control</div>
</li>
<li class="level1"><div class="li"> Add some text for subclass property</div>
</li>
<li class="level1"><div class="li"> Switch to XRC tab</div>
</li>
<li class="level1"><div class="li"> Verify that custom control has no subclass attribute</div>
</li>
</ol>

<p>
 This is non-intuitive because the user would expect that if data has been entered in the subclass property of the control that it should be present in the output of any format that supports it.  wxFB appears to support the subclass feature for every other control. 
</p>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=451">
    <title>FS#451: app crashes on new form with &#039;BadMatch&#039; X error in kubuntu 9.10</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=451</link>
    <dc:date>2009-12-11T07:15:41Z</dc:date>
    <dc:creator>justin</dc:creator>
    <description>

What steps will reproduce the problem?


 Install wxFormBuilder on Kubuntu 9.10 from repository.

 Run wxFormBuilder.

 Navigate to FORMS tab and select any of the three form types.




 What is the expected output? What do you see instead?

wxFormBuilder immediately crashes regardless of weather the project is saved prior to creating a form or no.  Here are the last few lines of strace including the output error message:


poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}]) writev(10, [{&amp;rdquo;\22\0\7\0\376\5\300\2\366\0\0\0!\0\0\0 \4\7\0\1\0\0\0\1\0\300\2\22 \0\7\0&amp;rdquo;..., 3256}, {NULL, 0}, {&amp;rdquo;&amp;ldquo;, 0}], 3) = 3256 poll([{fd=10, events=POLLIN}], 1, -1)   = 1 ([{fd=10, revents=POLLIN}]) read(10, &amp;ldquo;\34\322\347C\376\5\300\2\22\1\0\0\340&amp;lt;d\27\0\212\270\17\0\0\0\0\20\300 \304\2\0\0\0\0&amp;rdquo;..., 4096) = 544 open(&amp;rdquo;/usr/share/X11/XErrorDB&amp;rdquo;, O_RDONLY) = 11 fstat(11, {st_mode=S_IFREG|0644, st_size=41481, ...}) = 0 brk(0x1dd1000)                          = 0x1dd1000 read(11, &amp;ldquo;! $Xorg: XErrorDB,v 1.3 2000/08/&amp;rdquo;..., 41481) = 41481 close(11)                               = 0 brk(0x1df2000)                          = 0x1df2000 write(2, &amp;ldquo;The program &amp;lsquo;wxformbuilder&amp;rsquo; rece&amp;rdquo;..., 575The program &amp;lsquo;wxformbuilder&amp;rsquo; r eceived an X Window System error. This probably reflects a bug in the program. The error was &amp;lsquo;BadMatch (invalid parameter attributes)&amp;rsquo;.

(Details: serial 17417 error_code 8 request_code 151 minor_code 5)
(Note to programmers: normally, X errors are reported asynchronously;
 that is, you will receive the error a while after causing it.
 To debug your program, run it with the --sync command line
 option to change this behavior. You can then get a meaningful
 backtrace from your debugger if you break on the gdk_x_error() function.)


) = 575 exit_group(1)                           = ?



 No errors were found in the syslog or the Xorg.0.log.  Attached is the xorg.conf for this system.  It&amp;rsquo;s a triple head setup using dual NVIDIA cards and so is using xinerama rather than Xrandr which remains incapable of true triplehead support.  All drivers were installed via standard kubuntu repositories.  All software on the system was installed from the standard and backports repos with the exception of the chromium browser from http://ppa.launchpad.net/chromium-daily/ppa/ubuntu.  At this point wxFormBuilder is unusable as it crashes immediately upon creating a new form.



Please use labels and text to provide additional information. 

</description>
    <content:encoded><![CDATA[
<p>
What steps will reproduce the problem?
</p>
<ol>
<li class="level1"><div class="li"> Install wxFormBuilder on Kubuntu 9.10 from repository.</div>
</li>
<li class="level1"><div class="li"> Run wxFormBuilder.</div>
</li>
<li class="level1"><div class="li"> Navigate to FORMS tab and select any of the three form types.</div>
</li>
</ol>

<p>
 What is the expected output? What do you see instead?
</p>
<pre class="code">wxFormBuilder immediately crashes regardless of weather the project is saved prior to creating a form or no.  Here are the last few lines of strace including the output error message:</pre>

<p>
poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}]) writev(10, [{&rdquo;\22\0\7\0\376\5\300\2\366\0\0\0!\0\0\0 \4\7\0\1\0\0\0\1\0\300\2\22 \0\7\0&rdquo;..., 3256}, {NULL, 0}, {&rdquo;&ldquo;, 0}], 3) = 3256 poll([{fd=10, events=POLLIN}], 1, -1)   = 1 ([{fd=10, revents=POLLIN}]) read(10, &ldquo;\34\322\347C\376\5\300\2\22\1\0\0\340&lt;d\27\0\212\270\17\0\0\0\0\20\300 \304\2\0\0\0\0&rdquo;..., 4096) = 544 open(&rdquo;/usr/share/X11/XErrorDB&rdquo;, O_RDONLY) = 11 fstat(11, {st_mode=S_IFREG|0644, st_size=41481, ...}) = 0 brk(0x1dd1000)                          = 0x1dd1000 read(11, &ldquo;! $Xorg: XErrorDB,v 1.3 2000/08/&rdquo;..., 41481) = 41481 close(11)                               = 0 brk(0x1df2000)                          = 0x1df2000 write(2, &ldquo;The program &lsquo;wxformbuilder&rsquo; rece&rdquo;..., 575The program &lsquo;wxformbuilder&rsquo; r eceived an X Window System error. This probably reflects a bug in the program. The error was &lsquo;BadMatch (invalid parameter attributes)&rsquo;.
</p>
<pre class="code">(Details: serial 17417 error_code 8 request_code 151 minor_code 5)
(Note to programmers: normally, X errors are reported asynchronously;
 that is, you will receive the error a while after causing it.
 To debug your program, run it with the --sync command line
 option to change this behavior. You can then get a meaningful
 backtrace from your debugger if you break on the gdk_x_error() function.)</pre>

<p>
) = 575 exit_group(1)                           = ?
</p>

<p>
 No errors were found in the syslog or the Xorg.0.log.  Attached is the xorg.conf for this system.  It&rsquo;s a triple head setup using dual NVIDIA cards and so is using xinerama rather than Xrandr which remains incapable of true triplehead support.  All drivers were installed via standard kubuntu repositories.  All software on the system was installed from the standard and backports repos with the exception of the chromium browser from <a href="http://ppa.launchpad.net/chromium-daily/ppa/ubuntu" class="urlextern" title="http://ppa.launchpad.net/chromium-daily/ppa/ubuntu">http://ppa.launchpad.net/chromium-daily/ppa/ubuntu</a>.  At this point wxFormBuilder is unusable as it crashes immediately upon creating a new form.
</p>

<p>
Please use labels and text to provide additional information. 
</p>
]]></content:encoded>
  </item>
    <item rdf:about="http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=448">
    <title>FS#448: same event name for different events does not compile using GCC 4.4</title>
    <link>http://issues.wxformbuilder.org/index.php?do=details&amp;task_id=448</link>
    <dc:date>2009-12-04T08:46:14Z</dc:date>
    <dc:creator>Benjamin Knecht</dc:creator>
    <description>

What steps will reproduce the problem? 1. Create two elements (gamma and gradient) in the same frame or panel, with different kind of events (example: a checkbox (commandEvent) and a spinctrl (spinEvent) ) 2. Since you want to update something when either of those values change you call the respective event the same: OnSpinCtrl &amp;rarr; OnChange and OnCheckbox &amp;rarr; OnChange 3. Create C++ Code and compile it using GCC 4.4 (standard compiler on Ubuntu)



What is the expected output? What do you see instead? Expected: Well it should work! Instead GCC 4.4 throws following error: error: invalid static_cast from type ‘&amp;lt;unresolved overloaded function type&amp;gt;’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&amp;amp;)’ or error: invalid static_cast from type ‘&amp;lt;unresolved overloaded function type&amp;gt;’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&amp;amp;)’



for following lines respectively:



gamma&amp;rarr;Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( ImproveContoursSidebar_::OnChange ), NULL, this ); gradient&amp;rarr;Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( ImproveContoursSidebar_::OnChange ), NULL, this );



Problem: The function OnChange is overloaded for either event. Passing the function pointer does not tell the compiler which one of the functions to use. The macros wxSpinEventHandler and wxCommandEventHandler would later cast those function pointers to ‘void (wxEvtHandler::*)(wxSpinEvent&amp;amp;)’ and ‘void (wxEvtHandler::*)(wxCommandEvent&amp;amp;)’ respectively.



Walkarounds: 1. Just rename the events so that there are not two types of events called the same (OnChange &amp;rarr; OnChangeSpin, OnChangeCommand). You can still use the same event name for all the elements that actually use the same type of event. The problem is only occurring when the function is happened to be overloaded.



2. Save the function pointer in a variable first (because then you have to tell the variable what type of function pointer it is) and then pass it. Problem with this walkaround: You cannot use the macros wxSpinEventHandler and wxCommandEventHandler because they take the reference of the passed argument and to save the variable you have to save the reference of the function pointer already and so the macro will create a reference to the reference to the function which will result in another invalid static cast. 

</description>
    <content:encoded><![CDATA[
<p>
What steps will reproduce the problem? 1. Create two elements (gamma and gradient) in the same frame or panel, with different kind of events (example: a checkbox (commandEvent) and a spinctrl (spinEvent) ) 2. Since you want to update something when either of those values change you call the respective event the same: OnSpinCtrl &rarr; OnChange and OnCheckbox &rarr; OnChange 3. Create C++ Code and compile it using GCC 4.4 (standard compiler on Ubuntu)
</p>

<p>
What is the expected output? What do you see instead? Expected: Well it should work! Instead GCC 4.4 throws following error: error: invalid static_cast from type ‘&lt;unresolved overloaded function type&gt;’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&amp;)’ or error: invalid static_cast from type ‘&lt;unresolved overloaded function type&gt;’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&amp;)’
</p>

<p>
for following lines respectively:
</p>

<p>
gamma&rarr;Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( ImproveContoursSidebar_::OnChange ), NULL, this ); gradient&rarr;Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( ImproveContoursSidebar_::OnChange ), NULL, this );
</p>

<p>
Problem: The function OnChange is overloaded for either event. Passing the function pointer does not tell the compiler which one of the functions to use. The macros wxSpinEventHandler and wxCommandEventHandler would later cast those function pointers to ‘void (wxEvtHandler::*)(wxSpinEvent&amp;)’ and ‘void (wxEvtHandler::*)(wxCommandEvent&amp;)’ respectively.
</p>

<p>
Walkarounds: 1. Just rename the events so that there are not two types of events called the same (OnChange &rarr; OnChangeSpin, OnChangeCommand). You can still use the same event name for all the elements that actually use the same type of event. The problem is only occurring when the function is happened to be overloaded.
</p>

<p>
2. Save the function pointer in a variable first (because then you have to tell the variable what type of function pointer it is) and then pass it. Problem with this walkaround: You cannot use the macros wxSpinEventHandler and wxCommandEventHandler because they take the reference of the passed argument and to save the variable you have to save the reference of the function pointer already and so the macro will create a reference to the reference to the function which will result in another invalid static cast. 
</p>
]]></content:encoded>
  </item>
  </rdf:RDF>
