1. CJ Lai
  2. PowerBuilder
  3. Friday, 13 March 2020 15:08 PM UTC

Hi

I am running a PB 2017 R3, build 1915

 

I noticed that when I turned on the 'Autosize Height' on on a edit/data field, the field's border (no matter what it's set in the painter) disappear in the run time. 

Does any one notice that, or is it just me?

 

If you have a work-around to get the border to stay and show during the run time while the field's Autosize is on, please advise. It'd be appreciate it

 

Thanks

CJ

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 13 March 2020 15:59 PM UTC
  2. PowerBuilder
  3. # 1

Hi CJ;

   That is because this feature was designed to be used only with "report" DWO's both in normal and in Print Preview Mode where the user can view only ( All Tabs = 0 and "ReadOnly" property set).

Regards ... Chris

Comment
  1. CJ Lai
  2. Friday, 13 March 2020 16:16 PM UTC
Hi Chris

Sounds like if I turn on the "AutoSize" property of the edit field, I'll need to live without the field's border?
  1. Helpful
There are no comments made yet.
Andrew Barnes Accepted Answer Pending Moderation
  1. Friday, 13 March 2020 17:49 PM UTC
  2. PowerBuilder
  3. # 2

Hi CJ,

I am trying to understand precisely what you mean by disappearing borders.  Do you mean that you have an AutoSizing edit field with some text in it but whose box or 3D lowered border disappears leaving you with text being displayed in a borderless field?  Or do you mean that you have an AutoSizing edit field that when it has no text in it, such as immediately after insert, disappears entirely borders and all? 

Using PB2017 R3 Build 1858, I  recently developed a screen for a desktop application in which the main entry/display field can be AutoSized, and it works fine showing the borders, but with the caveat that if there is no data in the field, the field disappears entirely.  Basically the screen has a series of variable length notes.  I give the user the option of displaying the notes as either fixed height using the full screen, fixed height for a specified number of lines, or AutoSized.  All these options get set programmatically using the Modify method.

Being aware that AutoSized notes without text disappear, when the user inserts a new note while in AutoSizing mode, I remove the AutoSizing and the note height to a fixed height to fill the screen.  After the note has been entered, the user can reenable the AutoSizing and everything looks good.  Technically the user could reenable AutoSizing immediately after inserting the note, but seeing the empty note disappear, they would know to remove the AutoSizing.

While developing the screen, I definitely wished that PB offered a minimum height property for AutoSized fields, but since it does not, I just handle it programmatically.

Andy

   

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.