<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>GridTableBase</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello all, </FONT>

<BR><FONT SIZE=2 FACE="Arial">i'm using wxruby 1.9.4&nbsp; with Grid and the model class: &quot;GridTableBase&quot; like in the code below. But the method set_table of the grid does'nt work. Can anyone help me?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">require 'wx' </FONT>

<BR><FONT SIZE=2 FACE="Arial">include Wx </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">class MyGridTableBase&nbsp; &lt; GridTableBase </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; def get_attr row, col, attr_kind </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; ##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; end </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; def get_number_rows </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; 0 </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; end </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; def get_number_cols </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; 0 </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; end </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; def get_col_label_value col </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; return &quot;empty&quot; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; end </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; def is_empty_cell row, col </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; return false&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; end </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; def get_value row, col </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; return &quot;empty&quot; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; end </FONT>

<BR><FONT SIZE=2 FACE="Arial">end </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">g = Grid.new </FONT>

<BR><FONT SIZE=2 FACE="Arial">gt = MyGridTableBase.new </FONT>

<BR><FONT SIZE=2 FACE="Arial">g.set_table gt </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># i get one of this errors: </FONT>

<BR><FONT SIZE=2 FACE="Arial"># TypeError: in method 'SetTable', argument 2 of type 'wxGridTableBase *' </FONT>

<BR><FONT SIZE=2 FACE="Arial"># or a &quot;unknown software exception&quot; (0xc0000094)&nbsp; on 0x030dc124&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is thrown </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Best Regards, </FONT>

<BR><FONT SIZE=2 FACE="Arial">Franz </FONT>
</P>

<pre></PRE><html><P><SPAN style="FONT-SIZE: 8pt"><FONT color=#000000><FONT face=Arial>
This communication and any files or attachments transmitted with it may contain information that is copyrighted or confidential and exempt from <br>  disclosure under applicable law. It is intended solely for the use of the individual or the entity to which it is addressed. <br>
If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited. <br>
If you have received this communication in error, please notify us at once so that we may take the appropriate action and avoid troubling you further. <br> 
Thank you for your cooperation. Please contact your local IT staff or email <a href="mailto:info@siltronic.com?subject=Disclaimer">info@siltronic.com</a> if you need assistance.
<br>&nbsp;<br>
Siltronic AG, Sitz M&uuml;nchen, Hanns-Seidel-Platz 4, 81737 M&uuml;nchen, Germany. Amtsgericht M&uuml;nchen HRB 150884
<br>
Vorstand: Wilhelm Sittenthaler (Vorsitz), Gerhard Brehm, Paul Lindblad, Joachim Manke, Michael Peterat. Vorsitzender des Aufsichtsrats: Peter-Alexander Wacker
</FONT></FONT></SPAN></P></html>
</pre></BODY>
</HTML>