Editor box heights wrong
Posted: Tue Feb 14, 2017 2:43 pm
On my LinuxMint 17.3 I noticed that the form designer defaulted to a height of 20 for editor boxes. When I actually run the code, the heights are more than double what they are in the designer. I can't seem to shrink them any. Code below creates three editor boxes of different heights but they are the same visual height when run. It seems there is some minimum height enforced behind the scenes.
Code: Select all
Global Window_0 = OpenWindow(#PB_Any, 0, 0, 150, 150, "Window_0", #PB_Window_SystemMenu)
Global Editor_0 = EditorGadget(#PB_Any, 5, 0, 140, 10)
Global Editor_1 = EditorGadget(#PB_Any, 5, 50, 140, 20)
Global Editor_2 = EditorGadget(#PB_Any, 5, 100, 140, 30)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
CloseWindow(Window_0)