<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-3425</id>
	<title>Nabble - Gambas</title>
	<updated>2009-11-22T23:27:04Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Gambas-f3425.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gambas-f3425.html" />
	<subtitle type="html">A Graphical Developement Environment based on a Basic Interpreter with object extensions. Gambas home is &lt;a href=&quot;http://sourceforge.net/projects/gambas/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26473662</id>
	<title>[SOLVED] Socket Horror!</title>
	<published>2009-11-22T23:27:04Z</published>
	<updated>2009-11-22T23:27:04Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Some of you will know that I've had truckloads of socket horror with a proxy 
&lt;br&gt;server I've written in gambas. Well I had more socket horror just now. 
&lt;br&gt;Everything was working fine last night but not when I booted up this 
&lt;br&gt;afternoon.
&lt;br&gt;&lt;br&gt;The server socket starts and listens.
&lt;br&gt;The server socket detects an incoming client connection.
&lt;br&gt;The server socket is established and ready.
&lt;br&gt;A connection to a remote server is established.
&lt;br&gt;&lt;br&gt;After some time, the client gets no response so the client closes the
&lt;br&gt;connection.
&lt;br&gt;&lt;br&gt;The client reconnects.
&lt;br&gt;The server socket starts and listens...
&lt;br&gt;&lt;br&gt;And round and round it went.
&lt;br&gt;&lt;br&gt;Socket_Read() never fired, and I know nothing changed because I was using 
&lt;br&gt;the proxy for several hours in runtime mode and it was running flawlessly, 
&lt;br&gt;then I went to bed without ever touching the source code.
&lt;br&gt;&lt;br&gt;It turns out that the remote server IP address had changed. It now makes 
&lt;br&gt;sense that Socket_Read() never fired because the client application must 
&lt;br&gt;wait for the server to respond, which is the correct behaviour specified by 
&lt;br&gt;a certain RFC, but since the server was no longer on the same IP address 
&lt;br&gt;there was no response; the server wasn't there, it was on some other IP 
&lt;br&gt;address.
&lt;br&gt;&lt;br&gt;I checked the server and it was on a very short lease, which explains why it 
&lt;br&gt;appeared to work and not work at no particular time. At one point everything 
&lt;br&gt;started working when I set a single property in the client socket. I now 
&lt;br&gt;believe that the two events (me setting the property, and the proxy starting 
&lt;br&gt;to work) were independent and mere coincidence was what caused it to work, 
&lt;br&gt;i.e. the server acquired a new lease and, it just so happens, it got the 
&lt;br&gt;same IP address that we expected it to have.
&lt;br&gt;&lt;br&gt;I have now given the server a permanent IP.
&lt;br&gt;&lt;br&gt;So there you have it. You now know how it is that a remote server not being 
&lt;br&gt;on the IP address that you expect it to be on can cause the client 
&lt;br&gt;Socket_Read() to never fire.
&lt;br&gt;&lt;br&gt;Thanks to all those who offered commonsense suggestions. I could have sorted 
&lt;br&gt;this problem much quicker if I had bothered to check the Status property of 
&lt;br&gt;the socket that connects to the remote server. But hey, it's not even in 
&lt;br&gt;alpha stage yet :) 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473662&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SOLVED--Socket-Horror%21-tp26473662p26473662.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473503</id>
	<title>Re: Either I am blind or...</title>
	<published>2009-11-22T22:59:14Z</published>
	<updated>2009-11-22T22:59:14Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Benoît Minisini wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Benoît Minisini wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Benoît Minisini wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;...menus don't support drag.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Please tell me I am blind.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; They don't, no toolkit supports drag &amp; drop on menus natively.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm looking to drag menu items off a menu, not drag them onto a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; menu. The gnome panel menus do it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Pity. I'm rewriting a Windows app that makes use of that feature.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'll have to think up an alternative.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I remember that in KDE3 this was a global UI option. I don't know if
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; it exists in KDE4.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I will add a property to the Menu class to enable the TearOff
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; handle. I will tell you when it is done.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; :)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; That would be great, thank you.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry, but I can't make it work correctly, both in gb.qt4 and gb.gtk.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will try again, but I'm afraid you will have to find a solution
&lt;br&gt;&amp;gt; yourself...
&lt;/div&gt;&lt;br&gt;That's ok. I'll devise some kind of UI for it. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473503&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Either-I-am-blind-or...-tp26463300p26473503.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472979</id>
	<title>Re: Serial ports in Gambas</title>
	<published>2009-11-22T21:22:10Z</published>
	<updated>2009-11-22T21:22:10Z</updated>
	<author>
		<name>yuhej</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;In the examples you find one for the serial port: Open Example \ Networking
&lt;br&gt;\ SerialPort. It shows the basics.
&lt;br&gt;&lt;br&gt;You can send commands from your code (by taking them for example from a
&lt;br&gt;textbox filled by the user) with PRINT or WRITE, you can read from the
&lt;br&gt;serial port with READ.
&lt;br&gt;&lt;br&gt;Regards, Robi
&lt;br&gt;&lt;br&gt;2009/11/23 Kari Laine &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472979&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;klaine8@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; after not being active with Gambas for some time now. I am thinking of
&lt;br&gt;&amp;gt; making a program with it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am learning products from &lt;a href=&quot;http://www.byvac.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.byvac.com&lt;/a&gt;&amp;nbsp;especially the BV513,
&lt;br&gt;&amp;gt; which is PIC-based microcontroller programmed in basic.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The sofware from Byvac is for Windows only. I tried with minicom but
&lt;br&gt;&amp;gt; it sends something weird to BV513 so it does not work. So my need is
&lt;br&gt;&amp;gt; to write a simple terminal program. For that I need serial port
&lt;br&gt;&amp;gt; support - is there that in Gambas? I looked at the examples and could
&lt;br&gt;&amp;gt; not find any example.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What control should I use as central control where user types commands
&lt;br&gt;&amp;gt; and results which are received from the device are printed?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry for these stupid questions.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt; Kari Laine
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Gambas-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472979&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472979&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Serial-ports-in-Gambas-tp26472462p26472979.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472462</id>
	<title>Serial ports in Gambas</title>
	<published>2009-11-22T19:50:24Z</published>
	<updated>2009-11-22T19:50:24Z</updated>
	<author>
		<name>Kari Laine-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;after not being active with Gambas for some time now. I am thinking of
&lt;br&gt;making a program with it.
&lt;br&gt;&lt;br&gt;I am learning products from &lt;a href=&quot;http://www.byvac.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.byvac.com&lt;/a&gt;&amp;nbsp;especially the BV513,
&lt;br&gt;which is PIC-based microcontroller programmed in basic.
&lt;br&gt;&lt;br&gt;The sofware from Byvac is for Windows only. I tried with minicom but
&lt;br&gt;it sends something weird to BV513 so it does not work. So my need is
&lt;br&gt;to write a simple terminal program. For that I need serial port
&lt;br&gt;support - is there that in Gambas? I looked at the examples and could
&lt;br&gt;not find any example.
&lt;br&gt;&lt;br&gt;What control should I use as central control where user types commands
&lt;br&gt;and results which are received from the device are printed?
&lt;br&gt;&lt;br&gt;Sorry for these stupid questions.
&lt;br&gt;&lt;br&gt;Best Regards
&lt;br&gt;Kari Laine
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472462&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Serial-ports-in-Gambas-tp26472462p26472462.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471998</id>
	<title>[SPAM] Vacation reply</title>
	<published>2009-11-22T18:35:39Z</published>
	<updated>2009-11-22T18:35:39Z</updated>
	<author>
		<name>sanyaade</name>
	</author>
	<content type="html">Hey ,friend  I find a site to sell electronic products with very good price. Laptop ,iPhone even Motorcycle are very popular .their products are original quality with very low price as wholesale business supplier.They also can do retail business for end user now. maybe it is fit for your business . if you like you can contact them :   wholesalers-electronic.com  &lt;br&gt;E-mail:  wholesaler318(at)188.com&lt;br&gt;Msn : wholesaler31888(at)hotmail.com&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gambas-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471998&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-devel-f3426.html&quot; embed=&quot;fixTarget[3426]&quot; target=&quot;_top&quot; &gt;gambas-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Empty-string-sets-controls-and-collections-members-to-null-Question-tp26471995p26471998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471995</id>
	<title>Re: Empty string sets controls and collections members to null Question</title>
	<published>2009-11-22T18:32:36Z</published>
	<updated>2009-11-22T18:32:36Z</updated>
	<author>
		<name>richard terry-5</name>
	</author>
	<content type="html">On Thursday 27 August 2009 19:55:01 you wrote:
