PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Right-Justified Text for CheckBoxes  (Read 946 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 212
    • View Profile
Right-Justified Text for CheckBoxes
« on: July 12, 2018, 06:22:00 PM »
After a bunch of trial and error, I've been able to get (most of) our Nomads panels to scale everything fairly well; this tracks pretty well along the lines of the text-based windows from our legacy software. (Most of the users run maximized text windows, or close to it.) The thing that doesn't do so well is a check_box with right-justified text to the left of the box.
I asked this last year, and got an answer from Mike King, which looked good, but involved a bit more work than I was in a position to do at the time. Also, our scaling wasn't happening, so just setting the positions and sizes for 100% worked well. It was put on the back burner.
Now that we've got a few things going "right", I've revisited the situation. Following his instructions, I've got it doing pretty well, but the images I'm using get shrunk REALLY small - see attached. The large checkbox is the standard one used by PxPlus. The small one is from the library: {!32X32/Controls/Check_Box_Blue}
When I scale up the window, it starts to approach reasonable size and position. But at 100% (this sample), the image is tiny, and the spacing to the text is rather large (compared to the Fonted Text above in the sample). If I use a base library image (not 32X32), the 100% image is OK, but stays that size when scaled, so it looks tiny against the enlarged fonts.
The Attribute settings for this are: Tab Stop, Button to the Right of Text, Flat Button, Flat - No Border, and Transparent. Is there anything I'm missing to get this looking decent throughout the range of sizes?
Thanks, all!
James Zukowski
Sr. Developer - J&E

Brand Industrial Services

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3582
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: Right-Justified Text for CheckBoxes
« Reply #1 on: July 12, 2018, 06:35:41 PM »
PxPlus auto-scales the check box to match the current text line height. 

The actual image is dynamically created in order to make the size correct.

With PxPlus 2017 you can also define a file which has the bitmap images you want to use which will be scaled to fit.

For different colors check boxes just set Backcolor to whatever you want to appear inside the box.