1. Joe Hess
  2. PowerBuilder
  3. Tuesday, 18 June 2019 18:22 PM UTC

I'm working on a basic scheduling feature using DragDrop to assign/reassign tasks. All columns have a tab order of 0. When I move a task from one cell to another, the source cell remains highlighted as show in the image. Is there any way to deselect that cell?

 

 

Thanks!

Joe

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 18 June 2019 21:20 PM UTC
  2. PowerBuilder
  3. # Permalink

Joe - 

If I understand your question, you are asking how to turn off the grid DW cell's black "highlighting"? If so, try this:

dw_1.Object.DataWindow.Selected = ''

This will de-select all items in the DataWindow. You can also do this via Modify.

Comment
There are no comments made yet.
Joe Hess Accepted Answer Pending Moderation
  1. Wednesday, 19 June 2019 17:51 PM UTC
  2. PowerBuilder
  3. # 1

Thanks for the responses. The simple solution was the Mouse Selection option mentioned by Brad. However, I went with John's answer for aesthetics. Clicking the cell changes the background of the source cell which is a good visual indicator of the selection.

 

 

 

Comment
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Wednesday, 19 June 2019 13:56 PM UTC
  2. PowerBuilder
  3. # 2

Do you have mouse-select turned off?

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 18 June 2019 18:49 PM UTC
  2. PowerBuilder
  3. # 3

Hi Joe;

   Suggestion: In the DragDrop event, you could use the DW Control's GetColumn () command to see what column has focus. From there, use the column name/number to deselect that column's data ... just a thought.

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.