&lt;br&gt;&lt;br&gt;I asked this before (text below) and to my recollection (maybe faulty) Benoit 
&lt;br&gt;said that the behaviour causing me problems was normal, however I really need 
&lt;br&gt;to find a solution.
&lt;br&gt;&lt;br&gt;In a nutshell again it is this:
&lt;br&gt;&lt;br&gt;I use collections to transfer data to-from my database to add/update records 
&lt;br&gt;(don't use the gambas datacontrol).
&lt;br&gt;&lt;br&gt;If an existing collection has a member containing text eg
&lt;br&gt;&lt;br&gt;MyCollection!my_value = &amp;quot;a dog&amp;quot;, and I'm updating the record, lets say I've 
&lt;br&gt;deleted the text in the input field, and the value in the backend for that 
&lt;br&gt;field in a table now has to be &amp;nbsp;an empty sting or null, if I do this:
&lt;br&gt;&lt;br&gt;MyCollectioni!my_value = &amp;quot;&amp;quot;, effectively removes the 'my_value' key from the 
&lt;br&gt;collection, dosn't set its string to null.
&lt;br&gt;&lt;br&gt;I would have thought that &amp;quot;&amp;quot; = empty string, not null, but I think Benoit said 
&lt;br&gt;that this was equivalent in gambas. I can't think how to get around this and 
&lt;br&gt;wondered if anyone could think of a solution.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Richard
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This question is really around how to set a collection member to an empty 
&lt;br&gt;&amp;gt; string without destroying it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've noticed (forever) that this code
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; textbox1 = &amp;quot;&amp;quot; when one accidentally forgot to write 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; textbox1.text =&amp;quot;&amp;quot;, actually sets the control to null.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But I've also I just noticed this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Lets say you have a collection
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; dim aCollection &amp;nbsp;as new collection
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; aCollection!value = &amp;quot;hi there&amp;quot; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; is a valid statement
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; aCollection.Remove(&amp;quot;value&amp;quot;) - &amp;nbsp;removes the item
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; aCollecton!value = &amp;quot;&amp;quot; &amp;nbsp;actually works like &amp;nbsp;aCollection.Remove(&amp;quot;value&amp;quot;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; which is sort of inconvenient if you want the collection member to be an
&lt;br&gt;&amp;gt; &amp;nbsp;empty &amp;nbsp;string
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Am I wrong ?any suggestions/observations.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; richard
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471995&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-devel-f3426.html&quot; embed=&quot;fixTarget[3426]&quot; target=&quot;_top&quot; &gt;gambas-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Empty-string-sets-controls-and-collections-members-to-null-Question-tp26471995p26471995.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469836</id>
	<title>Re: Either I am blind or...</title>
	<published>2009-11-22T13:23:16Z</published>
	<updated>2009-11-22T13:23:16Z</updated>
	<author>
		<name>richard terry-5</name>
	</author>
	<content type="html">On Monday 23 November 2009 07:58:47 Benoît Minisini wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Benoît Minisini wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;nbsp;...menus don't support drag.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; Please tell me I am blind.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; They don't, no toolkit supports drag &amp; drop on menus natively.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm looking to drag menu items off a menu, not drag them onto a menu. The
&lt;br&gt;&amp;gt; &amp;gt; gnome panel menus do it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Pity. I'm rewriting a Windows app that makes use of that feature. I'll
&lt;br&gt;&amp;gt; &amp;gt; have to think up an alternative.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I remember that in KDE3 this was a global UI option. I don't know if it
&lt;br&gt;&amp;gt; &amp;nbsp;exists in KDE4.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I will add a property to the Menu class to enable the TearOff handle. I
&lt;br&gt;&amp;gt; &amp;nbsp;will tell you when it is done.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;/div&gt;Can you post to the list about this as I've a use for that as well.
&lt;br&gt;&lt;br&gt;Richard
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469836&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Either-I-am-blind-or...-tp26463300p26469836.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469589</id>
	<title>Re: Either I am blind or...</title>
	<published>2009-11-22T13:18:01Z</published>
	<updated>2009-11-22T13:18:01Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Benoît Minisini wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Benoît Minisini wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;...menus don't support drag.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Please tell me I am blind.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; They don't, no toolkit supports drag &amp; drop on menus natively.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I'm looking to drag menu items off a menu, not drag them onto a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; menu. The gnome panel menus do it.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Pity. I'm rewriting a Windows app that makes use of that feature.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I'll have to think up an alternative.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I remember that in KDE3 this was a global UI option. I don't know if
&lt;br&gt;&amp;gt; &amp;gt; it exists in KDE4.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I will add a property to the Menu class to enable the TearOff handle.
&lt;br&gt;&amp;gt; &amp;gt; I will tell you when it is done.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; :)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That would be great, thank you.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Sorry, but I can't make it work correctly, both in gb.qt4 and gb.gtk.
&lt;br&gt;&lt;br&gt;I will try again, but I'm afraid you will have to find a solution yourself...
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469589&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Either-I-am-blind-or...-tp26463300p26469589.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469459</id>
	<title>Re: Either I am blind or...</title>
	<published>2009-11-22T13:02:52Z</published>
	<updated>2009-11-22T13:02:52Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Benoît Minisini wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Benoît Minisini wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;...menus don't support drag.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Please tell me I am blind.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; They don't, no toolkit supports drag &amp; drop on menus natively.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm looking to drag menu items off a menu, not drag them onto a
&lt;br&gt;&amp;gt;&amp;gt; menu. The gnome panel menus do it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Pity. I'm rewriting a Windows app that makes use of that feature.
&lt;br&gt;&amp;gt;&amp;gt; I'll have to think up an alternative.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I remember that in KDE3 this was a global UI option. I don't know if
&lt;br&gt;&amp;gt; it exists in KDE4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will add a property to the Menu class to enable the TearOff handle.
&lt;br&gt;&amp;gt; I will tell you when it is done.
&lt;/div&gt;&lt;br&gt;:)
&lt;br&gt;&lt;br&gt;That would be great, thank you.
&lt;br&gt;&lt;br&gt;&amp;gt; Regards, 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469459&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Either-I-am-blind-or...-tp26463300p26469459.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469428</id>
	<title>Re: Either I am blind or...</title>
	<published>2009-11-22T12:58:47Z</published>
	<updated>2009-11-22T12:58:47Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Benoît Minisini wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;...menus don't support drag.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Please tell me I am blind.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; They don't, no toolkit supports drag &amp; drop on menus natively.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm looking to drag menu items off a menu, not drag them onto a menu. The
