1. Roland Smith
  2. PowerBuilder
  3. Friday, 19 February 2021 13:45 PM UTC

I have a treeview control which I am populating with two first levels that have two levels below them for a total of three levels. Everything has been working great until I added a third first level.

The new first level is expanded initially so the second level is visible. When I click the plus sign at the second level, it expands and the plus sign disappears. The other first levels don't do this so it must be a coding error on my part.

Does anyone have an idea of what is causing this?

 

 

Roland Smith Accepted Answer Pending Moderation
  1. Friday, 19 February 2021 19:01 PM UTC
  2. PowerBuilder
  3. # 1

I figured out my problem.

I was adding the third level during initialization instead of from the itempopulate event like the others. I'm not sure why but at least it is working now.

Thanks for the suggestions.

 

Does anyone know of a way to insert a few pixels of space between the checkbox and icon? There are touching each other which is not a good look. I am using Send to adjust the vertical spacing but there doesn't appear to be a message to adjust the checkbox/icon spacing.

 

Comment
  1. Olan Knight
  2. Friday, 19 February 2021 20:02 PM UTC
This might not be a viable workaround, but how about replacing the icon with a smaller one? A different one?
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 19 February 2021 17:46 PM UTC
  2. PowerBuilder
  3. # 2

Hi Roland;

   In your TreeViewItem structure do you set Children = TRUE in that IM branch at the 2nd level?

Regards ... Chris

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Friday, 19 February 2021 16:16 PM UTC
  2. PowerBuilder
  3. # 3

fwiw - i have a treeview control - i don't see/have the problem you are describing.

am running pb 2017R3 IDE and 2019R3 exe.  i don't recall that problem either when i was in 12.5.1

Comment
  1. mike S
  2. Friday, 19 February 2021 16:24 PM UTC
fyi, sent you an email with screen shot.



I do NOT have a picture on my treeview, and i do not have the checkbox.

so, turned on checkbox and running in IDE, it is fine. will try adding pictures.
  1. Helpful
  1. mike S
  2. Friday, 19 February 2021 16:31 PM UTC
pictures seem fine too
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 19 February 2021 14:46 PM UTC
  2. PowerBuilder
  3. # 4

It is my PBSearch which is PB 10.5 but I migrated to PB 2019-R2 to test this issue. The issue still happens in PB 2019-R2 so I suspect somehow I'm coding it wrong.

See the attached image.

Attachments (1)
Comment
  1. Armeen Mazda @Appeon
  2. Friday, 19 February 2021 15:06 PM UTC
Does it also happen in PB 10.5 or you mean only happens in PB 2017 and 2019?
  1. Helpful
  1. Roland Smith
  2. Friday, 19 February 2021 15:13 PM UTC
It happens in 10.5 and 2019. The other nodes work fine so I am thinking I missed something adding the new node.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 19 February 2021 15:52 PM UTC
Or something is wrong with your Windows OS installation. I recommend trying this out on a different computer to rule out it is environment issue.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 19 February 2021 14:05 PM UTC
  2. PowerBuilder
  3. # 5

Not really sure, but I've seen a bug in v. 2017 on the last level of not expanding on the last first level. (which now seems to have been fixed).

I think the TV control is quite buggy and you should try to make a sample app and report this as a possible bug.

regards.

Comment
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Friday, 19 February 2021 14:02 PM UTC
  2. PowerBuilder
  3. # 6

Can you post a screen print of there's no sensitive data?  It doesn't change to a minus sign?  Tbh it sounds like a bug.

Comment
  1. Kevin Ridley
  2. Friday, 19 February 2021 14:41 PM UTC
Have you tried to use the TV DW instead and see if it does the same? I've had good luck using the TV DW and building the ds behind it manually when needed.
  1. Helpful
  1. Roland Smith
  2. Friday, 19 February 2021 15:19 PM UTC
I haven't looked into TV DW. I might as the TV control has an irritating flaw: there is no gap between the checkbox and the image.

The plus sign goes away and no minus sign appears in it's place.
  1. Helpful
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.