Code: Select all
SendMessage_(GadgetID(#YOUR_STRING_GADGET), #EM_LIMITTEXT, 4, 0)
; where 4 is the char limit you set
Code: Select all
SendMessage_(GadgetID(#YOUR_STRING_GADGET), #EM_LIMITTEXT, 4, 0)
; where 4 is the char limit you set
Code: Select all
#EM_LIMITTEXT = $C5
Prototype SendMessage(hwnd, msg, wparam, lparam)
OpenLibrary(0,"user32.dll")
SendMessage_.SendMessage = GetFunction(0,"SendMessageA")
OpenWindow(0,0,0,320,240,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
StringGadget(0,10,10,100,20,"")
SendMessage_(GadgetID(0), #EM_LIMITTEXT, 4, 0)
SetActiveGadget(0)
Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow
CloseLibrary(0)
End
Does using IncludeFile get around that limitation? If so, it should be stopped.milan1612 wrote:here's a limit of about 800 lines of code