&lt;br&gt;&amp;gt; gnome panel menus do it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Pity. I'm rewriting a Windows app that makes use of that feature. I'll have
&lt;br&gt;&amp;gt; to think up an alternative.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I remember that in KDE3 this was a global UI option. I don't know if it exists 
&lt;br&gt;in KDE4.
&lt;br&gt;&lt;br&gt;I will add a property to the Menu class to enable the TearOff handle. I will 
&lt;br&gt;tell you when it is done.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469428&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Either-I-am-blind-or...-tp26463300p26469428.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469299</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T12:46:31Z</published>
	<updated>2009-11-22T12:46:31Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Benoît Minisini wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Toni wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think it's got to do with the order that events fire... In any
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; case, if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; work as you expect.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ok, that's far better than it was, many, many thanks. However after
&lt;br&gt;&amp;gt;&amp;gt; moving the code into GotFocus the first row of the DataBrowser is
&lt;br&gt;&amp;gt;&amp;gt; never highlighted.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, this is a known bug I never fixed...
&lt;/div&gt;&lt;br&gt;NP. Charlie Reinl gave me a workaround. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469299&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26469299.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469156</id>
	<title>Re: Either I am blind or...</title>
	<published>2009-11-22T12:30:35Z</published>
	<updated>2009-11-22T12:30:35Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Benoît Minisini wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;...menus don't support drag.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Please tell me I am blind.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; They don't, no toolkit supports drag &amp; drop on menus natively.
