<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14278</id>
	<title>Nabble - wxWidgets</title>
	<updated>2009-12-17T13:14:27Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/wxWidgets-f14278.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxWidgets-f14278.html" />
	<subtitle type="html">wxWidgets gives you a single, easy-to-use API for writing GUI applications on multiple platforms. Link with the appropriate library for your platform (Windows/Unix/Mac, others coming shortly) and compiler (almost any popular C++ compiler), and your application will adopt the look and feel appropriate to that platform. wxWidgets home is &lt;a href=&quot;http://www.wxwidgets.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26835075</id>
	<title>Re: Setting focus to the grid in notebook</title>
	<published>2009-12-17T13:14:27Z</published>
	<updated>2009-12-17T13:14:27Z</updated>
	<author>
		<name>ikorot</name>
	</author>
	<content type="html">Vadim,
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;From: Vadim Zeitlin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26835075&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;Sent: Dec 17, 2009 2:47 AM
&lt;br&gt;&amp;gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26835075&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;Subject: Re: Setting focus to the grid in notebook
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;On Wed, 16 Dec 2009 22:19:12 -0800 (GMT-08:00) &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26835075&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikorot@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have a notebook and one of the pages consist of one grid.
&lt;br&gt;&amp;gt;&amp;gt; What I want to do is when the user changes the page to the one
&lt;br&gt;&amp;gt;&amp;gt; with the grid give focus to the grid.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Normally this should already work. If it doesn't, try also putting this
&lt;br&gt;&amp;gt;grid inside a wxPanel.
&lt;/div&gt;&lt;br&gt;The grid _is_ inside the panel.
&lt;br&gt;Maybe all I need is to use grid without the panel?
&lt;br&gt;&lt;br&gt;But then it does not make sense. In my case there is only grid in the notebook
&lt;br&gt;page, but somebody else might have other contros as well.
&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;VZ
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;-- 
&lt;br&gt;&amp;gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26835075&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-focus-to-the-grid-in-notebook-tp26823738p26835075.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26827523</id>
	<title>Re: wxHTML &amp; wrapping too long words</title>
	<published>2009-12-17T04:46:37Z</published>
	<updated>2009-12-17T04:46:37Z</updated>
	<author>
		<name>Marcus Frenkel</name>
	</author>
	<content type="html">On Mon, Dec 14, 2009 at 11:40 AM, Milan Babuskov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26827523&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;milanb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Marcus Frenkel wrote:
&lt;br&gt;&amp;gt;&amp;gt; I use wxHTML for my simple html needs. wxHTML wraps too long lines in
&lt;br&gt;&amp;gt;&amp;gt; a table cell just fine. However, it breaks the line by the word
&lt;br&gt;&amp;gt;&amp;gt; boundaries only, it never brakes the word no matter how long it is.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It's this exactly how HTML is supposed to work? Does the Firefox break
&lt;br&gt;&amp;gt; words?
&lt;br&gt;&lt;br&gt;Firefox does it when zero-width space characters are used in the html code.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26827523&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxHTML---wrapping-too-long-words-tp26758349p26827523.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826320</id>
	<title>Re[4]: wxActiveX.cpp</title>
	<published>2009-12-17T02:56:37Z</published>
	<updated>2009-12-17T02:56:37Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Thu, 17 Dec 2009 17:40:39 +0800 John Roberts &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826320&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;johnr@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;JR&amp;gt; There are no user accessible controls on the activex control I am 
&lt;br&gt;JR&amp;gt; interfacing with and it just displays a bitmap and some text that may change 
&lt;br&gt;JR&amp;gt; when the control is accessed programmatically. The displayed text is changed 
&lt;br&gt;JR&amp;gt; from the server end. What this means is that even though it works I will 
&lt;br&gt;JR&amp;gt; still get a CHECK_HR(hret) log message after line
&lt;br&gt;JR&amp;gt; 1034 HRESULT hret = cpContainer-&amp;gt;FindConnectionPoint(ta-&amp;gt;guid, cp.GetRef());
&lt;br&gt;JR&amp;gt; hret can be S_OK, CONNECT_E_NOCONNECTION or E_POINTER
&lt;br&gt;JR&amp;gt; It would be good not to get the log message as the control works. If 
&lt;br&gt;JR&amp;gt; CHECK_HR(hret) is removed then E_POINTER probably still needs to be checked 
&lt;br&gt;JR&amp;gt; for.
&lt;br&gt;JR&amp;gt; Any thoughts?
&lt;br&gt;&lt;br&gt;&amp;nbsp;Yes, I guess failing to find any connection points shouldn't be fatal --
&lt;br&gt;all it means is that no events will be generated but it's not always a
&lt;br&gt;problem. If you can make a patch checking for CONNECT_E_NOCONNECTION (this
&lt;br&gt;is better than checking for E_POINTER: we should ignore only the errors we
&lt;br&gt;know about and not everything by default) and handling it specially, I'd be
&lt;br&gt;glad to apply it.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Thanks,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26826320/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxActiveX.cpp-tp26621701p26826320.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826284</id>
	<title>Re: automtn.cpp code</title>
	<published>2009-12-17T02:53:46Z</published>
	<updated>2009-12-17T02:53:46Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Thu, 17 Dec 2009 01:54:51 -0800 (PST) John Roberts &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826284&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;johnr@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;JR&amp;gt; In wxAutomationObject::Invoke(...) excep is passed to
&lt;br&gt;JR&amp;gt; 195 hr = ((IDispatch*)m_dispatchPtr)-&amp;gt;Invoke(dispIds[0], IID_NULL,
&lt;br&gt;JR&amp;gt; LOCALE_SYSTEM_DEFAULT, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(WORD)action, &amp;dispparams,
&lt;br&gt;JR&amp;gt; vReturnPtr, &amp;excep, &amp;uiArgErr);
&lt;br&gt;JR&amp;gt; 
&lt;br&gt;JR&amp;gt; 189 excep.pfnDeferredFillIn is set to NULL which means that excep will
&lt;br&gt;JR&amp;gt; not be changed or filled in the call.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Are you sure about this? I didn't test it but MSDN documentation seems to
&lt;br&gt;say something different, namely that if it is NULL the bstr fields should
&lt;br&gt;be filled immediately rather than deferred until later. This also seems to
&lt;br&gt;make more sense considering the name of the field..
&lt;br&gt;&lt;br&gt;JR&amp;gt; excep.bstrSource etc are
&lt;br&gt;JR&amp;gt; uninitialized. If hr fails and returns a bad parameter etc error then
&lt;br&gt;JR&amp;gt; excep members are freed as per below resulting in a segfault.
&lt;br&gt;JR&amp;gt; 
&lt;br&gt;JR&amp;gt; if (FAILED(hr))
&lt;br&gt;JR&amp;gt; {
&lt;br&gt;JR&amp;gt; 218 &amp;nbsp; SysFreeString(excep.bstrSource);
&lt;br&gt;JR&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SysFreeString(excep.bstrDescription);
&lt;br&gt;JR&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SysFreeString(excep.bstrHelpFile);
&lt;br&gt;JR&amp;gt; }
&lt;br&gt;JR&amp;gt; 
&lt;br&gt;JR&amp;gt; we need
&lt;br&gt;JR&amp;gt; 189 &amp;nbsp; excep.pfnDeferredFillIn = NULL;
&lt;br&gt;JR&amp;gt; 	// initialize the following because they will be freed later if Invoke
&lt;br&gt;JR&amp;gt; (...) fails
&lt;br&gt;JR&amp;gt; 	excep.bstrSource = NULL;
&lt;br&gt;JR&amp;gt; 	excep.bstrDescription = NULL;
&lt;br&gt;JR&amp;gt; 	excep.bstrHelpFile = NULL;
&lt;br&gt;JR&amp;gt; 
&lt;br&gt;JR&amp;gt; Should I submit a patch for this sort of thing.
&lt;br&gt;&lt;br&gt;&amp;nbsp;I fixed this blindly in r62908 but patches are still preferred as, for
&lt;br&gt;one, they ensure the message doesn't get lost/forgotten and they also
&lt;br&gt;ensure that we apply exactly the change which was tested by you.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Thanks,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26826284/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automtn.cpp-code-tp26825636p26826284.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826216</id>
	<title>Re: Setting focus to the grid in notebook</title>
	<published>2009-12-17T02:47:11Z</published>
	<updated>2009-12-17T02:47:11Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Wed, 16 Dec 2009 22:19:12 -0800 (GMT-08:00) &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826216&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikorot@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I have a notebook and one of the pages consist of one grid.
&lt;br&gt;&amp;gt; What I want to do is when the user changes the page to the one
&lt;br&gt;&amp;gt; with the grid give focus to the grid.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Normally this should already work. If it doesn't, try also putting this
&lt;br&gt;grid inside a wxPanel.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26826216/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-focus-to-the-grid-in-notebook-tp26823738p26826216.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825636</id>
	<title>automtn.cpp code</title>
	<published>2009-12-17T01:54:51Z</published>
	<updated>2009-12-17T01:54:51Z</updated>
	<author>
		<name>John Roberts-9</name>
	</author>
	<content type="html">In wxAutomationObject::Invoke(...) excep is passed to
