1. Erwin Milke
  2. PowerBuilder
  3. Thursday, 16 September 2021 13:42 PM UTC

Hello guys

This might be an easy one, but I just can't figure it out:

My datawindow painter does not take the default settings for columns, headers and text. 

I have gone through the application object, clicked on additional properties, and set the defaults for all the objects above with Font Arial, Size 8.

I clicked apply, saved the application object and even got out of the PB IDE.

When I come back and create a grid datawindow, it takes Tahoma 9 for all the objects. If I try a new Treeview datawindow, It uses Tahoma 10.

Do you see something missing in my actions?

Thanks for your help

 

Erwin Milke Accepted Answer Pending Moderation
  1. Friday, 17 September 2021 14:26 PM UTC
  2. PowerBuilder
  3. # 1

Well, the easiest reply would be: "Go to additional properties in the application object" hehehe.
As this is not working, I will do a cheap workaround: update the values in PBCATTBL by my own.

Thanks all for your time.

Comment
There are no comments made yet.
Erwin Milke Accepted Answer Pending Moderation
  1. Friday, 17 September 2021 13:48 PM UTC
  2. PowerBuilder
  3. # 2

Thank you so much Arnd 

It seems we can go that way.

System table PBCATTBL stores the font and size configuration for three datawindow objects.

1. Data Font

2. Heading Font

3. Label Font

In the database painter I edited the properties for one table named "TEST", changing fonts to Times New Roman, Arial and Courier.

PBCATTBL fields PBD_efce ( data ), PBH_efce ( header ) and PBL_efce ( Label ) store the font name. The font size is stored in PBD_fhgt and so on...

I just created a new datawindow and the font names and sizes were created as configured. 

Now I just need to figure out where to set a DEFAULT configuration for all the new tables to take the desired fonts.

Any ideas where to go?

Regards

 

Comment
  1. Arnd Schmidt
  2. Friday, 17 September 2021 14:41 PM UTC
I am not sure, if I am the correct person to rule on the strategy of Appeon. ( I do not see any clear line about this feature - at least no enhancements for more than a decade?)

I know projects that do NOT USE the PBCATCOL features - yes, you can also switch it off, others (minority) USE IT in a real COOL WAY .. including Editstyle etc. and maintain clean up / SQL Insert scripts for this kind of "central repository".

But this needs rules, care and dicipline.



Also keep in mind that SyntaxFromSQL can use this tables and so if you want to use this feature in production environment you have to rollout the tables/configuration.



Depending on your database it is easy to setup (generate) some basic inserts into the PBCATTBL.



Regards







  1. Helpful
There are no comments made yet.
Erwin Milke Accepted Answer Pending Moderation
  1. Friday, 17 September 2021 13:26 PM UTC
  2. PowerBuilder
  3. # 3

I ran it as an administrator.

No change  frown

Thanks for the follow up. 

Comment
There are no comments made yet.
Arnd Schmidt Accepted Answer Pending Moderation
  1. Friday, 17 September 2021 10:15 AM UTC
  2. PowerBuilder
  3. # 4

I remember that PowerBuilder also has some settings in the database... PBCATCOL etc...

hth

Arnd

Comment
  1. Chris Pollach @Appeon
  2. Friday, 17 September 2021 14:52 PM UTC
Hi Arnd .. note that these extensions only work during a new DWO construction.. After that, they are ignored. Of course, that is why we had the DWO Sync Utility.
  1. Helpful
  1. Arnd Schmidt
  2. Friday, 17 September 2021 15:01 PM UTC
Question was: "Default font settings do not apply in new datawindows".
  1. Helpful
There are no comments made yet.
Erwin Milke Accepted Answer Pending Moderation
  1. Thursday, 16 September 2021 18:59 PM UTC
  2. PowerBuilder
  3. # 5

Thanks for your advice Chris

I am not using a source code control in this application.

This work is a "one developer" system created with the Appeon 2019 R3 standard edition. 

After saving the application object, I regenerated it and I noticed that some new datawindows do take the 8 point Arial Font, but still other new ones get a 9 and 10 point Tahoma fonts. ( Randomly ).

Regards

 

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 16 September 2021 19:23 PM UTC
Does it work OK if you run the IDE "As Admin"?
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 16 September 2021 14:43 PM UTC
  2. PowerBuilder
  3. # 6

Hi Erwin;

  I had this happen a few times to me and the cause was that the Application object was under Source Code Control. I had to remember to "Checkout" the App object, apply the changes and then "CheckIn" the App object. Sometimes if an App object is not checked out, the "save" never worked. 

  Also, check if the PBL where the App object is locate is Write Protected (or the folder the PBL resides in).

Could that be your issue?

HTH
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.