&lt;br&gt;&lt;br&gt;I'm looking to drag menu items off a menu, not drag them onto a menu. The 
&lt;br&gt;gnome panel menus do it.
&lt;br&gt;&lt;br&gt;Pity. I'm rewriting a Windows app that makes use of that feature. I'll have 
&lt;br&gt;to think up an alternative. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Either-I-am-blind-or...-tp26463300p26469156.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26469092</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T12:23:13Z</published>
	<updated>2009-11-22T12:23:13Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Charlie Reinl wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Am Sonntag, den 22.11.2009, 23:05 +1100 schrieb
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469092&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt;:
&lt;br&gt;&amp;gt;&amp;gt; Charlie Reinl wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469092&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Toni wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I think it's got to do with the order that events fire... In any
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; case, if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; work as you expect.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ok, that's far better than it was, many, many thanks. However after
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; moving the code into GotFocus the first row of the DataBrowser is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; never highlighted. When the down arrow is pressed first on entering
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the tab, the second row is highlighted, even though the first was
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not highlighted. When the up arrow is pressed first on entering the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; tab, the first row highlights.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;squint&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I see no methods available that will allow me to force the first
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; row to highlight :(
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I tried moving rows and refreshing the datasource. I still can't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; get that first row to highlight.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I could send fake keyboard events to fix it but that's hardly
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; kosher. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Salut,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in you example give &amp;nbsp; &amp;nbsp; DataBrowser1.GridView.Rows[0].Selected =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; TRUE a chance but inot in GotFocus, that raise when start the form.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; SET it in Tab_Click.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Well, that highlighted the first row all right, but now the
&lt;br&gt;&amp;gt;&amp;gt; DataBrowser will not accept keystrokes unless I click first, which
&lt;br&gt;&amp;gt;&amp;gt; is the same problem I had originally except that the the first row
&lt;br&gt;&amp;gt;&amp;gt; is now highlighted. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Salut
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; yes highlighted is not having the focus, so add just
&lt;br&gt;&amp;gt; DataBrowser1.GridView.SetFocus
&lt;br&gt;&amp;gt; that should do it.
&lt;/div&gt;&lt;br&gt;And do it, it did. Thank you very much. Appreciated.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26469092&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26469092.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26468933</id>
	<title>Re: boring, and certainly not necessary!</title>
	<published>2009-11-22T12:06:50Z</published>
	<updated>2009-11-22T12:06:50Z</updated>
	<author>
		<name>Charlie Reinl</name>
	</author>
	<content type="html">Am Sonntag, den 22.11.2009, 20:19 +0100 schrieb Benoît Minisini:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Salut,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I remarked, if I delete the gambas3/Trunk, that I need to root,
&lt;br&gt;&amp;gt; &amp;gt; because of two directories &amp;quot;.action&amp;quot; (see attachment) certainly created
&lt;br&gt;&amp;gt; &amp;gt; during &amp;quot;make install&amp;quot;.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Is it possible to remove them before &amp;quot;make install&amp;quot; finishes?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I ask because that's needs su/sudo more in my script if I want compile
&lt;br&gt;&amp;gt; &amp;gt; from scratch.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The bug should be fixed in revision #2435. I forgot to set the owner of the 
&lt;br&gt;&amp;gt; .action directory to the same owner as the project directory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can you try it and confirm ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;/div&gt;Salut Benoît,
&lt;br&gt;&lt;br&gt;when I started the second time my script with option &amp;quot;from scratch&amp;quot; I
&lt;br&gt;had left the sudo in front of the rm, and had NO access problems.
&lt;br&gt;&lt;br&gt;So I confirm the changed owner at the .action directories.
&lt;br&gt;&lt;br&gt;&amp;nbsp; 
&lt;br&gt;-- 
&lt;br&gt;Amicalement
&lt;br&gt;Charlie
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26468933&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-devel-f3426.html&quot; embed=&quot;fixTarget[3426]&quot; target=&quot;_top&quot; &gt;gambas-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/boring%2C-and-certainly-not-necessary%21-tp26449775p26468933.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26468527</id>
	<title>Re: boring, and certainly not necessary!</title>
	<published>2009-11-22T11:19:48Z</published>
	<updated>2009-11-22T11:19:48Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Salut,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I remarked, if I delete the gambas3/Trunk, that I need to root,
&lt;br&gt;&amp;gt; because of two directories &amp;quot;.action&amp;quot; (see attachment) certainly created
&lt;br&gt;&amp;gt; during &amp;quot;make install&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it possible to remove them before &amp;quot;make install&amp;quot; finishes?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I ask because that's needs su/sudo more in my script if I want compile
&lt;br&gt;&amp;gt; from scratch.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;The bug should be fixed in revision #2435. I forgot to set the owner of the 
&lt;br&gt;.action directory to the same owner as the project directory.
&lt;br&gt;&lt;br&gt;Can you try it and confirm ?
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26468527&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-devel-f3426.html&quot; embed=&quot;fixTarget[3426]&quot; target=&quot;_top&quot; &gt;gambas-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/boring%2C-and-certainly-not-necessary%21-tp26449775p26468527.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26468426</id>
	<title>Re: LGPL COPYING file?</title>
	<published>2009-11-22T11:10:51Z</published>
	<updated>2009-11-22T11:10:51Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; The changelog for 2.18.0 says:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; GB.NET.SMTP
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * BUG: Add the GNU LGPL 2.1 license file.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Except that the COPYING file in gb.net.smtp/ is still GPL, not LGPL, nor
&lt;br&gt;&amp;gt; is COPYING.LIB present...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ~spot
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I didn't realize on the moment that the COPYING file is the license! I fixed 
&lt;br&gt;it in revision #2432 and #2433.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26468426&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-devel-f3426.html&quot; embed=&quot;fixTarget[3426]&quot; target=&quot;_top&quot; &gt;gambas-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/LGPL-COPYING-file--tp26449481p26468426.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26467853</id>
	<title>Re: Problem with MoveScale saved into .form files on gambas2</title>
	<published>2009-11-22T10:20:20Z</published>
	<updated>2009-11-22T10:20:20Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; El día 10 de noviembre de 2009 20:02, Alonso Cárdenas Márquez
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467853&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acardenas@...&lt;/a&gt;&amp;gt; escribió:
&lt;br&gt;&amp;gt; &amp;gt; 2009/11/2 Benoît Minisini &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467853&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gambas@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The Round() function is defined in the subr_math.c source file in the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; /main/gbx directory.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Here is the code, with comments added:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; void SUBR_round(void)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// 'val' is the value of the Round second argument, 0 by default.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;int val = 0;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;double power;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// Starts the subroutine. Actually just initializes a variable named
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// 'NPARAM' with the number of arguments passed to the subroutine, and
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; a // variable named 'PARAM', that points at the first argument on the //
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; interpreter stack.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;SUBR_ENTER();
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// NPARAM is either 1 or 2 (this is checked by the compiler). If there
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; is 2 // arguments, extract it from the stack and put it in the 'val'
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; variable.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;if (NPARAM == 2)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;val = SUBR_get_integer(&amp;PARAM[1]);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// Put 10^'val' inside the power variable. According to your test, the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; value // returned by Round() is 1/10th the true value. So the value of
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 'power' // should be checked with a debugger.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;power = pow(10, val);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// Converts the first argument of Round() to a floating point value.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;VALUE_conv(&amp;PARAM[0], T_FLOAT);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// Defines the return value
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;RETURN-&amp;gt;type = T_FLOAT;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// Do not use rint(), it does not do what I need.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;/*RETURN-&amp;gt;_float.value = rint(PARAM-&amp;gt;_float.value / power) * power;*/
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// The floor() function returns the largest integer value less than
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// or equal to its argument. By adding 0.5 first, we are actually
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; rounded // the value to the nearest integer.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// The following keeps the number of digits after the decimal point
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; defined // by the 'val' variable.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;RETURN-&amp;gt;_float.value = floor(PARAM-&amp;gt;_float.value / power + 0.5) *
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; power;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;// Exit the subroutine by removing the arguments from the interpreter
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; stack.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;SUBR_LEAVE();
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; If you are able to trace the subr_round() function with a debugger, and
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; see what really happens, you are welcome!
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Benoît Minisini
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi &amp;nbsp;:)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I was doing some tests with Round function. I saw that current
&lt;br&gt;&amp;gt; &amp;gt; subr_round() function is calculating the value correctly. The problem
&lt;br&gt;&amp;gt; &amp;gt; is when you assign the value to
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; RETURN-&amp;gt;_float.value = floor(PARAM-&amp;gt;_float.value / power + 0.5) * power;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; For example, If you print the same value assigned to a double variable
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; double temp;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; temp = floor(PARAM-&amp;gt;_float.value / power + 0.5) * power;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; printf(&amp;quot;Value: %f&amp;quot;, temp);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; This will show the right value.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; In another case, I assigned a value of 492,857 to RETURN-&amp;gt;_float.value
&lt;br&gt;&amp;gt; &amp;gt; on SUBR_round function (I assigned the value directly into
&lt;br&gt;&amp;gt; &amp;gt; gbx_subr_math.c file). I compiled gbx2 and I called Round function
&lt;br&gt;&amp;gt; &amp;gt; after and I saw that it is showing me the value of 4,92.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Maybe it could give you an idea about where I could search for fix the
&lt;br&gt;&amp;gt; &amp;gt; problem.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Greetings
&lt;br&gt;&amp;gt; &amp;gt; ACM
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any news about that?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Greetings
&lt;br&gt;&amp;gt; ACM
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Not really. But it seems something really weird : RETURN-&amp;gt;_float.value is 
&lt;br&gt;already a &amp;quot;double&amp;quot;, so how setting something in it can change the value?
&lt;br&gt;&lt;br&gt;What architecture do you use exactly?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26467853&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-devel-f3426.html&quot; embed=&quot;fixTarget[3426]&quot; target=&quot;_top&quot; &gt;gambas-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-MoveScale-saved-into-.form-files-on-gambas2-tp26122663p26467853.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26466501</id>
	<title>Re: Setting a checkbox value</title>
	<published>2009-11-22T07:59:36Z</published>
	<updated>2009-11-22T07:59:36Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Benoît Minisini ha scritto:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; bbb888 ha scritto:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Benoit,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Why oh why should setting checkbox value in code generate a click
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; event?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; bruce
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; I join.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; I think that events should be fired by user, never by code.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Why should we make a difference between the user and the code? Most of
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the time it is useless, so when you need that, just block events
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; explicitely.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; To give more details about my point of view...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 1) You cannot know that an event comes &amp;quot;from the user&amp;quot; in every case.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unless you know that events *always* come from user - I am speaking of
&lt;br&gt;&amp;gt; &amp;quot;click&amp;quot;, &amp;quot;change&amp;quot; and so on, not &amp;quot;data&amp;quot; event or &amp;quot;icon&amp;quot;.
&lt;/div&gt;&lt;br&gt;It does not matter if *you* know that an event comes from the user. The 
&lt;br&gt;toolkit just receives events from X-Window : it cannot know if this event 
&lt;br&gt;comes directly from an input device (i.e. from the user) or if it is a 
&lt;br&gt;consequence of running code previously. Of course, *some* events do not come 
&lt;br&gt;from X-Window, but are internally managed by the toolkit. But no toolkit 
&lt;br&gt;behave the same, and so you cannot be sure that a X-Window event comes &amp;quot;from 
&lt;br&gt;the user&amp;quot;, and so there is no way to know that for Gambas events too.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 2) This time, I agree with nospam x 3 :-). If events coming from the user
&lt;br&gt;&amp;gt; &amp;gt; do not raise events, how could you catch them when needed? After many
&lt;br&gt;&amp;gt; &amp;gt; years of GUI programming, I find my way the better one.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Events coming from the user *should always* raise events.
&lt;br&gt;&lt;br&gt;Sorry, I forgot a &amp;quot;not&amp;quot; before &amp;quot;coming&amp;quot;.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 3) It is more consistent to always raise events, as do the underlying
&lt;br&gt;&amp;gt; &amp;gt; toolkits used by Gambas, than sometimes raising them, especially when you
&lt;br&gt;&amp;gt; &amp;gt; can't be sure that an event comes from the user or not.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When needed: you don't raise an event - you call the event handler
&lt;br&gt;&amp;gt; directly (which is different, and impossible in gambas).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is a subtle distinction between events, hooks and methods. A
&lt;br&gt;&amp;gt; button lies on a form awaiting for an event (a user click). When the
&lt;br&gt;&amp;gt; click arrives, the button executes a method which repaints it depressed,
&lt;br&gt;&amp;gt; and calls a hook to let the main program do something useful. The
&lt;br&gt;&amp;gt; confusion arrives when event, hook and method are not separated.
&lt;br&gt;&amp;gt; Intercepting the event, we make the button insensitive, because it never
&lt;br&gt;&amp;gt; sees a user clicked on it. Intercepting the hook we can launch our
&lt;br&gt;&amp;gt; handler, to make our program do useful things. Lastly, we can call the
&lt;br&gt;&amp;gt; button method to repaint it depressed. By having these three elements
&lt;br&gt;&amp;gt; (event, hook and method) separated, we have all the control on the
&lt;br&gt;&amp;gt; button - think that a button is a really simple gadget. It would be ok
&lt;br&gt;&amp;gt; to have event-hook-method connected by default. If we want to simplify
&lt;br&gt;&amp;gt; this scheme, forcibly we have to loose some functionality.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Note that in other cases, such as the Data event or Icon event, they
&lt;br&gt;&amp;gt; should not be events - they should be hooks. Events are asynchronous and
&lt;br&gt;&amp;gt; queueable, while hooks are not. Characters arriving from a serial port
&lt;br&gt;&amp;gt; are events (asynchronous) and, if the program does not handle them fast
&lt;br&gt;&amp;gt; enough, they should be stacked or queued. In fact, serial ports always
&lt;br&gt;&amp;gt; have a buffer. Icon event is not an event: who raises those events
&lt;br&gt;&amp;gt; (treeview or fileview) can not stack them - it waits until the main
&lt;br&gt;&amp;gt; program handles them (a hook). And, in fact, they do not have a buffer.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now, it is nice to simplify GUI programming by eliminating three things
&lt;br&gt;&amp;gt; and have only one: most of the time it is ok; but this doesn't mean
&lt;br&gt;&amp;gt; event and hooks are the same...
&lt;/div&gt;&lt;br&gt;I agree that I merged hooks and event handler in Gambas. For simplicity, and 
&lt;br&gt;because Gambas events are not queued. Unless of course if the toolkit does 
&lt;br&gt;that, but the interpreter has no control on that. And for delayed events, but 
&lt;br&gt;this is an exception mainly used for having event sbehave the same in gb.qt 
&lt;br&gt;and in gb.gtk.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466501&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26466501.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26466348</id>
	<title>Re: Setting a checkbox value</title>
	<published>2009-11-22T07:42:37Z</published>
	<updated>2009-11-22T07:42:37Z</updated>
	<author>
		<name>Doriano Blengino</name>
	</author>
	<content type="html">Benoît Minisini ha scritto:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; bbb888 ha scritto:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Benoit,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Why oh why should setting checkbox value in code generate a click
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; event?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; bruce
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I join.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think that events should be fired by user, never by code.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Why should we make a difference between the user and the code? Most of the
&lt;br&gt;&amp;gt;&amp;gt; time it is useless, so when you need that, just block events explicitely.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To give more details about my point of view...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) You cannot know that an event comes &amp;quot;from the user&amp;quot; in every case.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Unless you know that events *always* come from user - I am speaking of 
&lt;br&gt;&amp;quot;click&amp;quot;, &amp;quot;change&amp;quot; and so on, not &amp;quot;data&amp;quot; event or &amp;quot;icon&amp;quot;.
&lt;br&gt;&amp;gt; 2) This time, I agree with nospam x 3 :-). If events coming from the user do 
&lt;br&gt;&amp;gt; not raise events, how could you catch them when needed? After many years of 
&lt;br&gt;&amp;gt; GUI programming, I find my way the better one.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;Events coming from the user *should always* raise events.
&lt;br&gt;&amp;gt; 3) It is more consistent to always raise events, as do the underlying toolkits 
&lt;br&gt;&amp;gt; used by Gambas, than sometimes raising them, especially when you can't be sure 
&lt;br&gt;&amp;gt; that an event comes from the user or not.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;When needed: you don't raise an event - you call the event handler 
&lt;br&gt;directly (which is different, and impossible in gambas).
&lt;br&gt;&lt;br&gt;There is a subtle distinction between events, hooks and methods. A 
&lt;br&gt;button lies on a form awaiting for an event (a user click). When the 
&lt;br&gt;click arrives, the button executes a method which repaints it depressed, 
&lt;br&gt;and calls a hook to let the main program do something useful. The 
&lt;br&gt;confusion arrives when event, hook and method are not separated. 
&lt;br&gt;Intercepting the event, we make the button insensitive, because it never 
&lt;br&gt;sees a user clicked on it. Intercepting the hook we can launch our 
&lt;br&gt;handler, to make our program do useful things. Lastly, we can call the 
&lt;br&gt;button method to repaint it depressed. By having these three elements 
&lt;br&gt;(event, hook and method) separated, we have all the control on the 
&lt;br&gt;button - think that a button is a really simple gadget. It would be ok 
&lt;br&gt;to have event-hook-method connected by default. If we want to simplify 
&lt;br&gt;this scheme, forcibly we have to loose some functionality.
&lt;br&gt;&lt;br&gt;Note that in other cases, such as the Data event or Icon event, they 
&lt;br&gt;should not be events - they should be hooks. Events are asynchronous and 
&lt;br&gt;queueable, while hooks are not. Characters arriving from a serial port 
&lt;br&gt;are events (asynchronous) and, if the program does not handle them fast 
&lt;br&gt;enough, they should be stacked or queued. In fact, serial ports always 
&lt;br&gt;have a buffer. Icon event is not an event: who raises those events 
&lt;br&gt;(treeview or fileview) can not stack them - it waits until the main 
&lt;br&gt;program handles them (a hook). And, in fact, they do not have a buffer.
&lt;br&gt;&lt;br&gt;Now, it is nice to simplify GUI programming by eliminating three things 
&lt;br&gt;and have only one: most of the time it is ok; but this doesn't mean 
&lt;br&gt;event and hooks are the same...
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Doriano Blengino
&lt;br&gt;&lt;br&gt;&amp;quot;Listen twice before you speak.
&lt;br&gt;This is why we have two ears, but only one mouth.&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26466348&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26466348.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465764</id>
	<title>Re: Setting a checkbox value</title>
	<published>2009-11-22T06:30:15Z</published>
	<updated>2009-11-22T06:30:15Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; nospam.nospam.nospam wrote:
