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
Solved

How to de-select in a Crosstab

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 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 new code templates in NetBeans IDE 8.0 for Windows.

840 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