SB 3.10 - String gadget in dialog: Not all constants have an effect.

Found an issue in SpiderBasic ? Please report it here !
KeyPusher
Posts: 2
Joined: Sat Aug 16, 2025 11:05 am

SB 3.10 - String gadget in dialog: Not all constants have an effect.

Post by KeyPusher »

Unfortunately, the following constants have no effect:
#PB_String_LowerCase
#PB_String_UpperCase
#PB_String_PlaceHolder (I would like to use this)

Test code.

Code: Select all

Xml$=	"<window name='test' minwidth='300' minheight='auto' flags='#PB_Window_ScreenCentered|#PB_Window_SystemMenu|#PB_Window_SizeGadget'>"+
		"		<vbox >"+
		"		<string  text='4711 only numbers :-)' flags='#PB_String_Numeric'/>"+
		"		<string  text='Password :.-)' flags='#PB_String_Password'/>"+
		"		<string  text='read only :-)' flags='#PB_String_ReadOnly'/>"+
		"		<string  text='only lowercase LETTERS :-(' flags='#PB_String_LowerCase'/>"+
		"		<string  text='only uppercase LETTERS :-(' flags='#PB_String_UpperCase'/>"+
		"		<string  text='borderless :-)' flags='#PB_String_BorderLess'/>"+
		"		<string  text='place holder text not working :-(' flags='#PB_String_PlaceHolder'/>"+
		"	</vbox>"+
		"</window>"
		
  If ParseXML(0, XML$) And XMLStatus(0) = #PB_XML_Success
    
    If CreateDialog(0) And OpenXMLDialog(0, 0, "test")
      Debug "Dialog created"      
    Else  
      Debug "Dialog error: " + DialogError(0)
    EndIf
  Else
    Debug "XML error: " + XMLError(0) + " (Line: " + XMLErrorLine(0) + ")"
  EndIf