<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Wonderful,</p>
<p><br>
</p>
<p>This is exactly the work-around I was looking for.... Thanks a
lot...</p>
<p><br>
</p>
<p>Out of curiosity, any ideas about detecting just Ctrl key on
KeyPress ? According to what I have seen, it seems to be
inconsistent with the documentation I mentioned. ;)<br>
</p>
<p><br>
</p>
<p>TIA,<br>
</p>
<p>David</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">El 25/10/18 a las 14:12, Fabien Bodard
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:CAFkCsL7wqz+HP+wEG_Hgko4nsbTK+rct9Gi=rGqmoDzF1bQWJw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">If you want to do that you must use the Mouse event
:
<div><br>
</div>
<div>Public Sub MyGrid_MouseDown()</div>
<div><br>
</div>
<div> If Mouse.Ctrl then</div>
<div> MyGrid......</div>
<div> end if</div>
<div><br>
</div>
<div>End</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Le jeu. 25 oct. 2018 à 13:31, David Sanromá <<a
href="mailto:dsanroma@gmail.com" moz-do-not-send="true">dsanroma@gmail.com</a>>
a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello
everyone,<br>
<br>
I am brand new to Gambas and I must say I am loving it.<br>
<br>
<br>
I do have 2 questions...<br>
<br>
* I am trying to use a GridView (Mode = Single) and once I
select an <br>
element, I don't seem to find the way to "Unselect" it via the
UI in <br>
run-time. I tried Ctrl+Click, Alt+Click, Shift.... and so on
and no <br>
dice. Something I should know ?<br>
<br>
<br>
* I tried to "implement" my own Ctrl+Click to unselect the
current row <br>
and I found an strange behavior which seems inconsistent with
the <br>
documentation.<br>
<br>
<br>
Public Sub FormatsGridView_KeyPress()<br>
<br>
Print Key.Control<br>
<br>
End<br>
<br>
<br>
It prints False when I just press the Ctrl key by it self.
However, it <br>
prints True when I press Ctrl+A<br>
<br>
<br>
I tried the code in the documentation <br>
(<a
href="http://gambaswiki.org/wiki/comp/gb.qt4/key/control?nl"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://gambaswiki.org/wiki/comp/gb.qt4/key/control?nl</a>)
and same thing. <br>
Me.Text is always set to False if the only key that is pressed
is the <br>
Control key by itself.<br>
<br>
<br>
Please forgive my inexperience with Gambas ;)<br>
<br>
TIA,<br>
<br>
David<br>
<br>
<br>
<br>
----[ Gambas mailing-list is hosted by <a
href="https://www.hostsharing.net" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
]----<br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">Fabien Bodard </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
</body>
</html>