SB 3.10 - String gadget in dialog: Not all constants have an effect.
Posted: Sun Aug 17, 2025 11:01 am
Unfortunately, the following constants have no effect:
#PB_String_LowerCase
#PB_String_UpperCase
#PB_String_PlaceHolder (I would like to use this)
Test code.
#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