&lt;br&gt;&amp;gt; &amp;gt; You'd be saying exactly the opposite if gambas was badly designed and
&lt;br&gt;&amp;gt; &amp;gt; didn't
&lt;br&gt;&amp;gt; &amp;gt; generate the event on a coded change when you needed it to. You would
&lt;br&gt;&amp;gt; &amp;gt; have no way in hell of easily detecting it, not ever. Besides that,
&lt;br&gt;&amp;gt; &amp;gt; firing events
&lt;br&gt;&amp;gt; &amp;gt; for code-set attributes is normal practice in a GUI. All you need do is
&lt;br&gt;&amp;gt; &amp;gt; set
&lt;br&gt;&amp;gt; &amp;gt; a flag and test it in the event code.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Using that theory one should expect that changing a forms Title should fire
&lt;br&gt;&amp;gt; the Activate event or changing a textbox's content should fire the Change
&lt;br&gt;&amp;gt; event. &amp;nbsp;I think not.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What I do in code in entirely my responsibility. &amp;nbsp;IMHO that includes
&lt;br&gt;&amp;gt; &amp;nbsp;raising events when I desire, not killing off events when I don't desire
&lt;br&gt;&amp;gt; &amp;nbsp;them.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;No, because you break the control encapsulation then. Events are &amp;quot;owned&amp;quot; by 
&lt;br&gt;the control, not by the code using it. Only him decideds when he raises its 
&lt;br&gt;events.
&lt;br&gt;&lt;br&gt;&amp;gt; I found your reply of no value and would ask that you please ignore any
&lt;br&gt;&amp;gt; &amp;nbsp;post from myself in the future.
&lt;br&gt;&lt;br&gt;nospam x 3 is always a bit rude. I told him that it is useless to do that on a 
&lt;br&gt;mailing-list, but apparently he does not see why. Please don't enter the game 
&lt;br&gt;of who has the biggest ones. :-) Or do that privately!
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465764&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26465764.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465731</id>
	<title>Re: Setting a checkbox value</title>
	<published>2009-11-22T06:26:17Z</published>
	<updated>2009-11-22T06:26:17Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; &amp;gt; bbb888 ha scritto:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Benoit,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Why oh why should setting checkbox value in code generate a click
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; event?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; bruce
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I join.
&lt;br&gt;&amp;gt; &amp;gt; I think that events should be fired by user, never by code.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why should we make a difference between the user and the code? Most of the
&lt;br&gt;&amp;gt; time it is useless, so when you need that, just block events explicitely.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;To give more details about my point of view...
&lt;br&gt;&lt;br&gt;1) You cannot know that an event comes &amp;quot;from the user&amp;quot; in every case.
&lt;br&gt;&lt;br&gt;2) This time, I agree with nospam x 3 :-). If events coming from the user do 
&lt;br&gt;not raise events, how could you catch them when needed? After many years of 
&lt;br&gt;GUI programming, I find my way the better one.
&lt;br&gt;&lt;br&gt;3) It is more consistent to always raise events, as do the underlying toolkits 
&lt;br&gt;used by Gambas, than sometimes raising them, especially when you can't be sure 
&lt;br&gt;that an event comes from the user or not.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465731&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26465731.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465672</id>
	<title>Re: Either I am blind or...</title>
	<published>2009-11-22T06:18:28Z</published>
	<updated>2009-11-22T06:18:28Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&amp;gt; &amp;nbsp;...menus don't support drag.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please tell me I am blind.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;They don't, no toolkit supports drag &amp; drop on menus natively.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465672&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Either-I-am-blind-or...-tp26463300p26465672.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465666</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T06:17:13Z</published>
	<updated>2009-11-22T06:17:13Z</updated>
	<author>
		<name>Benoît Minisini</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Toni wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi there,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I think it's got to do with the order that events fire... In any case,
