Author: Paul Newton
Posted: 2014-04-02 at 10:23:00
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:profoxtech-bounces@leafe.com] On Behalf Of Jean MAURICE
Sent: 02 April 2014 06:11
To: profoxtech@leafe.com
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: ProFox@leafe.com
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/9A8106AFB0EF9B44B69045C4448935A2506F04B7@NLBAWEXMBX1.infor.com
** 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.