[Done] SB 3.2 StringGadget Placeholder is defect

Found an issue in SpiderBasic ? Please report it here !
hoerbie
Posts: 144
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

[Done] SB 3.2 StringGadget Placeholder is defect

Post by hoerbie »

Hi,
I don't know, if something was changed at the StringGadget and its #PB_String_PlaceHolder functionality?
Please have a look at the following example from the help with an added Placeholder gadget at the bottom (because it is missing) and try to click and type inside.

Code: Select all

; Shows possible flags of StringGadget in action...
If OpenWindow(0, 0, 0, 322, 245, "StringGadget Flags", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  StringGadget(0, 8,  10, 306, 20, "Normal StringGadget...")
  StringGadget(1, 8,  35, 306, 20, "1234567", #PB_String_Numeric)
  StringGadget(2, 8,  60, 306, 20, "Read-only StringGadget", #PB_String_ReadOnly)
  StringGadget(3, 8,  85, 306, 20, "lowercase...", #PB_String_LowerCase)
  StringGadget(4, 8, 110, 306, 20, "uppercase...", #PB_String_UpperCase)
  StringGadget(5, 8, 140, 306, 20, "Borderless StringGadget", #PB_String_BorderLess)
  StringGadget(6, 8, 170, 306, 20, "Password", #PB_String_Password)
  StringGadget(7, 8, 200, 306, 20, "Placeholder", #PB_String_PlaceHolder)
EndIf
Up until SB 3.10 the "Placeholder" text is shown in grey color and typing something in the Placeholder StringGadget deletes the "Placeholder" text, but SB 3.20 Beta2 seems to set the "Placeholder" text as normal text in black, because clicking inside the gadget and typing simply inserts the typed text between the "Placeholder" text.
And by the way, the #PB_String_PlaceHolder is not listed in the preview of the IDE when starting to type #PB_String...
Greets, hoerbie
Fred
Site Admin
Posts: 1853
Joined: Mon Feb 24, 2014 10:51 am

Re: SB 3.2 StringGadget Placeholder is defect

Post by Fred »

Both fixed, thanks.
Post Reply