1. Brage Mogstad
  2. PowerBuilder
  3. Thursday, 23 February 2023 09:51 AM UTC

Hello,
the background color of columns in some grid dwo's turns black when I click on them.
I did manually change Processing from 0 to 1 in these dwo's.

We are using these pfc_services (constructor event of u_dw)

this.of_SetFind(TRUE)
this.of_SetSort(TRUE)
this.of_SetFilter(TRUE)
this.inv_filter.of_SetStyle(2) // Simple filterwindow
this.inv_sort.of_SetStyle(1)
this.inv_sort.of_SetColumnNameSource(2)
this.inv_filter.of_SetColumnNameSource(2)
this.inv_sort.of_SetColumnHeader(TRUE)
this.of_SetRowManager(TRUE)

I've tried to use expression for setting the columns backgroud color, both in painter and using modify, but it was futile.
I'm leaning towards making a c++ .dll external function to settle it - but really to me thats a bit extreme.
Any ideas how to fix this?

B

Brage Mogstad Accepted Answer Pending Moderation
  1. Thursday, 23 February 2023 11:22 AM UTC
  2. PowerBuilder
  3. # 1

Arnd & Andreas,
In fact, your advices combined did the trick.
Taborder 0 + disply only checked on all columns & Mouse selection unchecked for the grid did the trick.

Thanks,
B

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 24 February 2023 03:01 AM UTC
Thanks for confirming the solution!
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 23 February 2023 10:49 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

Black background will show on columns not having tab value (tab=0) and on columns having protect=1 even if those have a tab.

If your column have a tab and you don't like what protect is doing you may try to turn on the "display only" property for the column, which is only available for columns using style type "Edit".

Andreas.

Comment
There are no comments made yet.
Arnd Schmidt Accepted Answer Pending Moderation
  1. Thursday, 23 February 2023 10:41 AM UTC
  2. PowerBuilder
  3. # 3

Hi Brage,

in the Datawindow Painter there a is checkbox to allow "Mouse Selection" as a DataWindow property.

 

This allows the user to select multiple cells via mouseclick.

If your grid datawindow does not need this feature, uncheck the  "Mouse Selection" property.

 

You can read that Property during runtime via

dw_1.Describe("DataWindow.Selected.Mouse")

or modify it via:

dw_1.Modify("DataWindow.Selected.Mouse=<Yes or No>")

hth

Arnd

 

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.