Solved

How to de-select in a Crosstab

Posted on 2004-04-12
5
492 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Anomalies in ASP.NET ConnectionStrings 4 101
HTML-Kit Question 5 103
In Notepad++ how to tell if tab files have been changed? 4 71
Angular JS Route 3 125
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

751 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