Solved

How to de-select in a Crosstab

Posted on 2004-04-12
5
483 Views
Last Modified: 2013-12-26
Hi All,

I have a crosstab dw and the Mouse Selection Property value is true. So using control key on keyboard user can select multiple rows/column on a crosstab.

Now the question is On click of a button how will I deselect the selected rows/columns.

awaiting reply......

0
Comment
Question by:JatinVaishnav
  • 3
5 Comments
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10809242
There may be a way. I have not tried yet.

This will disable mouse selection. The next time you click on dw all rows/columns will be deselected.
dw_1.Modify("DataWindow.Selected.Mouse=No")

This will enable mouse selection again.
dw_1.Modify("DataWindow.Selected.Mouse=No")

I am not sure if that would completely resolve your issue. I will try and see if there is anything else you can do.

regards-
0
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10809243
There may be a way. I have not tried yet.

This will disable mouse selection. The next time you click on dw all rows/columns will be deselected.
dw_1.Modify("DataWindow.Selected.Mouse=No")

This will enable mouse selection again.
dw_1.Modify("DataWindow.Selected.Mouse=Yes")

I am not sure if that would completely resolve your issue. I will try and see if there is anything else you can do.

regards-
0
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 200 total points
ID: 10809367
This is one way:

You will need to use GetCursorPos, SetCursorPos, Mouse_Event WIN APIs. First move the cursor on top of the dw and call mouse_event api to simulate left click. And then move the cursor back to original position.

Psedo-code:
SetReDraw(False)
GetCursorPos
SetCursorPos
Mouse_Event
SetCursorPos
SetReDraw(True)

See examples of GetCursorPos, SetCursorPos, Mouse_Event WIN APIs below:

http://www.mbresource.com/files/32bitapi.html#Mouse_Event
http://ourworld.compuserve.com/homepages/tamareg/TechHelp/PBHelpAPI.html


regards-
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Remove unused usings from code in MonoDevelop 8 464
VB.Net Reusable Form Layout 4 149
Java Help 2 84
Embarcadero C++ Builder XE10.1 Berlin red arrow Indicator 2 34
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question