Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Keyboard state in clicked event.

3 posts in DataWindow .NET Last posting was on 2004-10-21 15:38:37.0Z
upscale Posted on 2004-10-21 14:02:00.0Z
From: "upscale" <up@scale.com>
Newsgroups: sybase.public.datawindow.net
Subject: Keyboard state in clicked event.
Lines: 6
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 12.32.34.2
X-Original-NNTP-Posting-Host: 12.32.34.2
Message-ID: <4177c158$1@forums-1-dub>
Date: 21 Oct 2004 07:02:00 -0700
X-Trace: forums-1-dub 1098367320 12.32.34.2 (21 Oct 2004 07:02:00 -0700)
X-Original-Trace: 21 Oct 2004 07:02:00 -0700, 12.32.34.2
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:579
Article PK: 125007

In order to do stuff like mult-selects, how can the state of the keyboard be
determined. ie, shift and ctrl status. I've noticed this info is not
provided in parameters to the event as it was in PB. Is the only solution
to revert to windows api calls?


Jim O'Neil [Sybase] Posted on 2004-10-21 15:11:25.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.datawindow.net
Subject: Re: Keyboard state in clicked event.
Message-ID: <9bkfn0lbo8hg7up5fh5lj1qearjibj7aom@4ax.com>
References: <4177c158$1@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: surfec007.sybase.com
X-Original-NNTP-Posting-Host: surfec007.sybase.com
Date: 21 Oct 2004 08:11:25 -0700
X-Trace: forums-1-dub 1098371485 199.93.176.7 (21 Oct 2004 08:11:25 -0700)
X-Original-Trace: 21 Oct 2004 08:11:25 -0700, surfec007.sybase.com
Lines: 12
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:582
Article PK: 125009

The information is part of the EventArgs passed into the core .NET
event. So you would indeed approach it differntly than in PB;
however, identically to any other .NET control.

On 21 Oct 2004 07:02:00 -0700, "upscale" <up@scale.com> wrote:

>In order to do stuff like mult-selects, how can the state of the keyboard be
>determined. ie, shift and ctrl status. I've noticed this info is not
>provided in parameters to the event as it was in PB. Is the only solution
>to revert to windows api calls?
>


upscale Posted on 2004-10-21 15:38:37.0Z
From: "upscale" <up@scale.com>
Newsgroups: sybase.public.datawindow.net
References: <4177c158$1@forums-1-dub> <9bkfn0lbo8hg7up5fh5lj1qearjibj7aom@4ax.com>
Subject: Re: Keyboard state in clicked event.
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 12.32.34.2
X-Original-NNTP-Posting-Host: 12.32.34.2
Message-ID: <4177d7fd$1@forums-1-dub>
Date: 21 Oct 2004 08:38:37 -0700
X-Trace: forums-1-dub 1098373117 12.32.34.2 (21 Oct 2004 08:38:37 -0700)
X-Original-Trace: 21 Oct 2004 08:38:37 -0700, 12.32.34.2
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:584
Article PK: 125012

finally found the answer...

if( (Control.ModifierKeys & Keys.Shift) != 0)
Console.WriteLine("the shift key is down");
if( (Control.ModifierKeys & Keys.Alt) != 0)
Console.WriteLine("the alt key is down");
if( (Control.ModifierKeys & Keys.Control) != 0)
Console.WriteLine("the control key is down");

"Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com> wrote in message
news:9bkfn0lbo8hg7up5fh5lj1qearjibj7aom@4ax.com...
> The information is part of the EventArgs passed into the core .NET
> event. So you would indeed approach it differntly than in PB;
> however, identically to any other .NET control.
>
> On 21 Oct 2004 07:02:00 -0700, "upscale" <up@scale.com> wrote:
>
>>In order to do stuff like mult-selects, how can the state of the keyboard
>>be
>>determined. ie, shift and ctrl status. I've noticed this info is not
>>provided in parameters to the event as it was in PB. Is the only solution
>>to revert to windows api calls?
>>
>