|
Post by meerkat on Mar 20, 2019 7:42:56 GMT -5
Is there a limit on the size of a checkbox label. I can't get the complete label to show. What am I doing wrong? Thanks for the help..
checkbox #1.cb, "I am a checkbox", [set], [reset], 10, 10, 130, 20 checkbox #1.cb1, "I am a checkbox", [set], [reset], 10, 40, 230, 20 checkbox #1.cb2, "I am a checkbox", [set], [reset], 10, 70, 330, 20 checkbox #1.cb3, "I am a checkbox", [set], [reset], 10, 100, 430, 20
WindowWidth = 500 WindowHeight = 160
open "Checkbox test" for dialog as #1 #1 "font arial 12 bold"
wait
|
|
|
Post by metro on Mar 20, 2019 8:25:18 GMT -5
Dan,
I get different results with lb4.5.1 and lb5 (lin) both though don't like the font size, rem it out or set it to 9 which works for 4.5.1 but lb5(lin) still wont display it all. someone smarter than me will give us a reason.
checkbox #1.cb, "I am a checkbox you need to check to select your option", [set], [reset], 10, 10, 360, 20 checkbox #1.cb1, "I am a checkbox", [set], [reset], 10, 40, 130, 20 checkbox #1.cb2, "I am a checkbox", [set], [reset], 10, 70, 130, 20 checkbox #1.cb3, "I am a checkbox", [set], [reset], 10, 100, 130, 20
WindowWidth = 500 WindowHeight = 160
open "Checkbox test" for dialog as #1 #1 "font arial 9 bold" 'or rem it out
wait [set] wait [reset] wait
|
|
|
Post by tsh73 on Mar 20, 2019 14:56:10 GMT -5
Under Win 10, font set to 125% first program
font size 12 "I am a checkbox" shows just "I am a check" "I am a checkbox***123456789" shows "I am a checkbox***1234"
font size 9 fits all text.
(Could it be related to 125% setting as well?)
|
|
|
Post by Stefan Pendl on Mar 20, 2019 18:40:39 GMT -5
A dialog type window should handle the DPI settings correctly, but that depends on the implementation of the Smalltalk widget. From my experience a DPI setting of 100% always works, but newer monitors have a higher native resolution and you need higher DPI settings to get a more readable size of the text. In general high DPI awareness is now state of the art and should be taken into account.
|
|