&lt;br&gt;195 hr = ((IDispatch*)m_dispatchPtr)-&amp;gt;Invoke(dispIds[0], IID_NULL,
&lt;br&gt;LOCALE_SYSTEM_DEFAULT, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(WORD)action, &amp;dispparams,
&lt;br&gt;vReturnPtr, &amp;excep, &amp;uiArgErr);
&lt;br&gt;&lt;br&gt;189 excep.pfnDeferredFillIn is set to NULL which means that excep will
&lt;br&gt;not be changed or filled in the call. excep.bstrSource etc are
&lt;br&gt;uninitialized. If hr fails and returns a bad parameter etc error then
&lt;br&gt;excep members are freed as per below resulting in a segfault.
&lt;br&gt;&lt;br&gt;if (FAILED(hr))
&lt;br&gt;{
&lt;br&gt;218 &amp;nbsp; SysFreeString(excep.bstrSource);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SysFreeString(excep.bstrDescription);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SysFreeString(excep.bstrHelpFile);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;we need
&lt;br&gt;189 &amp;nbsp; excep.pfnDeferredFillIn = NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // initialize the following because they will be freed later if Invoke
&lt;br&gt;(...) fails
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; excep.bstrSource = NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; excep.bstrDescription = NULL;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; excep.bstrHelpFile = NULL;
&lt;br&gt;&lt;br&gt;Should I submit a patch for this sort of thing.
&lt;br&gt;Thanks, John
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825636&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automtn.cpp-code-tp26825636p26825636.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825477</id>
	<title>Re: Re[2]: wxActiveX.cpp</title>
	<published>2009-12-17T01:40:39Z</published>
	<updated>2009-12-17T01:40:39Z</updated>
	<author>
		<name>John Roberts-9</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; ----- Original Message ----- 
&lt;br&gt;&amp;gt; From: &amp;quot;Vadim Zeitlin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825477&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825477&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Saturday, December 05, 2009 10:25 PM
&lt;br&gt;&amp;gt; Subject: Re[2]: wxActiveX.cpp
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; VZ &amp;quot;However I couldn't prevent myself from noticing the weird
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; IDispatch* disp;
&lt;br&gt;&amp;gt; m_frameSite-&amp;gt;QueryInterface(IID_IDispatch, (void**)&amp;disp);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; lines in this code. I don't understand what is their purpose (&amp;quot;disp&amp;quot; is
&lt;br&gt;&amp;gt; never used below) and I'm pretty sure we've got a memory leak here because
&lt;br&gt;&amp;gt; Release() is not called even if disp != NULL. Could we just remove these
&lt;br&gt;&amp;gt; lines? As you're using this class already, could you please test if your
&lt;br&gt;&amp;gt; code still works if you do this?&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; JR I had puzzled that &amp;quot;disp&amp;quot; was not used after that. My code fails before 
&lt;br&gt;&amp;gt; that
&lt;br&gt;&amp;gt; at FindConnectionPoint in ConnectionPointContainer despite passing just
&lt;br&gt;&amp;gt; about every ID I found for the control and dispinterface in ms OLE viewer.
&lt;br&gt;&amp;gt; Could be the .net's control's problem. Unfortunately the developers have 
&lt;br&gt;&amp;gt; not
&lt;br&gt;&amp;gt; yet been very responsive as it works when imported into VBasic and C# .net
&lt;br&gt;&amp;gt; though not for C++ even with MS VS9/10.
&lt;br&gt;&amp;gt; I will take a look at it over the next week or two as I get time. I have
&lt;br&gt;&amp;gt; preferred to avoid ActiveX stuff so I am learning as I go.
&lt;br&gt;&amp;gt; Cheers, John
&lt;/div&gt;&lt;br&gt;The ActiveX control that I am working with returns CONNECT_E_NOCONNECTION 
&lt;br&gt;from &amp;nbsp;HRESULT hret = cpContainer-&amp;gt;FindConnectionPoint(ta-&amp;gt;guid, 
&lt;br&gt;cp.GetRef()); so will not go into the line approx 1040 &amp;quot;if(cp)&amp;quot;. So there is 
&lt;br&gt;not connection point and I cannot test whether removing those lines is a 
&lt;br&gt;problem. It is a query directed at the ActiveX container's m_frameSite and 
&lt;br&gt;will presumably err if m_frameSite does not return a IDispatch pointer for 
&lt;br&gt;its own interface to the ActiveX control site. Odd that the returned pointer 
&lt;br&gt;disp is not stored anywhere. Perhaps it is not released because m_frameSite 
&lt;br&gt;is still in use but that doesn't make much sense either.
&lt;br&gt;&lt;br&gt;There are no user accessible controls on the activex control I am 
&lt;br&gt;interfacing with and it just displays a bitmap and some text that may change 
&lt;br&gt;when the control is accessed programmatically. The displayed text is changed 
&lt;br&gt;from the server end. What this means is that even though it works I will 
&lt;br&gt;still get a CHECK_HR(hret) log message after line
&lt;br&gt;1034 HRESULT hret = cpContainer-&amp;gt;FindConnectionPoint(ta-&amp;gt;guid, cp.GetRef());
&lt;br&gt;hret can be S_OK, CONNECT_E_NOCONNECTION or E_POINTER
&lt;br&gt;It would be good not to get the log message as the control works. If 
&lt;br&gt;CHECK_HR(hret) is removed then E_POINTER probably still needs to be checked 
&lt;br&gt;for.
&lt;br&gt;Any thoughts?
&lt;br&gt;Cheers, John 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825477&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxActiveX.cpp-tp26621701p26825477.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825317</id>
	<title>Re: wxRichTextCtrl supporting animation</title>
	<published>2009-12-17T01:28:05Z</published>
	<updated>2009-12-17T01:28:05Z</updated>
	<author>
		<name>Julian Smart</name>
	</author>
	<content type="html">Marcus Frenkel wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are there any plans of supporting/showing animated gifs in wxRichTextCtrl?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;No, but feel free to have a go at this - it shouldn't too difficult. 
&lt;br&gt;Most of the animation code is in a wxAnimation class, so then it'll be a 
&lt;br&gt;case of reproducing the code in wxAnimationCtrl (see 
&lt;br&gt;src/generic/animateg.cpp and src/common/animatecmn.cpp) that zaps the 
&lt;br&gt;frames to the window at intervals. The wxRTC would need to look through 
&lt;br&gt;its images to check which are animations and draw the frames as 
&lt;br&gt;appropriate. The loaded animation would have to be stored in the 
&lt;br&gt;relevant wxRTC object so this means it would probably need to be done in 
&lt;br&gt;2.9 since binary compatibility with 2.8 could not be preserved.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Julian
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825317&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxRichTextCtrl-supporting-animation-tp26808060p26825317.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26823738</id>
	<title>Setting focus to the grid in notebook</title>
	<published>2009-12-16T22:19:12Z</published>
	<updated>2009-12-16T22:19:12Z</updated>
	<author>
		<name>ikorot</name>
	</author>
	<content type="html">Hi, ALL,
&lt;br&gt;I have a notebook and one of the pages consist of one grid.
&lt;br&gt;What I want to do is when the user changes the page to the one
&lt;br&gt;with the grid give focus to the grid.
&lt;br&gt;&lt;br&gt;So I override the page changed event but I have 2 problems.
&lt;br&gt;&lt;br&gt;1. If I just leave the processing to me, the grid won't be painted
&lt;br&gt;on the screen.
&lt;br&gt;2. If I call event.Skip() at the end of processing, the page will
&lt;br&gt;have the focus.
&lt;br&gt;&lt;br&gt;Any idea on how to solve this?\
&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26823738&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-focus-to-the-grid-in-notebook-tp26823738p26823738.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821049</id>
	<title>Re: X over ssh, and wxWidgets 2.9</title>
	<published>2009-12-16T16:17:49Z</published>
	<updated>2009-12-16T16:17:49Z</updated>
	<author>
		<name>Chris Frey-3</name>
	</author>
	<content type="html">Vadim Zeitlin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821049&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Do you use 2.9.0 or trunk? There was a bug fixed in WM-related code which
&lt;br&gt;&amp;gt; happened when using fluxbox so if you're using 2.9.0 upgrading to trunk
&lt;br&gt;&amp;gt; should probably fix it.
&lt;br&gt;&lt;br&gt;I was using 2.9.0. &amp;nbsp;Indeed, I just tested with trunk, and it works fine.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;- Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26821049&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/X-over-ssh%2C-and-wxWidgets-2.9-tp26805404p26821049.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26819070</id>
	<title>Re[2]: X over ssh, and wxWidgets 2.9</title>
	<published>2009-12-16T13:48:33Z</published>
	<updated>2009-12-16T13:48:33Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Wed, 16 Dec 2009 21:40:28 +0000 (UTC) Chris Frey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26819070&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cdfrey@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;CF&amp;gt; When I run under a fluxbox login, only 2.8 works.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Do you use 2.9.0 or trunk? There was a bug fixed in WM-related code which
&lt;br&gt;happened when using fluxbox so if you're using 2.9.0 upgrading to trunk
&lt;br&gt;should probably fix it.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26819070/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/X-over-ssh%2C-and-wxWidgets-2.9-tp26805404p26819070.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818973</id>
	<title>Re: X over ssh, and wxWidgets 2.9</title>
	<published>2009-12-16T13:40:28Z</published>
	<updated>2009-12-16T13:40:28Z</updated>
	<author>
		<name>Chris Frey-3</name>
	</author>
	<content type="html">Vadim Zeitlin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818973&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; CF&amp;gt; such as when using the command 'ssh -Y user@host'.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This definitely works with 2.9, I'm doing it daily. What exactly is the
&lt;br&gt;&amp;gt; problem you encounter?
&lt;br&gt;&lt;br&gt;Hi Vadim,
&lt;br&gt;&lt;br&gt;When I run a 2.9 app, the program seems to run, and then hangs, without
&lt;br&gt;the window ever appearing. &amp;nbsp;I have to Ctrl-C to get out of it.
&lt;br&gt;&lt;br&gt;I ran another test, and when I'm running under a Gnome login, then it
&lt;br&gt;works with both 2.8 and 2.9.
&lt;br&gt;&lt;br&gt;When I run under a fluxbox login, only 2.8 works.
&lt;br&gt;&lt;br&gt;This is all with a local machine, tested like this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Login to Gnome:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ssh -Y -a -2 other@localhost
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./run2.8			# works
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./run2.9			# works
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Login to fluxbox:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ssh -Y -a -2 other@localhost
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./run2.8			# works
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./run2.9			# hang waiting for a window
&lt;br&gt;&lt;br&gt;Is there something I can do to create some debug output that would help?
&lt;br&gt;I'm not that familiar with debugging X protocol / window manager stuff.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;- Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818973&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/X-over-ssh%2C-and-wxWidgets-2.9-tp26805404p26818973.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26814469</id>
	<title>ImportError: DLL load failed in _core_, while launching demo.py</title>
	<published>2009-12-16T08:49:07Z</published>
	<updated>2009-12-16T08:49:07Z</updated>
	<author>
		<name>Richard.Nault</name>
	</author>
	<content type="html">PROBLEM:
&lt;br&gt;ImportError: DLL load failed: %1 is not a valid Win32 application
&lt;br&gt;in _core.py&amp;quot;, line 4, in &amp;lt;module&amp;gt;
&lt;br&gt;while launching &amp;nbsp; &amp;nbsp;python demo.py
&lt;br&gt;&lt;br&gt;NOTE: I just installed wxPython
&lt;br&gt;&lt;br&gt;ENVIRONMENT:
&lt;br&gt;Windows Vista family premium 64-bit, SP2
&lt;br&gt;Python 2.6.1 (r261:67517, Dec &amp;nbsp;4 2008, 16:51:00) [MSC v.1500 32 bit
&lt;br&gt;(Intel)] on win32
&lt;br&gt;I installed
&lt;br&gt;wxPython2.8-win64-unicode-2.8.10.1-py26.exe
&lt;br&gt;in C:\Python26\Lib\site-packages\wx-2.8-msw-unicode\wxPython
&lt;br&gt;and
&lt;br&gt;wxPython2.8-win32-docs-demos-2.8.10.1.exe
&lt;br&gt;in C:\Program Files (x86)\wxPython2.8 Docs and Demos\
&lt;br&gt;&lt;br&gt;I set PYTHONPATH=C:\Python26\Lib\site-packages\wx-2.8-msw-unicode
&lt;br&gt;\wxPython
&lt;br&gt;&lt;br&gt;&lt;br&gt;FULL ERROR MESSAGE:
&lt;br&gt;C:\Program Files (x86)\wxPython2.8 Docs and Demos\demo&amp;gt;python demo.py
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;demo.py&amp;quot;, line 3, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; import Main
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Program Files (x86)\wxPython2.8 Docs and Demos\demo
&lt;br&gt;\Main.py&amp;quot;, line 56
&lt;br&gt;, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; import wx
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
&lt;br&gt;\__init__.py&amp;quot;, line 4
&lt;br&gt;5, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; from wx._core import *
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py&amp;quot;,
&lt;br&gt;line 4, i
&lt;br&gt;n &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; import _core_
&lt;br&gt;ImportError: DLL load failed: %1 n'est pas une application Win32
&lt;br&gt;valide.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26814469&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ImportError%3A-DLL-load-failed-in-_core_%2C-while-launching-demo.py-tp26814469p26814469.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26809782</id>
	<title>Re: Detecting Memory Leaks VS2008</title>
	<published>2009-12-16T03:31:22Z</published>
	<updated>2009-12-16T03:31:22Z</updated>
	<author>
		<name>Kenneth Porter</name>
	</author>
	<content type="html">--On Tuesday, December 15, 2009 5:57 AM -0800 BigPilot 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809782&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bigpilot@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I have used Visual Leak Detector, a free open-source leak detector,
