Jean
What you could do is put the following in the RightClick method and right click
the list when you want to select all the items
For n = 1 This.ListCount
This.Selected(n) = .T.
EndFor
Paul Newton
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Jean MAURICE
Sent: 02 April 2014 06:11
To: [email protected]
Subject: how to simulate a ctrl+clic
Hi,
I have to work on all the pupils in a classroom but one or two. So I built a
listbox with the name of all the pupils (about 35). In the init of the listbox,
I 'select' all the lines.
If I ctrl+clic on a pupil, it becomes unselected and selected again if I redo
the ctrl-clic. It's exactly what I want. It works great.
But if I forgot to press the CTRL key (and it will happen very often), all the
pupils become unselected at the same time and it is unbearable.
I didn't find a mean to 'simulate' the CTRL key in the click event or the
mousedown event ! Have you an idea ?
TIA
The Foxil
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.