BPCM Posted November 30, 2015 Posted November 30, 2015 (edited) I have an edit box that requires a large amount of data to be entered, and it seems that I am hitting the size limit. Is there a way to increase the max amount of text that can be entered?Below is a stripped down example:Global Const $WM_CHAR = 0x0102 Global Const $EM_SETSEL = 0xB1 Global Const $GUI_EVENT_CLOSE = -3 Global Const $GUI_EVENT_MINIMIZE = -4 Global Const $GUI_EVENT_RESTORE = -5 Global Const $GUI_EVENT_MAXIMIZE = -6 Opt("GUIOnEventMode", 1) $Form1 = GUICreate("Edit Control Test", 615, 450, 195, 124) $Edit1 = GUICtrlCreateEdit("", 8, 8, 593, 193) $hEdit1 = GUICtrlGetHandle(-1) $hFunc1 = DllCallbackRegister('_EditHandler1', 'lresult', 'hwnd;uint;wparam;lparam') $pFunc1 = DllCallbackGetPtr($hFunc1) GUICtrlSetData(-1, "enter large amount of data here") $Button1 = GUICtrlCreateButton("Start", 8, 416, 65, 25) $Button2 = GUICtrlCreateButton("Copy to Clipboard", 80, 416, 95, 25) $Edit2 = GUICtrlCreateEdit("", 8, 232, 593, 177) $hEdit2 = GUICtrlGetHandle(-1) $hFunc2 = DllCallbackRegister('_EditHandler2', 'lresult', 'hwnd;uint;wparam;lparam') $pFunc2 = DllCallbackGetPtr($hFunc2) $Label1 = GUICtrlCreateLabel("Output:", 8, 208, 39, 17) $Progress1 = GUICtrlCreateProgress(183, 420, 425, 17) GUISetState(@SW_SHOW) While 1 Sleep(100) WEnd Edited November 30, 2015 by BPCM Code example didn't generate the problem like I expected. Reworking it
Moderators Melba23 Posted November 30, 2015 Moderators Posted November 30, 2015 BPCM,Use GUICtrlSetLimit.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
JeffAllenNJ Posted February 3, 2022 Posted February 3, 2022 Is there any documentation as to what the current limits are for various gui controls? I'm just asking because I'd like to see the current limit so that I can gauge how much to increase it by.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now