&lt;br&gt;&amp;gt; for years with wxWidgets and Visual C++ and it helped me squash a lot
&lt;br&gt;&amp;gt; of hard-to-find memory leaks. Try it.
&lt;br&gt;&lt;br&gt;Agreed, that's a good one.
&lt;br&gt;&lt;br&gt;For harder to find ones, look at the gflags utility that's part of 
&lt;br&gt;Microsoft's free-to-download debugging tools package. It can change the 
&lt;br&gt;kernel allocation flags so that you get extra guard pages and fast free 
&lt;br&gt;operations, so that any touching of a page after it's freed is immediately 
&lt;br&gt;caught by the hardware.
&lt;br&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809782&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-Memory-Leaks-VS2008-tp26782527p26809782.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808486</id>
	<title>Re[2]: Setting up wxWindows using XRC files?</title>
	<published>2009-12-16T01:32:47Z</published>
	<updated>2009-12-16T01:32:47Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Tue, 15 Dec 2009 13:25:56 -0800 (PST) bobpitbull &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808486&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bobpitbull@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;b&amp;gt; I'm pretty new to wxWidgets, really, so forgive me for this &amp;quot;stupid&amp;quot;
&lt;br&gt;b&amp;gt; question, but... basically... all that I need to tell it to do is to
&lt;br&gt;b&amp;gt; let me split the parent window up into 2 parts - about 40% for left,
&lt;br&gt;b&amp;gt; 60% for right (option = 2 and option = 3?)... then... simply use the
&lt;br&gt;b&amp;gt; full height of the window, if needed, for both - and have vertical and
&lt;br&gt;b&amp;gt; horizontal scrollbars in case things don't fit.
&lt;br&gt;b&amp;gt; 
&lt;br&gt;b&amp;gt; Is this possible through .xrc files?
&lt;br&gt;&lt;br&gt;&amp;nbsp;Yes, of course. Just create a horizontal wxBoxSizer with 2 items with the
&lt;br&gt;proportions 2 and 3, just as you wrote, and wxEXPAND flag. You're probably
&lt;br&gt;just making some mistake in your XML, it's easy to do unfortunately (XML
&lt;br&gt;may have its advantages but being easily human-editable is not one of them).
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26808486/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-wxWindows-using-XRC-files--tp26798140p26808486.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808432</id>
	<title>Re: X over ssh, and wxWidgets 2.9</title>
	<published>2009-12-16T01:28:00Z</published>
	<updated>2009-12-16T01:28:00Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Wed, 16 Dec 2009 02:34:49 +0000 (UTC) Chris Frey &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808432&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cdfrey@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;CF&amp;gt; In testing my application between 2.8 and 2.9, I noticed that under
&lt;br&gt;CF&amp;gt; wxWidgets 2.9, I am unable to run my program over a forwarded X session
&lt;br&gt;CF&amp;gt; such as when using the command 'ssh -Y user@host'.
&lt;br&gt;&lt;br&gt;&amp;nbsp;This definitely works with 2.9, I'm doing it daily. What exactly is the
&lt;br&gt;problem you encounter?
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26808432/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/X-over-ssh%2C-and-wxWidgets-2.9-tp26805404p26808432.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808060</id>
	<title>wxRichTextCtrl supporting animation</title>
	<published>2009-12-16T00:52:07Z</published>
	<updated>2009-12-16T00:52:07Z</updated>
	<author>
		<name>Marcus Frenkel</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Are there any plans of supporting/showing animated gifs in wxRichTextCtrl?
&lt;br&gt;&lt;br&gt;Thx, Marcus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxRichTextCtrl-supporting-animation-tp26808060p26808060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26805404</id>
	<title>X over ssh, and wxWidgets 2.9</title>
	<published>2009-12-15T18:34:49Z</published>
	<updated>2009-12-15T18:34:49Z</updated>
	<author>
		<name>Chris Frey-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I'm hoping someone has run into this issue before.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;In testing my application between 2.8 and 2.9, I noticed that under
&lt;br&gt;wxWidgets 2.9, I am unable to run my program over a forwarded X session
&lt;br&gt;such as when using the command 'ssh -Y user@host'.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Using version 2.8, this works fine.
&lt;br&gt;&lt;br&gt;Is there anything I can do to help debug this?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;- Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26805404&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/X-over-ssh%2C-and-wxWidgets-2.9-tp26805404p26805404.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807948</id>
	<title>Re: Setting up wxWindows using XRC files?</title>
	<published>2009-12-15T16:12:28Z</published>
	<updated>2009-12-15T16:12:28Z</updated>
	<author>
		<name>Anton-31</name>
	</author>
	<content type="html">On 16/12/2009 0:18, bobpitbull wrote:
&lt;br&gt;&amp;gt; I've tried using DialogBlocks to help me with this - but with no
&lt;br&gt;&amp;gt; luck :-( .. anyone got any advice?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;When DialogBlocks tries to import the sample you posted,
&lt;br&gt;it gives an XML parsing error on the opening tag for the wxTreeCtrl
&lt;br&gt;object: the closing bracket of the name attribute is ” instead of &amp;quot;
&lt;br&gt;(unicode right double quotation mark instead of plain quotation
&lt;br&gt;mark). That makes the xml not well-formed.
&lt;br&gt;&lt;br&gt;I think you will get the result you are expecting if you fix that error
&lt;br&gt;and then:
&lt;br&gt;- remove all &amp;lt;size&amp;gt; tags (for the wxTreeCtrl and the wxScrolledWindow)
&lt;br&gt;- use option 2 for the first sizeritem and option 3 for the second, just
&lt;br&gt;&amp;nbsp; &amp;nbsp;like you already suggested yourself
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;Anton
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26807948&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-wxWindows-using-XRC-files--tp26798140p26807948.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803658</id>
	<title>Re: Setting up wxWindows using XRC files?</title>
	<published>2009-12-15T15:18:57Z</published>
	<updated>2009-12-15T15:18:57Z</updated>
	<author>
		<name>bobpitbull</name>
	</author>
	<content type="html">I've tried using DialogBlocks to help me with this - but with no
&lt;br&gt;luck :-( .. anyone got any advice?
&lt;br&gt;&lt;br&gt;On Dec 15, 9:25 pm, bobpitbull &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26803658&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bobpitb...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks for the answer, Vadim.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I usually prefer to code without external tools where I can... but it
&lt;br&gt;&amp;gt; may be useful to use something in this case so that I can see how
&lt;br&gt;&amp;gt; generated .xrc differs from what I have...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm pretty new to wxWidgets, really, so forgive me for this &amp;quot;stupid&amp;quot;
&lt;br&gt;&amp;gt; question, but... basically... all that I need to tell it to do is to
&lt;br&gt;&amp;gt; let me split the parent window up into 2 parts - about 40% for left,
&lt;br&gt;&amp;gt; 60% for right (option = 2 and option = 3?)... then... simply use the
&lt;br&gt;&amp;gt; full height of the window, if needed, for both - and have vertical and
&lt;br&gt;&amp;gt; horizontal scrollbars in case things don't fit.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is this possible through .xrc files? Both my wxTreeCtrl and my panel/
&lt;br&gt;&amp;gt; scrollablewindow/whatever on the right are &amp;quot;dynamic&amp;quot; - they can change
&lt;br&gt;&amp;gt; in total height dependent on what you choose to expand/collapse when
&lt;br&gt;&amp;gt; clicking on them...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for the help,
&lt;br&gt;&amp;gt; Bob
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 15, 9:07 pm, Vadim Zeitlin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26803658&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;va...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Tue, 15 Dec 2009 09:02:16 -0800 (PST) bobpitbull &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26803658&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bobpitb...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; b&amp;gt; I’m trying to set up a very simple window – due to implementation, I
&lt;br&gt;&amp;gt; &amp;gt; b&amp;gt; need to do it through a .xrc file...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;  But you don't need to create XRC file by hand, most people prefer to use a
&lt;br&gt;&amp;gt; &amp;gt; dialog editor for it. Of course, there is absolutely nothing wrong with
&lt;br&gt;&amp;gt; &amp;gt; writing it manually neither, this is what I personally do. But if you don't
&lt;br&gt;&amp;gt; &amp;gt; know the meaning of &amp;quot;option&amp;quot; tag, it's probably better to start
&lt;br&gt;&amp;gt; &amp;gt; experimenting with the GUI tools.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; b&amp;gt; PS. I can’t find any documentation for &amp;lt;option&amp;gt; but it seems to be
&lt;br&gt;&amp;gt; &amp;gt; b&amp;gt; littered all over our codebase... can someone explain what it’s for?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;  The documentation for option itself is at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&quot;http://docs.wxwidgets.org/trunk/overview_xrcformat.html#overview_xrcf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://docs.wxwidgets.org/trunk/overview_xrcformat.html#overview_xrcf&lt;/a&gt;...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; but the meaning of it is found in wxSizer documentation (overview and
&lt;br&gt;&amp;gt; &amp;gt; wxBoxSizer description).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;  Regards,
&lt;br&gt;&amp;gt; &amp;gt; VZ
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;gt; &amp;gt;                &lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;  application_pgp-signature_part
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt; 1KViewDownload
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26803658&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-wxWindows-using-XRC-files--tp26798140p26803658.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26802047</id>
	<title>Re: Setting up wxWindows using XRC files?</title>
	<published>2009-12-15T13:25:56Z</published>
	<updated>2009-12-15T13:25:56Z</updated>
	<author>
		<name>bobpitbull</name>
	</author>
	<content type="html">Thanks for the answer, Vadim.
&lt;br&gt;&lt;br&gt;I usually prefer to code without external tools where I can... but it
&lt;br&gt;may be useful to use something in this case so that I can see how
&lt;br&gt;generated .xrc differs from what I have...
&lt;br&gt;&lt;br&gt;I'm pretty new to wxWidgets, really, so forgive me for this &amp;quot;stupid&amp;quot;
&lt;br&gt;question, but... basically... all that I need to tell it to do is to
&lt;br&gt;let me split the parent window up into 2 parts - about 40% for left,
&lt;br&gt;60% for right (option = 2 and option = 3?)... then... simply use the
&lt;br&gt;full height of the window, if needed, for both - and have vertical and
&lt;br&gt;horizontal scrollbars in case things don't fit.
&lt;br&gt;&lt;br&gt;Is this possible through .xrc files? Both my wxTreeCtrl and my panel/
&lt;br&gt;scrollablewindow/whatever on the right are &amp;quot;dynamic&amp;quot; - they can change
&lt;br&gt;in total height dependent on what you choose to expand/collapse when
&lt;br&gt;clicking on them...
&lt;br&gt;&lt;br&gt;Thanks for the help,
&lt;br&gt;Bob
&lt;br&gt;&lt;br&gt;On Dec 15, 9:07 pm, Vadim Zeitlin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26802047&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;va...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 15 Dec 2009 09:02:16 -0800 (PST) bobpitbull &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26802047&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bobpitb...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; b&amp;gt; I’m trying to set up a very simple window – due to implementation, I
&lt;br&gt;&amp;gt; b&amp;gt; need to do it through a .xrc file...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  But you don't need to create XRC file by hand, most people prefer to use a
&lt;br&gt;&amp;gt; dialog editor for it. Of course, there is absolutely nothing wrong with
&lt;br&gt;&amp;gt; writing it manually neither, this is what I personally do. But if you don't
&lt;br&gt;&amp;gt; know the meaning of &amp;quot;option&amp;quot; tag, it's probably better to start
&lt;br&gt;&amp;gt; experimenting with the GUI tools.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; b&amp;gt; PS. I can’t find any documentation for &amp;lt;option&amp;gt; but it seems to be
&lt;br&gt;&amp;gt; b&amp;gt; littered all over our codebase... can someone explain what it’s for?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  The documentation for option itself is at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://docs.wxwidgets.org/trunk/overview_xrcformat.html#overview_xrcf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://docs.wxwidgets.org/trunk/overview_xrcformat.html#overview_xrcf&lt;/a&gt;...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; but the meaning of it is found in wxSizer documentation (overview and
&lt;br&gt;&amp;gt; wxBoxSizer description).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  Regards,
&lt;br&gt;&amp;gt; VZ
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;gt;                &lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  application_pgp-signature_part
&lt;br&gt;&amp;gt; &amp;lt; 1KViewDownload
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26802047&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-wxWindows-using-XRC-files--tp26798140p26802047.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801862</id>
	<title>Re[4]: wxChoicebook question</title>
	<published>2009-12-15T13:12:23Z</published>
	<updated>2009-12-15T13:12:23Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Tue, 15 Dec 2009 11:22:42 -0300 Javier Urien &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801862&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;personaje@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;JU&amp;gt; On Sat, Dec 12, 2009 at 12:21, Vadim Zeitlin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801862&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;JU&amp;gt; &amp;gt; On Sat, 12 Dec 2009 12:47:53 +0200 Jaakko Salli &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801862&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaakko.salli@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;JU&amp;gt; &amp;gt;
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; Vadim Zeitlin wrote:
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; &amp;gt; On Fri, 11 Dec 2009 18:25:47 -0300 Alejandro Mostovoi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801862&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ahmostovoi@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; &amp;gt;
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; &amp;gt; AM&amp;gt;    Why wxChoicebook::SetImagePage isn't implemented?
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; &amp;gt;
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; &amp;gt;  It's impossible to implement it using a normal wxChoice. I guess we could
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; &amp;gt; use wxComboCtrl which does support images
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt;
&lt;br&gt;JU&amp;gt; &amp;gt; JS&amp;gt; Maybe it would be even better to use wxBitmapComboBox?
&lt;br&gt;JU&amp;gt; &amp;gt;
&lt;br&gt;JU&amp;gt; &amp;gt;  Yes, sorry, this is what I meant, I just wasn't sure about the exact class
&lt;br&gt;JU&amp;gt; &amp;gt; name.
&lt;br&gt;JU&amp;gt; &amp;gt;
&lt;br&gt;JU&amp;gt; &amp;gt;  I'm still not sure if it's worth the trouble though, the icons in the book
&lt;br&gt;JU&amp;gt; &amp;gt; controls are usually used to allow the user to quickly spot the page he
&lt;br&gt;JU&amp;gt; &amp;gt; wants. As all the pages are hidden anyhow in the combobox drop down list,
&lt;br&gt;JU&amp;gt; &amp;gt; it's questionable whether using icons adds anything in this case.
&lt;br&gt;JU&amp;gt; 
&lt;br&gt;JU&amp;gt; Having an assert here is misleading, at least it is not consistent
&lt;br&gt;JU&amp;gt; with itself... under this logic SetImageList should also assert.
&lt;br&gt;&lt;br&gt;&amp;nbsp;I definitely agree with this, if we don't remove this assert we should add
&lt;br&gt;another one there.
&lt;br&gt;&lt;br&gt;JU&amp;gt; I would prefer the wxBitmapComboBox versión, I understand the work vs
&lt;br&gt;JU&amp;gt; benefits and may not be worth it,
&lt;br&gt;&lt;br&gt;&amp;nbsp;Probably not, especially as we'd also need to move wxChoicebook itself to
&lt;br&gt;adv library if we did this because wxBitmapComboBox is not in core.
&lt;br&gt;&lt;br&gt;JU&amp;gt; but removing the assert should be simple enough.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Yes, I've just done it in the trunk (r62895).
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26801862/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxChoicebook-question-tp26751662p26801862.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26801804</id>
	<title>Re: Setting up wxWindows using XRC files?</title>
	<published>2009-12-15T13:07:36Z</published>
	<updated>2009-12-15T13:07:36Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Tue, 15 Dec 2009 09:02:16 -0800 (PST) bobpitbull &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26801804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bobpitbull@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;b&amp;gt; I’m trying to set up a very simple window – due to implementation, I