&lt;br&gt;&amp;gt; &amp;gt; if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should work as you
&lt;br&gt;&amp;gt; &amp;gt; expect.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ok, that's far better than it was, many, many thanks. However after moving
&lt;br&gt;&amp;gt; the code into GotFocus the first row of the DataBrowser is never
&lt;br&gt;&amp;gt; highlighted. 
&lt;/div&gt;&lt;br&gt;Yes, this is a known bug I never fixed...
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Benoît Minisini
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465666&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26465666.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464981</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T04:41:39Z</published>
	<updated>2009-11-22T04:41:39Z</updated>
	<author>
		<name>Charlie Reinl</name>
	</author>
	<content type="html">Am Sonntag, den 22.11.2009, 23:05 +1100 schrieb
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464981&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Charlie Reinl wrote:
&lt;br&gt;&amp;gt; &amp;gt; Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464981&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt;:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Toni wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; I think it's got to do with the order that events fire... In any
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; case, if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; work as you expect.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Ok, that's far better than it was, many, many thanks. However after
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; moving the code into GotFocus the first row of the DataBrowser is
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; never highlighted. When the down arrow is pressed first on entering
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the tab, the second row is highlighted, even though the first was
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; not highlighted. When the up arrow is pressed first on entering the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; tab, the first row highlights.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;squint&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I see no methods available that will allow me to force the first row
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; to highlight :(
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I tried moving rows and refreshing the datasource. I still can't get
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; that first row to highlight.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I could send fake keyboard events to fix it but that's hardly kosher.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Salut,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; in you example give &amp;nbsp; &amp;nbsp; DataBrowser1.GridView.Rows[0].Selected = TRUE
&lt;br&gt;&amp;gt; &amp;gt; a chance but inot in GotFocus, that raise when start the form.
&lt;br&gt;&amp;gt; &amp;gt; SET it in Tab_Click.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, that highlighted the first row all right, but now the DataBrowser will 
&lt;br&gt;&amp;gt; not accept keystrokes unless I click first, which is the same problem I had 
&lt;br&gt;&amp;gt; originally except that the the first row is now highlighted. 
&lt;/div&gt;&lt;br&gt;Salut 
&lt;br&gt;&lt;br&gt;yes highlighted is not having the focus, so add just
&lt;br&gt;DataBrowser1.GridView.SetFocus 
&lt;br&gt;that should do it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Amicalement
&lt;br&gt;Charlie
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464981&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26464981.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464889</id>
	<title>Re: file.save saves in DOS format</title>
	<published>2009-11-22T04:25:23Z</published>
	<updated>2009-11-22T04:25:23Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Joshua Higgins wrote:
&lt;br&gt;&amp;gt; Thanks for the info. My program generates the /etc/exports file from
&lt;br&gt;&amp;gt; a list of IP addresses and allowed shares. For some reason, when I'm
&lt;br&gt;&amp;gt; using File.Save to save the contents of a TextArea to /etc/exports,
&lt;br&gt;&amp;gt; it is putting the two end of line characters like the DOS format,
&lt;br&gt;&amp;gt; instead of one, so the NFS server cannot read the configuration file.
&lt;br&gt;&lt;br&gt;So just Replace(TextArea1.Text, &amp;quot;\r\n&amp;quot;, &amp;quot;\n&amp;quot;)
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464889&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/file.save-saves-in-DOS-format-tp26461781p26464889.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464777</id>
	<title>Re: file.save saves in DOS format</title>
	<published>2009-11-22T04:10:36Z</published>
	<updated>2009-11-22T04:10:36Z</updated>
	<author>
		<name>joshiggins</name>
	</author>
	<content type="html">Thanks for the info. My program generates the /etc/exports file from a list
&lt;br&gt;of IP addresses and allowed shares. For some reason, when I'm using
&lt;br&gt;File.Save to save the contents of a TextArea to /etc/exports, it is putting
&lt;br&gt;the two end of line characters like the DOS format, instead of one, so the
&lt;br&gt;NFS server cannot read the configuration file.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;joshua higgins
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;------
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464777&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/file.save-saves-in-DOS-format-tp26461781p26464777.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464722</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T04:05:19Z</published>
	<updated>2009-11-22T04:05:19Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Charlie Reinl wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464722&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt;:
&lt;br&gt;&amp;gt;&amp;gt; Toni wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think it's got to do with the order that events fire... In any
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; case, if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; work as you expect.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ok, that's far better than it was, many, many thanks. However after
&lt;br&gt;&amp;gt;&amp;gt; moving the code into GotFocus the first row of the DataBrowser is
&lt;br&gt;&amp;gt;&amp;gt; never highlighted. When the down arrow is pressed first on entering
&lt;br&gt;&amp;gt;&amp;gt; the tab, the second row is highlighted, even though the first was
&lt;br&gt;&amp;gt;&amp;gt; not highlighted. When the up arrow is pressed first on entering the
&lt;br&gt;&amp;gt;&amp;gt; tab, the first row highlights.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;squint&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I see no methods available that will allow me to force the first row
&lt;br&gt;&amp;gt;&amp;gt; to highlight :(
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I tried moving rows and refreshing the datasource. I still can't get
&lt;br&gt;&amp;gt;&amp;gt; that first row to highlight.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I could send fake keyboard events to fix it but that's hardly kosher.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Salut,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; in you example give &amp;nbsp; &amp;nbsp; DataBrowser1.GridView.Rows[0].Selected = TRUE
&lt;br&gt;&amp;gt; a chance but inot in GotFocus, that raise when start the form.
&lt;br&gt;&amp;gt; SET it in Tab_Click.
&lt;/div&gt;&lt;br&gt;Well, that highlighted the first row all right, but now the DataBrowser will 
&lt;br&gt;not accept keystrokes unless I click first, which is the same problem I had 
&lt;br&gt;originally except that the the first row is now highlighted. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464722&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26464722.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464653</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T03:53:49Z</published>
	<updated>2009-11-22T03:53:49Z</updated>
	<author>
		<name>Charlie Reinl</name>
	</author>
	<content type="html">Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464653&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Toni wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi there,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I think it's got to do with the order that events fire... In any case,
&lt;br&gt;&amp;gt; &amp;gt; if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should work as you
&lt;br&gt;&amp;gt; &amp;gt; expect.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ok, that's far better than it was, many, many thanks. However after moving 
&lt;br&gt;&amp;gt; the code into GotFocus the first row of the DataBrowser is never 
&lt;br&gt;&amp;gt; highlighted. When the down arrow is pressed first on entering the tab, the 
&lt;br&gt;&amp;gt; second row is highlighted, even though the first was not highlighted. When 
&lt;br&gt;&amp;gt; the up arrow is pressed first on entering the tab, the first row highlights.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;squint&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I see no methods available that will allow me to force the first row to 
&lt;br&gt;&amp;gt; highlight :(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried moving rows and refreshing the datasource. I still can't get that 
&lt;br&gt;&amp;gt; first row to highlight.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I could send fake keyboard events to fix it but that's hardly kosher. 
&lt;/div&gt;&lt;br&gt;Salut,
&lt;br&gt;&lt;br&gt;in you example give &amp;nbsp; &amp;nbsp; DataBrowser1.GridView.Rows[0].Selected = TRUE a
&lt;br&gt;chance but inot in GotFocus, that raise when start the form.
&lt;br&gt;SET it in Tab_Click.
&lt;br&gt;-- 
&lt;br&gt;Amicalement
&lt;br&gt;Charlie
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464653&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26464653.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464315</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T03:06:36Z</published>
	<updated>2009-11-22T03:06:36Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Toni wrote:
&lt;br&gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think it's got to do with the order that events fire... In any case,
&lt;br&gt;&amp;gt; if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should work as you
&lt;br&gt;&amp;gt; expect.
&lt;br&gt;&lt;br&gt;Ok, that's far better than it was, many, many thanks. However after moving 
&lt;br&gt;the code into GotFocus the first row of the DataBrowser is never 
&lt;br&gt;highlighted. When the down arrow is pressed first on entering the tab, the 
&lt;br&gt;second row is highlighted, even though the first was not highlighted. When 
&lt;br&gt;the up arrow is pressed first on entering the tab, the first row highlights.
&lt;br&gt;&lt;br&gt;&amp;lt;squint&amp;gt;
&lt;br&gt;&lt;br&gt;I see no methods available that will allow me to force the first row to 
&lt;br&gt;highlight :(
&lt;br&gt;&lt;br&gt;I tried moving rows and refreshing the datasource. I still can't get that 
&lt;br&gt;first row to highlight.
&lt;br&gt;&lt;br&gt;I could send fake keyboard events to fix it but that's hardly kosher. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464315&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26464315.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464061</id>
	<title>Re: Setting a checkbox value</title>
	<published>2009-11-22T02:26:29Z</published>
	<updated>2009-11-22T02:26:29Z</updated>
	<author>
		<name>Doriano Blengino</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464061&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt; ha scritto:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Doriano Blengino wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; bbb888 ha scritto:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Benoit,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Why oh why should setting checkbox value in code generate a click
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; event?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; I join.
&lt;br&gt;&amp;gt;&amp;gt; I think that events should be fired by user, never by code.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You'd be saying exactly the opposite if gambas was badly designed and didn't 
&lt;br&gt;&amp;gt; generate the event on a coded change when you needed it to. You would have 
&lt;br&gt;&amp;gt; no way in hell of easily detecting it, not ever. Besides that, firing events 
&lt;br&gt;&amp;gt; for code-set attributes is normal practice in a GUI. All you need do is set 
&lt;br&gt;&amp;gt; a flag and test it in the event code. 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;No. How can you say I would say the opposite? Are you a magician? 
&lt;br&gt;Probably you think I am counter-gambas in every situation, but this is 
&lt;br&gt;not true. Anyway, who cares. I give you permission of thinking and 
&lt;br&gt;saying whatever you want about me. Your words will speak for yourself.
&lt;br&gt;&lt;br&gt;Automatic firing of events could be a matter of taste - ok. Without it, 
&lt;br&gt;you can set a property and, if you want, call the relevant event 
&lt;br&gt;handler. With automatic firing, you must declare a global variable, set 
&lt;br&gt;it before setting the property, reset it just after, and modify the 
&lt;br&gt;event handler to check for the global variable. Again, the microsoft 
&lt;br&gt;way: to complicate simple things.
&lt;br&gt;&lt;br&gt;To Fabien, which wrote:
&lt;br&gt;&amp;gt; but in this case it will work
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Object.lock(checkbox)
&lt;br&gt;&amp;gt; Checkbox.value=true
&lt;br&gt;&amp;gt; Object.Unlock(checkbox)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so then the events are fired ... it is just blocked during the variable setting
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;You say so, and you are 99% right, because &amp;quot;Checkbox.value&amp;quot; is a single 
&lt;br&gt;and fast instruction. But I still think that there is a probability of 
&lt;br&gt;1% that the user clicks on the checkbox exactly in that moment, and user 
&lt;br&gt;clicks should never be ignored. This 1% raises to 100% in my 
&lt;br&gt;filemanager. I would like to know an explanation from Benoit: why, at a 
&lt;br&gt;certain point of gambas developing, he needed to invent an object.lock() 
&lt;br&gt;and object.unlock()? I think because GTK and probably QT do this stupid 
&lt;br&gt;thing of automatically firing events. If you want to prevent the user to 
&lt;br&gt;click a button, for example, you disable it - the botton goes gray and 
&lt;br&gt;the user is notified of that. I don't see a reason to have lock and 
&lt;br&gt;unlock, apart from that quirk of GTK and QT.
&lt;br&gt;&lt;br&gt;In Delphi under windows there is a mix of things. Some widgets 
&lt;br&gt;(checkboxes for example) raise an event when modified by code. Others 
&lt;br&gt;(trackbars, for example) do not. My thought about this is a mix of 
&lt;br&gt;things too: I do respect Borland and I hate microsoft, so I can not know 
&lt;br&gt;where this inconsistency rises up - probably from win32, and Borland 
&lt;br&gt;simply reflected it. But I am sure that, using trackbars which don't 
&lt;br&gt;raise events, if I need them I add a &amp;quot;tbSpeed.Change(NIL)&amp;quot;: 6 keystrokes 
&lt;br&gt;and no worries. With checkboxes and perhaps others, if I don't want 
&lt;br&gt;automatic events, I have to modify the code in at least three points, 
&lt;br&gt;and this is frustrating.
&lt;br&gt;&lt;br&gt;Regards (especially to Nospam -:),
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Doriano Blengino
&lt;br&gt;&lt;br&gt;&amp;quot;Listen twice before you speak.
&lt;br&gt;This is why we have two ears, but only one mouth.&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464061&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26464061.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464048</id>
	<title>Re: SetFocus on DataBrowser</title>
	<published>2009-11-22T02:24:09Z</published>
	<updated>2009-11-22T02:24:09Z</updated>
	<author>
		<name>Toni-38</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;I think it's got to do with the order that events fire... In any case, 
&lt;br&gt;if you use the event &amp;quot;GotFocus&amp;quot; of the TabStrip, it should work as you 
&lt;br&gt;expect.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Toni
&lt;br&gt;&lt;br&gt;En/na &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464048&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospam.nospam.nospam@...&lt;/a&gt; ha escrit:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Okie dokey, this one is giving me so much heartburn that even rude 
&lt;br&gt;&amp;gt; suggestions are welcome.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is a form with a tab control (tsMain) that has a number of tabs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is code in tsMain_Click that sets the focus to the default 
&lt;br&gt;&amp;gt; control on the tab that was selected.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If the default control is, say, a ComboBox, the ComboBox will 
&lt;br&gt;&amp;gt; immediately accept keystrokes such as up and down arrow, which is 
&lt;br&gt;&amp;gt; correct.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If the default control is a DataBrowser, the DataBrowser will not 
&lt;br&gt;&amp;gt; accept keystrokes. It must be clicked before it will accept keystrokes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How do I get the the DataBrowser to accept keystrokes so that user 
&lt;br&gt;&amp;gt; does not have to click the control first?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; An example replicating the behaviour is attached. The database will 
&lt;br&gt;&amp;gt; need to be copied into /tmp/.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Gambas-user mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464048&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464048&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26464048.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463987</id>
	<title>SetFocus on DataBrowser</title>
	<published>2009-11-22T02:11:48Z</published>
	<updated>2009-11-22T02:11:48Z</updated>
	<author>
		<name>nospam.nospam.nospam</name>
	</author>
	<content type="html">Okie dokey, this one is giving me so much heartburn that even rude 
&lt;br&gt;suggestions are welcome.
&lt;br&gt;&lt;br&gt;There is a form with a tab control (tsMain) that has a number of tabs.
&lt;br&gt;&lt;br&gt;There is code in tsMain_Click that sets the focus to the default control on 
&lt;br&gt;the tab that was selected.
&lt;br&gt;&lt;br&gt;If the default control is, say, a ComboBox, the ComboBox will immediately 
&lt;br&gt;accept keystrokes such as up and down arrow, which is correct.
&lt;br&gt;&lt;br&gt;If the default control is a DataBrowser, the DataBrowser will not accept 
&lt;br&gt;keystrokes. It must be clicked before it will accept keystrokes.
&lt;br&gt;&lt;br&gt;How do I get the the DataBrowser to accept keystrokes so that user does not 
&lt;br&gt;have to click the control first?
&lt;br&gt;&lt;br&gt;An example replicating the behaviour is attached. The database will need to 
&lt;br&gt;be copied into /tmp/.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463987&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&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;FocusTrouble.tar.gz&lt;/strong&gt; (13K) &lt;a href=&quot;http://old.nabble.com/attachment/26463987/0/FocusTrouble.tar.gz&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/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SetFocus-on-DataBrowser-tp26463987p26463987.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463983</id>
	<title>Re: Split</title>
	<published>2009-11-22T02:10:40Z</published>
	<updated>2009-11-22T02:10:40Z</updated>
	<author>
		<name>Charlie Reinl</name>
	</author>
	<content type="html">Am Sonntag, den 22.11.2009, 01:03 -0800 schrieb yuhej:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The Split function baheves strange for me.
&lt;br&gt;&amp;gt; I receive data fon an equipment throu RS232 and I need to extract the
&lt;br&gt;&amp;gt; information from a string.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The data groups are separated by 4 chr(10) character (originally it was 2
&lt;br&gt;&amp;gt; CrLf but when reading in Gambas it became 4 chr(10) - this is also strange).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So I take the string and I use Split(myString, chr(10) &amp; chr(10) &amp; chr(10) &amp;
&lt;br&gt;&amp;gt; chr(10)).
&lt;br&gt;&amp;gt; The result is the same what as I use Split(myString, chr(10)), so the first
&lt;br&gt;&amp;gt; character only:
&lt;br&gt;&amp;gt; 0. item is one data
&lt;br&gt;&amp;gt; 1,2,3. item empty
&lt;br&gt;&amp;gt; 4. item data
&lt;br&gt;&amp;gt; 5, 6, 7. empty
&lt;br&gt;&amp;gt; etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; To solve the problem I used Replace function to replace the 4 chr(10) with
&lt;br&gt;&amp;gt; only one character and the Split function on the redefined string - so
&lt;br&gt;&amp;gt; finally my code works.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please let me know if this is a bug, a normal behaviour or I have made a
&lt;br&gt;&amp;gt; mistake when using the Split function.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards, Robi
&lt;/div&gt;&lt;br&gt;Salut Robi,
&lt;br&gt;&lt;br&gt;file:///usr/local/share/gambas2/help/help/lang/split.html
&lt;br&gt;&lt;br&gt;says : 
&lt;br&gt;Split ( String AS String [ , Separators AS String , Escape AS String ,
&lt;br&gt;IgnoreVoids AS Boolean ] )
&lt;br&gt;&lt;br&gt;hope that gambas3 does also.
&lt;br&gt;&lt;br&gt;I think your received data are ending sometimes with a ','
&lt;br&gt;so Split entered an empty Item.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;-- 
&lt;br&gt;Amicalement
&lt;br&gt;Charlie
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463983&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Split-tp26463657p26463983.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463827</id>
	<title>Re: Wizard source code</title>
	<published>2009-11-22T01:42:43Z</published>
	<updated>2009-11-22T01:42:43Z</updated>
	<author>
		<name>Charlie Reinl</name>
	</author>
	<content type="html">Am Sonntag, den 22.11.2009, 09:59 +1100 schrieb richard terry:
&lt;br&gt;&amp;gt; Hi List,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I wondered if the wizard was a gambas component or qt, if gambas is it 
&lt;br&gt;&amp;gt; possible to access the source code?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Richard
&lt;br&gt;&amp;gt; 
&lt;br&gt;Salut Richard,
&lt;br&gt;&lt;br&gt;if you have the package from &lt;a href=&quot;http://gambas.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gambas.sourceforge.net/&lt;/a&gt;&amp;nbsp;or by svn
&lt;br&gt;then you will find it here:
&lt;br&gt;&lt;br&gt;&amp;lt;dir where the package is unpacked&amp;gt;/app/src/
&lt;br&gt;&lt;br&gt;or for components
&lt;br&gt;&lt;br&gt;&amp;lt;dir where the package is unpacked&amp;gt;/comp/src/
&lt;br&gt;&lt;br&gt;You find a wizard &amp;lt;dir where the package is unpacked&amp;gt;/comp/src/gb.form
&lt;br&gt;-- 
&lt;br&gt;Amicalement
&lt;br&gt;Charlie
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gambas-user mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26463827&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gambas-user@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gambas-user&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gambas-user&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Wizard-source-code-tp26461292p26463827.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26463657</id>
	<title>Split</title>
	<published>2009-11-22T01:03:48Z</published>
	<updated>2009-11-22T01:03:48Z</updated>
	<author>
		<name>yuhej</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;The Split function baheves strange for me.
&lt;br&gt;I receive data fon an equipment throu RS232 and I need to extract the information from a string.
&lt;br&gt;&lt;br&gt;The data groups are separated by 4 chr(10) character (originally it was 2 CrLf but when reading in Gambas it became 4 chr(10) - this is also strange).
&lt;br&gt;&lt;br&gt;So I take the string and I use Split(myString, chr(10) &amp; chr(10) &amp; chr(10) &amp; chr(10)).
&lt;br&gt;The result is the same what as I use Split(myString, chr(10)), so the first character only:
&lt;br&gt;0. item is one data
&lt;br&gt;1,2,3. item empty
&lt;br&gt;4. item data
&lt;br&gt;5, 6, 7. empty
&lt;br&gt;etc.
&lt;br&gt;&lt;br&gt;To solve the problem I used Replace function to replace the 4 chr(10) with only one character and the Split function on the redefined string - so finally my code works.
&lt;br&gt;&lt;br&gt;Please let me know if this is a bug, a normal behaviour or I have made a mistake when using the Split function.
&lt;br&gt;&lt;br&gt;Regards, Robi&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/gambas-user-f3427.html&quot; embed=&quot;fixTarget[3427]&quot; target=&quot;_top&quot; &gt;gambas-user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Split-tp26463657p26463657.html" />
</entry>

</feed>
