Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to de-select in a Crosstab

Posted on 2004-04-12
5
Medium Priority
?
502 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 800 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

Independent Software Vendors: 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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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.

721 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