Solved

How to de-select in a Crosstab

Posted on 2004-04-12
5
477 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

757 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now