&lt;br&gt;b&amp;gt; need to do it through a .xrc file...
&lt;br&gt;&lt;br&gt;&amp;nbsp;But you don't need to create XRC file by hand, most people prefer to use a
&lt;br&gt;dialog editor for it. Of course, there is absolutely nothing wrong with
&lt;br&gt;writing it manually neither, this is what I personally do. But if you don't
&lt;br&gt;know the meaning of &amp;quot;option&amp;quot; tag, it's probably better to start
&lt;br&gt;experimenting with the GUI tools.
&lt;br&gt;&lt;br&gt;b&amp;gt; PS. I can’t find any documentation for &amp;lt;option&amp;gt; but it seems to be
&lt;br&gt;b&amp;gt; littered all over our codebase... can someone explain what it’s for?
&lt;br&gt;&lt;br&gt;&amp;nbsp;The documentation for option itself is at
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://docs.wxwidgets.org/trunk/overview_xrcformat.html#overview_xrcformat_sizers&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://docs.wxwidgets.org/trunk/overview_xrcformat.html#overview_xrcformat_sizers&lt;/a&gt;&lt;br&gt;&lt;br&gt;but the meaning of it is found in wxSizer documentation (overview and
&lt;br&gt;wxBoxSizer description).
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26801804/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-wxWindows-using-XRC-files--tp26798140p26801804.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26798140</id>
	<title>Setting up wxWindows using XRC files?</title>
	<published>2009-12-15T09:02:16Z</published>
	<updated>2009-12-15T09:02:16Z</updated>
	<author>
		<name>bobpitbull</name>
	</author>
	<content type="html">Hey All,
&lt;br&gt;&lt;br&gt;I’m trying to set up a very simple window – due to implementation, I
&lt;br&gt;need to do it through a .xrc file...
&lt;br&gt;&lt;br&gt;What I want is to have a wxTreeCtrl on the left side of the window
&lt;br&gt;(non-editable) and a scrollable (editable part) on the right side...
&lt;br&gt;&lt;br&gt;Right now here’s what I have:-
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;object class=&amp;quot;wxPanel&amp;quot; name=&amp;quot;ID_PANEL_MYBROWSER&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;My Browser&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;object class=&amp;quot;wxBoxSizer&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;orient&amp;gt;wxHORIZONTAL&amp;lt;/orient&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;object class=&amp;quot;sizeritem&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;flag&amp;gt;wxGROW|wxALL&amp;lt;/flag&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option&amp;gt;1&amp;lt;/option&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;object class=&amp;quot;wxTreeCtrl&amp;quot; name=&amp;quot;IDTC_MyTreeControl”&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;size&amp;gt;300,1000&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;style&amp;gt;wxTR_HAS_BUTTONS|wxTR_ROW_LINES|wxTR_MULTIPLE&amp;lt;/
&lt;br&gt;style&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/object&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/object&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;object class=&amp;quot;sizeritem&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;flag&amp;gt;wxGROW|wxALL&amp;lt;/flag&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;option&amp;gt;1&amp;lt;/option&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;object class=&amp;quot;wxScrolledWindow&amp;quot; name=&amp;quot;IDSW_PROPERTIES&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;size&amp;gt;450,1000&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;style&amp;gt;wxHSCROLL|wxVSCROLL&amp;lt;/style&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/object&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/object&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/object&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/object&amp;gt;
&lt;br&gt;&lt;br&gt;The RHS of the window is completely wrong ... it’s offsetting the
&lt;br&gt;ScrolledWindow portion such that, when the window first appears, it’s
&lt;br&gt;nearly off screen...? So there’s just a large, blank area to the right
&lt;br&gt;of my tree control...
&lt;br&gt;&lt;br&gt;Can anyone advise on the correct way to setup the sizing? And anything
&lt;br&gt;else wrong with the above..?
&lt;br&gt;&lt;br&gt;Robert
&lt;br&gt;&lt;br&gt;PS. I can’t find any documentation for &amp;lt;option&amp;gt; but it seems to be
&lt;br&gt;littered all over our codebase... can someone explain what it’s for?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26798140&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-up-wxWindows-using-XRC-files--tp26798140p26798140.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795594</id>
	<title>Re: Re[2]: wxChoicebook question</title>
	<published>2009-12-15T06:22:42Z</published>
	<updated>2009-12-15T06:22:42Z</updated>
	<author>
		<name>personaje</name>
	</author>
	<content type="html">On Sat, Dec 12, 2009 at 12:21, Vadim Zeitlin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795594&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, 12 Dec 2009 12:47:53 +0200 Jaakko Salli &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795594&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaakko.salli@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; JS&amp;gt; Vadim Zeitlin wrote:
&lt;br&gt;&amp;gt; JS&amp;gt; &amp;gt; On Fri, 11 Dec 2009 18:25:47 -0300 Alejandro Mostovoi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795594&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ahmostovoi@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; JS&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; JS&amp;gt; &amp;gt; AM&amp;gt;    Why wxChoicebook::SetImagePage isn't implemented?
&lt;br&gt;&amp;gt; JS&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; JS&amp;gt; &amp;gt;  It's impossible to implement it using a normal wxChoice. I guess we could
&lt;br&gt;&amp;gt; JS&amp;gt; &amp;gt; use wxComboCtrl which does support images
&lt;br&gt;&amp;gt; JS&amp;gt;
&lt;br&gt;&amp;gt; JS&amp;gt; Maybe it would be even better to use wxBitmapComboBox?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  Yes, sorry, this is what I meant, I just wasn't sure about the exact class
&lt;br&gt;&amp;gt; name.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  I'm still not sure if it's worth the trouble though, the icons in the book
&lt;br&gt;&amp;gt; controls are usually used to allow the user to quickly spot the page he
&lt;br&gt;&amp;gt; wants. As all the pages are hidden anyhow in the combobox drop down list,
&lt;br&gt;&amp;gt; it's questionable whether using icons adds anything in this case.
&lt;/div&gt;&lt;br&gt;Having an assert here is misleading, at least it is not consistent
&lt;br&gt;with itself... under this logic SetImageList should also assert.
&lt;br&gt;&lt;br&gt;I would prefer the wxBitmapComboBox versión, I understand the work vs
&lt;br&gt;benefits and may not be worth it, but removing the assert should be
&lt;br&gt;simple enough.
&lt;br&gt;&lt;br&gt;Regards.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795594&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxChoicebook-question-tp26751662p26795594.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795466</id>
	<title>Re: Detecting Memory Leaks VS2008</title>
	<published>2009-12-15T06:13:35Z</published>
	<updated>2009-12-15T06:13:35Z</updated>
	<author>
		<name>Mark Erbaugh</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On Dec 15, 2009, at 8:57 AM, BigPilot wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; &quot;&gt;I have used Visual Leak Detector, a free open-source leak detector,&lt;br&gt;for years with wxWidgets and Visual C++ and it helped me squash a lot&lt;br&gt;of hard-to-find memory leaks. Try it.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.codeproject.com/KB/applications/visualleakdetector.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codeproject.com/KB/applications/visualleakdetector.aspx&lt;/a&gt;&lt;br&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks,&lt;/div&gt;&lt;div&gt;Mark&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;

&lt;p&gt;&lt;/p&gt;

