1. Lukas Kluge
  2. PowerBuilder
  3. Monday, 28 October 2019 07:27 AM UTC

Hello,

I have a problem with a column in a datawindow. The column is a string column and is supposed to contain a subject of a text. If I type a long text without spaces in the column (like a filepath) and the column does not have focus part of the text is not visible because it extends out of the column (see attachment NoFocus.png). If I click on the column so it has focus the text is broken up and all of it is visible (Focus.png).

Is there a way to make it look correct even when the column does not have focus? Vertical Autoscroll is checked, but it does not fix my problem.

 

Thank you!

Attachments (2)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 28 October 2019 18:09 PM UTC
  2. PowerBuilder
  3. # 1

Hi Lukas;

  Have a look at these DWO properties that I use to for these type of situations ...

  • Use a Grid Style DW as this is resizable by the App user.
  • Use Auto Horizontal Scroll "ON" to allow user to scroll through the entire text
  • Use Tool Tip expression to allow the user to see entire contents when a "mouse over" occurs
  • Use a Display Format with "Use Ellipsis" turned ON to indicate to user to scroll for further information
  • Use "Auto Size Width" in the "Position Tab" to have the DWO calculate the proper size at run-time to display the test properly (instead of wrapping). In this case, do not use Auto Size Height.

Food for thought.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 28 October 2019 16:24 PM UTC
  2. PowerBuilder
  3. # 2

The only thing I can think of is this:

Use a column which is only visible and which has editstyle Richtext.

Place it on top of the column where you have the display problem and set them invisible / visible depending on where the focus is (itemfocuschanged, getfocus, losefocus).

You can't easily change the editstyle by using Modify(), so that's why I think this is the simplest solution.

In the itemchanged, you'll have to update the contents of the column with the richtext edit style.

HIH

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.