1. Steffen Chrobok
  2. PowerBuilder
  3. Friday, 26 May 2023 07:46 AM UTC
Error displaying a checkbox. The position of the checkbox and thus the complete alignment is shifted by using themes
Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 30 May 2023 17:42 PM UTC
  2. PowerBuilder
  3. # 1

Hi Sheffin;

  1. PB no longer uses the 3D look by default as it's not a W10 / W11 standard.
  2. You can force PB to use the old W7 3D look & feel though if you select the "Enable Windows Classic Style" in the PB IDE's System Options dialogue. However, the Theme feature was not designed for the old deprecated Windows 7 look & feel.
  3. The same for PB App EXE complies, you can select the "Windows Classic Style" in the Project painter. However again, the Theme feature was not designed for the old Windows 7 look & feel regardless of being used via the IDE or an EXE.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 26 May 2023 08:44 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

Some observations. The screenshot from your window and from the editor in the ide seem to have a slight difference in fonts. "Aufzahlungsfrei" doesn't show the last character in runtime. Also, if you pay attention you will see that even this checkbox seems to be positioned more on the left. Generally all checkboxes seem to be moved a little bit on the left.

Are you using the scale option?

If yes, what happens if you disable it? I believe that scale option doesn't render well when used with themes. Maybe because the control is designed based on an image.

In my projects I don't use "Left Text" option, so it's harder to see the difference.

Andreas.

Comment
  1. Benjamin Gaesslein
  2. Tuesday, 30 May 2023 06:56 AM UTC
These look like 3-D Look checkboxes to me, the scale option does nothing in that case. Text-alignment with checkbox edits is a nightmare because what you see in the painter is not actually what you get. The resulting text is always wider than it w as in the painter. Text-alignment "Right" should solve this but of course it does not work for checkbox edit styles. I usually work around this by using a seperate text control for the text description. The downside is that you can't click the text to toggle the checkbox without additional coding.
  1. Helpful
  1. David Peace (Powersoft)
  2. Wednesday, 31 May 2023 10:01 AM UTC
Another observation is the justification of the control is left justified, would changing that to right justified solve your problem?
  1. Helpful
  1. Benjamin Gaesslein
  2. Thursday, 1 June 2023 05:41 AM UTC
Right-align does not work with the button edit style, David.
  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.