-- &lt;br /&gt;
Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt; before posting.&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795466&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;&lt;br /&gt;
or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-Memory-Leaks-VS2008-tp26782527p26795466.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26795217</id>
	<title>Re: Detecting Memory Leaks VS2008</title>
	<published>2009-12-15T05:57:28Z</published>
	<updated>2009-12-15T05:57:28Z</updated>
	<author>
		<name>BigPilot</name>
	</author>
	<content type="html">&lt;br&gt;On Dec 14, 7:32 pm, Mark Erbaugh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795217&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I'm using MS VS2008 Express edition on Windows XP. I originally compiled wxWidgets 2.8.10 with the recommended 0 for wxUSE_DEBUG_CONTEXT, wxUSE_MEMORY_TRACING, wxGLOBAL_MEMORY_OPERATORS and wsUSE_DEBUG_NEW_ALWAYS. When I had memory allocation problems in my program, VS would report memory leaks although, the memory dump it gave wasn't very helpful in determining where the problem was.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I read the section on Detecting Memory Leaks and Other Errors in &amp;quot;Cross Platform GUI Programming with wxWidgets&amp;quot; (page 416 in my copy). &amp;gt;It mentioned setting the above constants to 1. I rebuilt the debug version of wxWidgets with those settings and ran a program with &amp;gt;deliberate memory leaks (I removed the code that deleted some objects that were created with new) in VS. It reported the memory leaks, &amp;gt;but didn't give the details of the type of object and program location as shown in the book.
&lt;br&gt;&lt;br&gt;I have used Visual Leak Detector, a free open-source leak detector,
&lt;br&gt;for years with wxWidgets and Visual C++ and it helped me squash a lot
&lt;br&gt;of hard-to-find memory leaks. Try it.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.codeproject.com/KB/applications/visualleakdetector.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codeproject.com/KB/applications/visualleakdetector.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26795217&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-Memory-Leaks-VS2008-tp26782527p26795217.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26792416</id>
	<title>Re[2]: about wxdfb</title>
	<published>2009-12-15T02:07:43Z</published>
	<updated>2009-12-15T02:07:43Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Tue, 15 Dec 2009 10:00:23 +0100 haithem rahmani &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26792416&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;haithem.rahmani@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;hr&amp;gt; &amp;gt; &amp;nbsp;However now that wxWindow (and wxTLW) are implemented, I don't really
