PB6.0 Raspberry Pi Bullseye x32 StringGadget with #PB_Text_Center Fails
Posted: Wed Jan 11, 2023 1:15 am
OS x32
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
A normal TextGadget like this
TextGadget(#Text_Line3, 120, 60, 650, 25, "", #PB_Text_Center)
works fine
A StringGadget like this
StringGadget(#String_Line1, 120, 110, 650, 25, "", #PB_Text_Center)
Doesn't work, the cursor position is on the far left , no typed letters are shown and a Entity_ID$ = GetGadgetText(#String_Line1)
results into an empty Entity_ID$.
If you change the line to
StringGadget(#String_Line1, 120, 110, 650, 25, "")
Works fine, typed text shows up on the left and the variable Entity_ID$ = GetGadgetText(#String_Line1)
is filled correctly.
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
A normal TextGadget like this
TextGadget(#Text_Line3, 120, 60, 650, 25, "", #PB_Text_Center)
works fine
A StringGadget like this
StringGadget(#String_Line1, 120, 110, 650, 25, "", #PB_Text_Center)
Doesn't work, the cursor position is on the far left , no typed letters are shown and a Entity_ID$ = GetGadgetText(#String_Line1)
results into an empty Entity_ID$.
If you change the line to
StringGadget(#String_Line1, 120, 110, 650, 25, "")
Works fine, typed text shows up on the left and the variable Entity_ID$ = GetGadgetText(#String_Line1)
is filled correctly.