&lt;br&gt;hr&amp;gt; &amp;gt; think we want to change the code to use it any more. Or am I missing
&lt;br&gt;hr&amp;gt; &amp;gt; something that it does and wxDFB doesn't support?
&lt;br&gt;hr&amp;gt; &amp;gt;
&lt;br&gt;hr&amp;gt; I think yes since LiTe is &amp;quot;Lite is a ToolKit Engine&amp;quot; it is implenting
&lt;br&gt;hr&amp;gt; quite all widgets needed by wxWidget,
&lt;br&gt;&lt;br&gt;&amp;nbsp;Ah, I didn't realize this. I couldn't (and still can't) access
&lt;br&gt;www.directfb.org so I just saw a brief description of LITE in Google cache.
&lt;br&gt;&lt;br&gt;hr&amp;gt; I think LiTE can provide all missing features, but I Don't know how
&lt;br&gt;hr&amp;gt; difficut it would be to use it inside wxdfb.
&lt;br&gt;&lt;br&gt;&amp;nbsp;It would basically mean creating another port on top of the existing
&lt;br&gt;wxDFB. E.g. you have wxX11 (using wxUniversal) and wxGTK which also uses
&lt;br&gt;X11 but uses GTK+ for the widgets. In the same way you could have wxDFB
&lt;br&gt;with wxUniversal and wxLITE reusing some of wxDFB code but using &amp;quot;native&amp;quot;
&lt;br&gt;widgets. This will definitely require quite some work.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26792416/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/about-wxdfb-tp26775796p26792416.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26791660</id>
	<title>Re: about wxdfb</title>
	<published>2009-12-15T01:00:23Z</published>
	<updated>2009-12-15T01:00:23Z</updated>
	<author>
		<name>rmh</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;br&gt;
 However now that wxWindow (and wxTLW) are implemented, I don&amp;#39;t really&lt;br&gt;
think we want to change the code to use it any more. Or am I missing&lt;br&gt;
something that it does and wxDFB doesn&amp;#39;t support?&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt; I think yes since LiTe is &amp;quot;Lite is a ToolKit Engine&amp;quot; it is implenting&lt;/div&gt;&lt;div&gt;quite all widgets needed by wxWidget, if you look in the file box.h you&amp;#39;ll find :&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
&lt;div&gt;typedef enum {&lt;/div&gt;&lt;div&gt;  LITE_TYPE_WINDOW                       = 0x1000,&lt;/div&gt;&lt;div&gt;  LITE_TYPE_WINDOW_USER            = 0x2000,         &lt;/div&gt;&lt;div&gt;  LITE_TYPE_BOX                               = 0x8000,&lt;/div&gt;&lt;div&gt;
  LITE_TYPE_BUTTON                         = 0x8001,   &lt;/div&gt;&lt;div&gt;  LITE_TYPE_ANIMATION                   = 0x8002, &lt;/div&gt;&lt;div&gt;  LITE_TYPE_IMAGE                          = 0x8003, &lt;/div&gt;&lt;div&gt;  LITE_TYPE_LABEL                          = 0x8004, &lt;/div&gt;
&lt;div&gt;  LITE_TYPE_SLIDER                         = 0x8005,&lt;/div&gt;&lt;div&gt;  LITE_TYPE_TEXTLINE                      = 0x8006,&lt;/div&gt;&lt;div&gt;  LITE_TYPE_PROGRESSBAR           = 0x8007, &lt;/div&gt;&lt;div&gt;  LITE_TYPE_TEXT_BUTTON              = 0x8008, &lt;/div&gt;
&lt;div&gt;  LITE_TYPE_CHECK                         = 0x8009, &lt;/div&gt;&lt;div&gt;  LITE_TYPE_SCROLLBAR                 = 0x800A,&lt;/div&gt;&lt;div&gt;  LITE_TYPE_LIST                              = 0x800B,&lt;/div&gt;&lt;div&gt;  LITE_TYPE_BOX_USER                   = 0x9000,&lt;/div&gt;
&lt;div&gt;  LITE_TYPE_HANTEXTLINE               = 0xF000, &lt;/div&gt;&lt;div&gt;} LiteBoxType;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;LiTE also provides event handling API. &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I think LiTE can provide all missing features, but I Don&amp;#39;t know how &lt;/div&gt;
&lt;div&gt;difficut it would be to use it inside wxdfb.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;regards &lt;/div&gt;&lt;div&gt;Haithem&lt;/div&gt;-- &lt;br&gt; Say: He is God, the One and Only;&lt;br&gt; God, the Eternal, Absolute;&lt;br&gt; He begetteth not, nor is He begotten;&lt;br&gt;
 And there is none like unto Him.&lt;br&gt;
&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

-- &lt;br /&gt;
Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt; before posting.&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26791660&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;&lt;br /&gt;
or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/about-wxdfb-tp26775796p26791660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26791084</id>
	<title>Re: Changing a dot into a comma in an OnChar event</title>
	<published>2009-12-15T00:03:54Z</published>
	<updated>2009-12-15T00:03:54Z</updated>
	<author>
		<name>Fulvio Senore</name>
	</author>
	<content type="html">Vadim Zeitlin ha scritto:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 14 Dec 2009 20:41:00 +0100 Fulvio Senore &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26791084&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailing@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; FS&amp;gt; Thank you for your answer. I considered EmulateKeyPress() but the 
&lt;br&gt;&amp;gt; FS&amp;gt; documentation says that it only works in Windows, so I did not even try it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;It says that it doesn't work correctly for all keys except under Windows
&lt;br&gt;&amp;gt; because it's basically implemented as WriteText(event.GetKeyCode()) for the
&lt;br&gt;&amp;gt; other platforms (with a few exceptions, see src/common/textcmn.cpp). I.e.
&lt;br&gt;&amp;gt; it already does what you wanted to do manually (or at least is supposed to,
&lt;br&gt;&amp;gt; let us know if you find any bugs).
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Thank you for pointing me to that code. Since my needs are very limited 
&lt;br&gt;(change a dot to a comma in the OnChar() handler) I simply used 
&lt;br&gt;WriteText() to directly write the comma to the text control, and it works.
&lt;br&gt;&lt;br&gt;Fulvio
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26791084&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-a-dot-into-a-comma-in-an-OnChar-event-tp26777777p26791084.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26790963</id>
	<title>Re: Program Segfaulting</title>
	<published>2009-12-14T23:52:29Z</published>
	<updated>2009-12-14T23:52:29Z</updated>
	<author>
		<name>Tim-447</name>
	</author>
	<content type="html">Hi Polymath,
&lt;br&gt;&lt;br&gt;I think you haven't moved everything from the wxApp to the wxFrame, so the callbacks are having trouble.
&lt;br&gt;&lt;br&gt;For example, you have these two callbacks
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; QuitButton-&amp;gt;Connect(wxID_EXIT, wxEVT_COMMAND_BUTTON_CLICKED,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wxCommandEventHandler(MandelbrotApp::OnQuit));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; GenerateButton-&amp;gt;Connect(wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wxCommandEventHandler(MandelbrotApp::OnGenerate));
&lt;br&gt;&lt;br&gt;The button sits on the panel. &amp;nbsp;The panel sits on the frame. &amp;nbsp;The frame has no parent. &amp;nbsp;So the button callback should be handled by one of the windows in that heirarchy: &amp;nbsp;either the button, the panel or the frame. &amp;nbsp;The app is not a window and cannot receive the callback and I think that is why it abruptly crashes.
&lt;br&gt;&lt;br&gt;Why are you calling the Connect() function directly? &amp;nbsp;Usually this is done through a set of macros like this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;BEGIN_EVENT_TABLE(MyFrame, wxFrame)
&lt;br&gt;&amp;nbsp; &amp;nbsp; EVT_MENU(ID_Quit, &amp;nbsp;MyFrame::OnQuit)
&lt;br&gt;&amp;nbsp; &amp;nbsp; EVT_MENU(ID_About, MyFrame::OnAbout)
&lt;br&gt;&amp;nbsp; &amp;nbsp;END_EVENT_TABLE()
&lt;br&gt;&lt;br&gt;Just about all of the examples use this type of an EVENT_TABLE and I think it does some error checking for you. &amp;nbsp;Did you find some other example which calls Connect() directly which you liked better?
&lt;br&gt;&lt;br&gt;Here is what I recommend.
&lt;br&gt;&lt;br&gt;&amp;nbsp; a) Make another class MandlebrotFrame which inherits from wxFrame
&lt;br&gt;&lt;br&gt;&amp;nbsp; b) Move all of the callbacks and pointers from class MandlebrotApp to MandlebrotFrame
&lt;br&gt;&lt;br&gt;&amp;nbsp; c) In MandlebrotApp::OnInit create and show the frame. &amp;nbsp;All of the other stuff should be move to the constructor for MandlebrotFrame
&lt;br&gt;&lt;br&gt;&amp;nbsp; d) RefreshSize, DrawMandlebrot, OnQuit, OnGenerate, GenerateDialog should be in class MandelbrotFrame not MandlebrotApp
&lt;br&gt;&lt;br&gt;&amp;nbsp; e) Currently nothing in your program calls DrawMandlebrot. &amp;nbsp;I think maybe it should be called when someone clicks OK in OnGenerate?
&lt;br&gt;&lt;br&gt;&amp;nbsp; f) In OnGenerate, you have this-&amp;gt;OnQuit(event); which causes the App to quit if cancel is pushed on GenerateDialog. &amp;nbsp;That seems incorrect.
&lt;br&gt;&lt;br&gt;&amp;nbsp; g) You will need an OnPaint() method to redraw areas when the user moves a window in front of your window. &amp;nbsp;More info below. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Now take a look at samples/drawing/drawing.cpp to see some of these concepts. &amp;nbsp;I'll use the same letters as above to indicate what I'm talking about.
&lt;br&gt;&lt;br&gt;&amp;nbsp; a) See how MyFrame inherits from wxFrame
&lt;br&gt;&lt;br&gt;&amp;nbsp; b) Note that MyApp has no child windows and very few functions. &amp;nbsp;All of the callbacks are in the two other classes MyFrame and MyCanvas both of which are windows because they inherit from classes that inherit from wxWindow
&lt;br&gt;&lt;br&gt;&amp;nbsp; c) Note how short MyApp:OnInit is. &amp;nbsp;Yours should be just as short, creating the top level window. &amp;nbsp;Now compare to the constructor MyFrame::MyFrame. &amp;nbsp;Lots of UI stuff is created in that constructor for MyFrame
&lt;br&gt;&lt;br&gt;&amp;nbsp; d) Note that all of the window callbacks are in MyFrame or MyCanvas, not in MyApp::OnInit. &amp;nbsp;So the window callbacks will go to the the window in which it occurred or to it's parent window. &amp;nbsp;None of the callbacks go to the application wxApp.
&lt;br&gt;&lt;br&gt;&amp;nbsp; g) follow the model in MyCanvas::OnPaint. &amp;nbsp;OnPaint fixes your drawing if any of these things occur: &amp;nbsp;Another window comes in front and obscures it, the window gets minimized, half of the window goes offscreen. &amp;nbsp;When you use buttons, menus, and lists, those things are smart enough to redraw themselves. &amp;nbsp;However, if you use pens and brushes (which you are doing) then you need to redraw those lines yourself anytime they get overwritten by another window. &amp;nbsp;That is the purpose of the OnPaint callback.
&lt;br&gt;&lt;br&gt;Note that MyFrame and MyCanvas both have BEGIN_EVENT_TABLE, but MyApp does not.
&lt;br&gt;&lt;br&gt;Now go look at samples/image/image.cpp
&lt;br&gt;&lt;br&gt;It has the same concepts: &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; MyCanvas is a window because it inherits from wxScrolledWindow
&lt;br&gt;&amp;nbsp; &amp;nbsp; MyFrame is a window because it inherits from wxFrame which is a window
&lt;br&gt;&amp;nbsp; &amp;nbsp; MyImageFrame is a window because it inherits from wxFrame which is a window
&lt;br&gt;&amp;nbsp; &amp;nbsp; MyApp is not a window, it inherits from wxApp
&lt;br&gt;&amp;nbsp; &amp;nbsp; You can find one BEGIN_EVENT_TABLE per Window.
&lt;br&gt;&amp;nbsp; &amp;nbsp; MyApp does not have a BEGIN_EVENT_TABLE because it is not a window
&lt;br&gt;&amp;nbsp; &amp;nbsp; Each window has an OnPaint() callback so it can redraw itself when it because corrupted by another window.
&lt;br&gt;&lt;br&gt;Hopefully those two examples image/image.cpp and drawing/drawing.cpp will help you see what you need to change.
&lt;br&gt;&lt;br&gt;Tim
&lt;br&gt;&lt;br&gt;--- On Sun, 12/13/09, polymath &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790963&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rbmj@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: polymath &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790963&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rbmj@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: Re: Program Segfaulting
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790963&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Sunday, December 13, 2009, 4:37 PM
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank You! I knew it was something I had forgotten to do- I
&lt;br&gt;&amp;gt; concentrated so
&lt;br&gt;&amp;gt; much on implementation and didn't remember to make a
&lt;br&gt;&amp;gt; frame.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, now i have another small problem.  I added a
&lt;br&gt;&amp;gt; wxFrame* frame to my
&lt;br&gt;&amp;gt; wxApp class, and the main window works, but when i click
&lt;br&gt;&amp;gt; either button, it
&lt;br&gt;&amp;gt; segfaults.  I put a breakpoint in the OnQuit handler,
&lt;br&gt;&amp;gt; and it got there, so
&lt;br&gt;&amp;gt; the problem is in the statement
&lt;br&gt;&amp;gt; frame-&amp;gt;Close(true);  The backtrace confirms
&lt;br&gt;&amp;gt; this, but i'm not exactly sure what it says (mainly a bunch
&lt;br&gt;&amp;gt; of GTK gunk)-
&lt;br&gt;&amp;gt; all i know is that the last called function was Close() and
&lt;br&gt;&amp;gt; before that is
&lt;br&gt;&amp;gt; my OnQuit handler, so its something in the Close
&lt;br&gt;&amp;gt; function.  
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The same happens with the Generate button. THe backtrace
&lt;br&gt;&amp;gt; says that the last
&lt;br&gt;&amp;gt; called function was wxGetTopLevelParent(wxWindow*), which
&lt;br&gt;&amp;gt; was inside
&lt;br&gt;&amp;gt; wxTopLevelDialogGTK::Create, which was called because of
&lt;br&gt;&amp;gt; wxDialog::Create. 
&lt;br&gt;&amp;gt; wxDialog::Create is part of the constructor for wxDialog,
&lt;br&gt;&amp;gt; so i guess i'm not
&lt;br&gt;&amp;gt; calling the constructor correctly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I call the wxDialog Constructor like this: new
&lt;br&gt;&amp;gt; wxDialog(frame, wxID_ANY,
&lt;br&gt;&amp;gt; wxT(&amp;quot;Generate&amp;quot;));
&lt;br&gt;&amp;gt; and frame was constructed with new wxFrame(NULL, wxID_ANY,
&lt;br&gt;&amp;gt; wxT(&amp;quot;Mandelbrot
&lt;br&gt;&amp;gt; Generator&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I see two possible screwups here.  One, i can't use
&lt;br&gt;&amp;gt; wxID_ANY twice.  THough
&lt;br&gt;&amp;gt; i don't *think* this is the case, it might be.  On the
&lt;br&gt;&amp;gt; other hand, frame is
&lt;br&gt;&amp;gt; the same frame used to display the main interface.  So
&lt;br&gt;&amp;gt; maybe i can't
&lt;br&gt;&amp;gt; Show()/ShowModal() two things at once, i.e. i would have to
&lt;br&gt;&amp;gt; either create a
&lt;br&gt;&amp;gt; new frame for the dialog or hide the existing window until
&lt;br&gt;&amp;gt; the dialog
&lt;br&gt;&amp;gt; completes.  I really don't know how to solve either
&lt;br&gt;&amp;gt; problem, much less if
&lt;br&gt;&amp;gt; one of these is even the actual problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If its useful, my updated source is attatched (but its
&lt;br&gt;&amp;gt; almost the same as
&lt;br&gt;&amp;gt; the old source, just added the frame).  
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/file/p26767527/mandelbrot_graphics.cpp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/file/p26767527/mandelbrot_graphics.cpp&lt;/a&gt;&lt;br&gt;&amp;gt; mandelbrot_graphics.cpp 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks again!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Polymath,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You are casting an wxApp to a wxWindow but they are the
&lt;br&gt;&amp;gt; same thing.
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; I think if you create a frame, set it as your top window,
&lt;br&gt;&amp;gt; and put your
&lt;br&gt;&amp;gt; widgets on this frame, it will fix the problems you are
&lt;br&gt;&amp;gt; seeing and you won't
&lt;br&gt;&amp;gt; need any casts.  Look at how the samples do this or
&lt;br&gt;&amp;gt; read this:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.wxwidgets.org/docs/tutorials/hello.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/docs/tutorials/hello.htm&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Tim
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Program-Segfaulting-tp26760885p26767527.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Program-Segfaulting-tp26760885p26767527.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the wxWidgets - Users mailing list archive at
&lt;br&gt;&amp;gt; Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before
&lt;br&gt;&amp;gt; posting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790963&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26790963&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Program-Segfaulting-tp26760885p26790963.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26788081</id>
	<title>RE: Re[12]: wxStaticText stops displaying text after tab character</title>
	<published>2009-12-14T17:36:26Z</published>
	<updated>2009-12-14T17:36:26Z</updated>
	<author>
		<name>HighCommander4</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26788081&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ikorot@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi, (Nathan, Vadim),
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;From: Nathan Ridge 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;snip&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;I was not able to figure out how to get GetTabbedTextExtent()
&lt;br&gt;&amp;gt;&amp;gt;to use the same tab spacing as TextOut(), so I implemented
&lt;br&gt;&amp;gt;&amp;gt;your suggested manual solution. Here's the patch against
&lt;br&gt;&amp;gt;&amp;gt;the original dc.cpp:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;diff -u -b dc.cpp.orig dc.cpp
&lt;br&gt;&amp;gt;&amp;gt;--- dc.cpp.orig Mon Dec 14 16:42:01 2009
&lt;br&gt;&amp;gt;&amp;gt;+++ dc.cpp Mon Dec 14 17:45:25 2009
&lt;br&gt;&amp;gt;&amp;gt;@@ -42,6 +42,7 @@
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;quot;wx/sysopt.h&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;quot;wx/dynlib.h&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;+#include &amp;quot;wx/tokenzr.h&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #ifdef wxHAVE_RAW_BITMAP
&lt;br&gt;&amp;gt;&amp;gt; #include &amp;quot;wx/rawbmp.h&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;@@ -1769,6 +1770,61 @@
&lt;br&gt;&amp;gt;&amp;gt; wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;+ // The width of strings containing tabs needs to be treated specially
&lt;br&gt;&amp;gt;&amp;gt;+ // because GetTextExtentPoint32() does not handle tabs correctly.
&lt;br&gt;&amp;gt;&amp;gt;+ if ( string.Find('\t') != wxNOT_FOUND )
&lt;br&gt;&amp;gt;&amp;gt;+ {
&lt;br&gt;&amp;gt;&amp;gt;+ // Note: while there is a GetTabbedTextExtent() API, it does
&lt;br&gt;&amp;gt;&amp;gt;+ // not appear to handle tabs correctly either, so we need to do
&lt;br&gt;&amp;gt;&amp;gt;+ // some manual computation.
&lt;br&gt;&amp;gt;&amp;gt;+
&lt;br&gt;&amp;gt;&amp;gt;+ // Compute the average character width.
&lt;br&gt;&amp;gt;&amp;gt;+ // Tab stop positions are multiples of 8 of this.
&lt;br&gt;&amp;gt;&amp;gt;+ // Note: this computation cannot be done just once in advance because
&lt;br&gt;&amp;gt;&amp;gt;+ // the font may change, giving a different answer.
&lt;br&gt;&amp;gt;&amp;gt;+ static wxString allChars = &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;+ &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;;
&lt;br&gt;&amp;gt;&amp;gt;+ const size_t allCharsLen = allChars.length();
&lt;br&gt;&amp;gt;&amp;gt;+ SIZE allCharsSizeRect;
&lt;br&gt;&amp;gt;&amp;gt;+ if ( !::GetTextExtentPoint32(GetHdc(), allChars, allCharsLen,
&lt;br&gt;&amp;gt;&amp;gt;+ &amp;allCharsSizeRect) )
&lt;br&gt;&amp;gt;&amp;gt;+ {
&lt;br&gt;&amp;gt;&amp;gt;+ wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;&amp;gt;&amp;gt;+ }
&lt;br&gt;&amp;gt;&amp;gt;+ DWORD avgCharWidth = allCharsSizeRect.cx / allCharsLen;
&lt;br&gt;&amp;gt;&amp;gt;+ DWORD tabWidth = avgCharWidth * 8;
&lt;br&gt;&amp;gt;&amp;gt;+
&lt;br&gt;&amp;gt;&amp;gt;+ // Split the string into chunks separated by tabs,
&lt;br&gt;&amp;gt;&amp;gt;+ // and add up the widths the chunks plus the tabs
&lt;br&gt;&amp;gt;&amp;gt;+ // betweent them.
&lt;br&gt;&amp;gt;&amp;gt;+ // Note: we use wxTOKEN_RET_EMPTY_ALL while tokenizing so that
&lt;br&gt;&amp;gt;&amp;gt;+ // multiple consecutive tabs and trailing tabs are handled correctly.
&lt;br&gt;&amp;gt;&amp;gt;+ DWORD width = 0;
&lt;br&gt;&amp;gt;&amp;gt;+ wxStringTokenizer tokenizer(string, '\t', wxTOKEN_RET_EMPTY_ALL);
&lt;br&gt;&amp;gt;&amp;gt;+ while ( tokenizer.HasMoreTokens() )
&lt;br&gt;&amp;gt;&amp;gt;+ {
&lt;br&gt;&amp;gt;&amp;gt;+ // Compute width of token.
&lt;br&gt;&amp;gt;&amp;gt;+ SIZE tokenSizeRect;
&lt;br&gt;&amp;gt;&amp;gt;+ wxString token = tokenizer.GetNextToken();
&lt;br&gt;&amp;gt;&amp;gt;+ const size_t tokenLen = token.length();
&lt;br&gt;&amp;gt;&amp;gt;+ if ( !::GetTextExtentPoint32(GetHdc(), token, tokenLen,
&lt;br&gt;&amp;gt;&amp;gt;+ &amp;tokenSizeRect) )
&lt;br&gt;&amp;gt;&amp;gt;+ {
&lt;br&gt;&amp;gt;&amp;gt;+ wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;&amp;gt;&amp;gt;+ }
&lt;br&gt;&amp;gt;&amp;gt;+ width += tokenSizeRect.cx;
&lt;br&gt;&amp;gt;&amp;gt;+
&lt;br&gt;&amp;gt;&amp;gt;+ // If there are more tokens, there is a tab between this
&lt;br&gt;&amp;gt;&amp;gt;+ // token and the next. Compute its length.
&lt;br&gt;&amp;gt;&amp;gt;+ if ( tokenizer.HasMoreTokens() )
&lt;br&gt;&amp;gt;&amp;gt;+ width = ((width / tabWidth) + 1) * tabWidth;
&lt;br&gt;&amp;gt;&amp;gt;+ }
&lt;br&gt;&amp;gt;&amp;gt;+
&lt;br&gt;&amp;gt;&amp;gt;+ // Overwrite value computed by GetTextExtentPoint32() with the
&lt;br&gt;&amp;gt;&amp;gt;+ // correct value.
&lt;br&gt;&amp;gt;&amp;gt;+ sizeRect.cx = width;
&lt;br&gt;&amp;gt;&amp;gt;+ }
&lt;br&gt;&amp;gt;&amp;gt;+
&lt;br&gt;&amp;gt;&amp;gt; #if !defined(_WIN32_WCE) || (_WIN32_WCE&amp;gt;= 400)
&lt;br&gt;&amp;gt;&amp;gt; // the result computed by GetTextExtentPoint32() may be too small as it
&lt;br&gt;&amp;gt;&amp;gt; // accounts for under/overhang of the first/last character while we want
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;I've tried this on a variety of strings, including on strings with
&lt;br&gt;&amp;gt;&amp;gt;multiple consecutive tabs and trailing tabs. It works correctly
&lt;br&gt;&amp;gt;&amp;gt;for every string I tried. Also, it does not do any extra work
&lt;br&gt;&amp;gt;&amp;gt;for strings that do not contain tabs.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;If someone can figure out how to use GetTabbedTextExtent() properly,
&lt;br&gt;&amp;gt;&amp;gt;that would obviously be a better solution, but until then this manual
&lt;br&gt;&amp;gt;&amp;gt;solution is the best I have.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe it's not even possible to do this?
&lt;br&gt;&amp;gt; Here is an except from the VC++5 help:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Because some devices do not place characters in regular cell arrays
&lt;br&gt;&amp;gt; (that is, they kern the characters), the sum of the extents of the
&lt;br&gt;&amp;gt; characters in a string may not be equal to the extent of the string.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm assuming that in this case the function won't fail, but just produce
&lt;br&gt;&amp;gt; incorrect results.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;My understanding is that the point of kerning is to adjust the spacing
&lt;br&gt;between consecutive characters to make the text look more natural.
&lt;br&gt;I don't see how it would make sense to have any &amp;quot;kerning&amp;quot; between
&lt;br&gt;visible characters and tabs. Since I only split the string at
&lt;br&gt;visible character-tab boundaries, I don't think kerning will be a problem.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I could be wrong, of course, but I haven't come across a string for which
&lt;br&gt;this modified version of DoGetTextExtent() returns an incorrect result,
&lt;br&gt;not even off by a few pixels.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Regards,
&lt;br&gt;Nate. 		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Windows Live: Keep your friends up to date with what you do online.
&lt;br&gt;&lt;a href=&quot;http://go.microsoft.com/?linkid=9691815&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://go.microsoft.com/?linkid=9691815&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26788081&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxStaticText-stops-displaying-text-after-tab-character-tp26721964p26788081.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26787585</id>
	<title>Re: Re[12]: wxStaticText stops displaying text after tab character</title>
	<published>2009-12-14T16:33:16Z</published>
	<updated>2009-12-14T16:33:16Z</updated>
	<author>
		<name>ikorot</name>
	</author>
	<content type="html">Hi, (Nathan, Vadim),
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;From: Nathan Ridge &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26787585&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;zeratul976@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;Sent: Dec 14, 2009 5:52 PM
&lt;br&gt;&amp;gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26787585&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;Subject: Re[12]: wxStaticText stops displaying text after tab character
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26787585&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re[11]: wxStaticText stops displaying text after tab character
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26787585&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Mon, 14 Dec 2009 06:35:40 +0000 Nathan Ridge wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; NR&amp;gt; Perhaps we can use GetTabbedTextExtent() instead of GetTextExtentPoint32()?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This looks like exactly the right function to use, I simply didn't know
&lt;br&gt;&amp;gt;&amp;gt; about it, thanks!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Just to play a devil advocate it could be argued that maybe wxDC doesn't
&lt;br&gt;&amp;gt;&amp;gt; need to use it as, after all, it doesn't use TabbedTextOut() in its
&lt;br&gt;&amp;gt;&amp;gt; DrawText(). Maybe it would be better to provide separate function for text
&lt;br&gt;&amp;gt;&amp;gt; with TABs just as MSW itself does (I'd prefer to append a flags parameter
&lt;br&gt;&amp;gt;&amp;gt; to GetTextExtent() but this would require changing all derived wxDC
&lt;br&gt;&amp;gt;&amp;gt; classes). Of course, this objection has nothing to do with whether we use
&lt;br&gt;&amp;gt;&amp;gt; GetTabbedTextExtent() or the manual solution I initially thought of, it's
&lt;br&gt;&amp;gt;&amp;gt; just that now that I see that MSW has different functions for normal and
&lt;br&gt;&amp;gt;&amp;gt; tabbed text I start thinking that it might be a bad idea to always use the
&lt;br&gt;&amp;gt;&amp;gt; tabbed versions.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;snip&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; All I can offer is a patch for testing this function which I found
&lt;br&gt;&amp;gt;&amp;gt; convenient to use as using wxBORDER_SIMPLE allows to see the computed
&lt;br&gt;&amp;gt;&amp;gt; control size visually:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;Thanks for that patch, it made debugging this much easier!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;It turns out GetTabbedTextExtent() barely ever returns the correct
&lt;br&gt;&amp;gt;length for strings with tabs in them. Sometimes it leaves extra space
&lt;br&gt;&amp;gt;at the end of the string, and sometimes it cuts the string off.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;The reason for all this, it seems, is that the tab spacing used
&lt;br&gt;&amp;gt;by GetTabbedTextExtent() is not the same as the one used by TextOut().
&lt;br&gt;&amp;gt;This is evident when you display &amp;quot;\t&amp;quot; and &amp;quot;\ta&amp;quot; one underneath
&lt;br&gt;&amp;gt;the other. The box around the &amp;quot;\t&amp;quot; is wider than the amount of space
&lt;br&gt;&amp;gt;actually taken up by the tab in &amp;quot;\ta&amp;quot;, indicating that the tab spacing
&lt;br&gt;&amp;gt;used by GetTabbedTextExtent() to compute the length of &amp;quot;\t&amp;quot;
&lt;br&gt;&amp;gt;is larger than the tab spacing used by TextOut() to display a tab
&lt;br&gt;&amp;gt;at the beginning of a line.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;I tried changing wxDC::DrawText() to use TabbedTextOut() instead of
&lt;br&gt;&amp;gt;TextOut(), but the results were identical: there appears to be
&lt;br&gt;&amp;gt;no difference between the spacing used by TextOut() and TabbedTextOut().
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;I was not able to figure out how to get GetTabbedTextExtent()
&lt;br&gt;&amp;gt;to use the same tab spacing as TextOut(), so I implemented
&lt;br&gt;&amp;gt;your suggested manual solution. Here's the patch against
&lt;br&gt;&amp;gt;the original dc.cpp:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;diff -u -b dc.cpp.orig dc.cpp
&lt;br&gt;&amp;gt;--- dc.cpp.orig Mon Dec 14 16:42:01 2009
&lt;br&gt;&amp;gt;+++ dc.cpp &amp;nbsp; &amp;nbsp; &amp;nbsp;Mon Dec 14 17:45:25 2009
&lt;br&gt;&amp;gt;@@ -42,6 +42,7 @@
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #include &amp;quot;wx/sysopt.h&amp;quot;
&lt;br&gt;&amp;gt; #include &amp;quot;wx/dynlib.h&amp;quot;
&lt;br&gt;&amp;gt;+#include &amp;quot;wx/tokenzr.h&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #ifdef wxHAVE_RAW_BITMAP
&lt;br&gt;&amp;gt; #include &amp;quot;wx/rawbmp.h&amp;quot;
&lt;br&gt;&amp;gt;@@ -1769,6 +1770,61 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp;// The width of strings containing tabs needs to be treated specially
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp;// because GetTextExtentPoint32() does not handle tabs correctly.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp;if ( string.Find('\t') != wxNOT_FOUND )
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Note: while there is a GetTabbedTextExtent() API, it does
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// not appear to handle tabs correctly either, so we need to do
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// some manual computation.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Compute the average character width.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Tab stop positions are multiples of 8 of this.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Note: this computation cannot be done just once in advance because
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// the font may change, giving a different answer.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static wxString allChars = &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const size_t allCharsLen = allChars.length();
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SIZE allCharsSizeRect;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( !::GetTextExtentPoint32(GetHdc(), allChars, allCharsLen,
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;allCharsSizeRect) )
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DWORD avgCharWidth = allCharsSizeRect.cx / allCharsLen;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DWORD tabWidth = avgCharWidth * 8;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Split the string into chunks separated by tabs,
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// and add up the widths the chunks plus the tabs
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// betweent them.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Note: we use wxTOKEN_RET_EMPTY_ALL while tokenizing so that
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// multiple consecutive tabs and trailing tabs are handled correctly.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DWORD width = 0;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxStringTokenizer tokenizer(string, '\t', wxTOKEN_RET_EMPTY_ALL);
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( tokenizer.HasMoreTokens() )
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Compute width of token.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SIZE tokenSizeRect;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxString token = tokenizer.GetNextToken();
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const size_t tokenLen = token.length();
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( !::GetTextExtentPoint32(GetHdc(), token, tokenLen,
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;tokenSizeRect) )
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;width += tokenSizeRect.cx;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// If there are more tokens, there is a tab between this
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// token and the next. Compute its length.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( tokenizer.HasMoreTokens() )
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;width = ((width / tabWidth) + 1) * tabWidth;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Overwrite value computed by GetTextExtentPoint32() with the
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// correct value.
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sizeRect.cx = width;
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;+ &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; #if !defined(_WIN32_WCE) || (_WIN32_WCE&amp;gt;= 400)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; // the result computed by GetTextExtentPoint32() may be too small as it
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; // accounts for under/overhang of the first/last character while we want
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;I've tried this on a variety of strings, including on strings with
&lt;br&gt;&amp;gt;multiple consecutive tabs and trailing tabs. It works correctly
&lt;br&gt;&amp;gt;for every string I tried. Also, it does not do any extra work
&lt;br&gt;&amp;gt;for strings that do not contain tabs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;If someone can figure out how to use GetTabbedTextExtent() properly,
&lt;br&gt;&amp;gt;that would obviously be a better solution, but until then this manual
&lt;br&gt;&amp;gt;solution is the best I have.
&lt;/div&gt;&lt;br&gt;Maybe it's not even possible to do this?
&lt;br&gt;Here is an except from the VC++5 help:
&lt;br&gt;&lt;br&gt;&amp;quot;Because some devices do not place characters in regular cell arrays
&lt;br&gt;(that is, they kern the characters), the sum of the extents of the
&lt;br&gt;characters in a string may not be equal to the extent of the string.&amp;quot;
&lt;br&gt;&lt;br&gt;I'm assuming that in this case the function won't fail, but just produce
&lt;br&gt;incorrect results.
&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;Let me know if I still should open a Trac ticket about this issue.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;Regards,
&lt;br&gt;&amp;gt;Nate.
&lt;br&gt;&amp;gt; &amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;&amp;gt;_________________________________________________________________
&lt;br&gt;&amp;gt;Eligible CDN College &amp; University students can upgrade to Windows 7 before Jan 3 for only $39.99. Upgrade now!
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://go.microsoft.com/?linkid=9691819&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://go.microsoft.com/?linkid=9691819&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;-- 
&lt;br&gt;&amp;gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26787585&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26787585&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxStaticText-stops-displaying-text-after-tab-character-tp26721964p26787585.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26786564</id>
	<title>Re[2]: Changing a dot into a comma in an OnChar event</title>
	<published>2009-12-14T15:01:11Z</published>
	<updated>2009-12-14T15:01:11Z</updated>
	<author>
		<name>Vadim Zeitlin-4</name>
	</author>
	<content type="html">On Mon, 14 Dec 2009 20:41:00 +0100 Fulvio Senore &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26786564&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mailing@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;FS&amp;gt; Thank you for your answer. I considered EmulateKeyPress() but the 
&lt;br&gt;FS&amp;gt; documentation says that it only works in Windows, so I did not even try it.
&lt;br&gt;&lt;br&gt;&amp;nbsp;It says that it doesn't work correctly for all keys except under Windows
&lt;br&gt;because it's basically implemented as WriteText(event.GetKeyCode()) for the
&lt;br&gt;other platforms (with a few exceptions, see src/common/textcmn.cpp). I.e.
&lt;br&gt;it already does what you wanted to do manually (or at least is supposed to,
&lt;br&gt;let us know if you find any bugs).
&lt;br&gt;&lt;br&gt;&amp;nbsp;Regards,
&lt;br&gt;VZ
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;TT-Solutions: wxWidgets consultancy and technical support
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.tt-solutions.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tt-solutions.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (203 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26786564/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-a-dot-into-a-comma-in-an-OnChar-event-tp26777777p26786564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26786447</id>
	<title>Re[12]: wxStaticText stops displaying text after tab character</title>
	<published>2009-12-14T14:52:00Z</published>
	<updated>2009-12-14T14:52:00Z</updated>
	<author>
		<name>HighCommander4</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26786447&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vadim@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re[11]: wxStaticText stops displaying text after tab character
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26786447&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, 14 Dec 2009 06:35:40 +0000 Nathan Ridge wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NR&amp;gt; Perhaps we can use GetTabbedTextExtent() instead of GetTextExtentPoint32()?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This looks like exactly the right function to use, I simply didn't know
&lt;br&gt;&amp;gt; about it, thanks!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Just to play a devil advocate it could be argued that maybe wxDC doesn't
&lt;br&gt;&amp;gt; need to use it as, after all, it doesn't use TabbedTextOut() in its
&lt;br&gt;&amp;gt; DrawText(). Maybe it would be better to provide separate function for text
&lt;br&gt;&amp;gt; with TABs just as MSW itself does (I'd prefer to append a flags parameter
&lt;br&gt;&amp;gt; to GetTextExtent() but this would require changing all derived wxDC
&lt;br&gt;&amp;gt; classes). Of course, this objection has nothing to do with whether we use
&lt;br&gt;&amp;gt; GetTabbedTextExtent() or the manual solution I initially thought of, it's
&lt;br&gt;&amp;gt; just that now that I see that MSW has different functions for normal and
&lt;br&gt;&amp;gt; tabbed text I start thinking that it might be a bad idea to always use the
&lt;br&gt;&amp;gt; tabbed versions.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;snip&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All I can offer is a patch for testing this function which I found
&lt;br&gt;&amp;gt; convenient to use as using wxBORDER_SIMPLE allows to see the computed
&lt;br&gt;&amp;gt; control size visually:
&lt;br&gt;&amp;gt;
&lt;/div&gt;&amp;nbsp;
&lt;br&gt;Thanks for that patch, it made debugging this much easier!
&lt;br&gt;&amp;nbsp;
&lt;br&gt;It turns out GetTabbedTextExtent() barely ever returns the correct
&lt;br&gt;length for strings with tabs in them. Sometimes it leaves extra space
&lt;br&gt;at the end of the string, and sometimes it cuts the string off.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;The reason for all this, it seems, is that the tab spacing used
&lt;br&gt;by GetTabbedTextExtent() is not the same as the one used by TextOut().
&lt;br&gt;This is evident when you display &amp;quot;\t&amp;quot; and &amp;quot;\ta&amp;quot; one underneath
&lt;br&gt;the other. The box around the &amp;quot;\t&amp;quot; is wider than the amount of space
&lt;br&gt;actually taken up by the tab in &amp;quot;\ta&amp;quot;, indicating that the tab spacing
&lt;br&gt;used by GetTabbedTextExtent() to compute the length of &amp;quot;\t&amp;quot;
&lt;br&gt;is larger than the tab spacing used by TextOut() to display a tab
&lt;br&gt;at the beginning of a line.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I tried changing wxDC::DrawText() to use TabbedTextOut() instead of
&lt;br&gt;TextOut(), but the results were identical: there appears to be
&lt;br&gt;no difference between the spacing used by TextOut() and TabbedTextOut().
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I was not able to figure out how to get GetTabbedTextExtent()
&lt;br&gt;to use the same tab spacing as TextOut(), so I implemented
&lt;br&gt;your suggested manual solution. Here's the patch against
&lt;br&gt;the original dc.cpp:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff -u -b dc.cpp.orig dc.cpp
&lt;br&gt;--- dc.cpp.orig Mon Dec 14 16:42:01 2009
&lt;br&gt;+++ dc.cpp &amp;nbsp; &amp;nbsp; &amp;nbsp;Mon Dec 14 17:45:25 2009
&lt;br&gt;@@ -42,6 +42,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#include &amp;quot;wx/sysopt.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;wx/dynlib.h&amp;quot;
&lt;br&gt;+#include &amp;quot;wx/tokenzr.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#ifdef wxHAVE_RAW_BITMAP
&lt;br&gt;&amp;nbsp;#include &amp;quot;wx/rawbmp.h&amp;quot;
&lt;br&gt;@@ -1769,6 +1770,61 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;// The width of strings containing tabs needs to be treated specially
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;// because GetTextExtentPoint32() does not handle tabs correctly.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if ( string.Find('\t') != wxNOT_FOUND )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Note: while there is a GetTabbedTextExtent() API, it does
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// not appear to handle tabs correctly either, so we need to do
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// some manual computation.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Compute the average character width.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Tab stop positions are multiples of 8 of this.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Note: this computation cannot be done just once in advance because
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// the font may change, giving a different answer.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static wxString allChars = &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot;;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const size_t allCharsLen = allChars.length();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SIZE allCharsSizeRect;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( !::GetTextExtentPoint32(GetHdc(), allChars, allCharsLen,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;allCharsSizeRect) )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DWORD avgCharWidth = allCharsSizeRect.cx / allCharsLen;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DWORD tabWidth = avgCharWidth * 8;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Split the string into chunks separated by tabs,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// and add up the widths the chunks plus the tabs
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// betweent them.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Note: we use wxTOKEN_RET_EMPTY_ALL while tokenizing so that
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// multiple consecutive tabs and trailing tabs are handled correctly.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DWORD width = 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxStringTokenizer tokenizer(string, '\t', wxTOKEN_RET_EMPTY_ALL);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( tokenizer.HasMoreTokens() )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Compute width of token.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SIZE tokenSizeRect;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxString token = tokenizer.GetNextToken();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const size_t tokenLen = token.length();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( !::GetTextExtentPoint32(GetHdc(), token, tokenLen,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;tokenSizeRect) )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wxLogLastError(_T(&amp;quot;GetTextExtentPoint32()&amp;quot;));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;width += tokenSizeRect.cx;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// If there are more tokens, there is a tab between this
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// token and the next. Compute its length.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( tokenizer.HasMoreTokens() )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;width = ((width / tabWidth) + 1) * tabWidth;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Overwrite value computed by GetTextExtentPoint32() with the
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// correct value.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sizeRect.cx = width;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;#if !defined(_WIN32_WCE) || (_WIN32_WCE&amp;gt;= 400)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// the result computed by GetTextExtentPoint32() may be too small as it
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// accounts for under/overhang of the first/last character while we want
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;I've tried this on a variety of strings, including on strings with
&lt;br&gt;multiple consecutive tabs and trailing tabs. It works correctly
&lt;br&gt;for every string I tried. Also, it does not do any extra work
&lt;br&gt;for strings that do not contain tabs.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;If someone can figure out how to use GetTabbedTextExtent() properly,
&lt;br&gt;that would obviously be a better solution, but until then this manual
&lt;br&gt;solution is the best I have.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Let me know if I still should open a Trac ticket about this issue.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Regards,
&lt;br&gt;Nate.
&lt;br&gt;&amp;nbsp; 		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Eligible CDN College &amp; University students can upgrade to Windows 7 before Jan 3 for only $39.99. Upgrade now!
&lt;br&gt;&lt;a href=&quot;http://go.microsoft.com/?linkid=9691819&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://go.microsoft.com/?linkid=9691819&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Please read &lt;a href=&quot;http://www.wxwidgets.org/support/mlhowto.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.wxwidgets.org/support/mlhowto.htm&lt;/a&gt;&amp;nbsp;before posting.
&lt;br&gt;&lt;br&gt;To unsubscribe, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26786447&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wx-users+unsubscribe@...&lt;/a&gt;
&lt;br&gt;or visit &lt;a href=&quot;http://groups.google.com/group/wx-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/wx-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/wxWidgets---Users-f14279.html&quot; embed=&quot;fixTarget[14279]&quot; target=&quot;_top&quot; &gt;wxWidgets - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/wxStaticText-stops-displaying-text-after-tab-character-tp26721964p26786447.html" />
</entry>

</feed>
