Why some functions are so difficult to find. I would like to have some controls without the restrictions for using...this or that themes..manifests or other bad habits..
So i wrote some textboxes. All of them are based in glist (latest edition).
Here I have a TextViewer to display text with line spacing as we wish and wrapping or not. The only limitation is has no drag and drop,and not for this version undo control.. Because is the glist behind this TextViewer can scroll the text holding down the mouse button and doing a move anywhere in the window of the glist
I also have some textboxes with one line only
- a Combobox with auto complete function (shows/hide a listbox of values)
- a Spinner Textbox for a long value. We can alter the value by clicking and writing, by using up down buttons, by using the scroll bar.
- a simple textbox wit centered text that can be edit ...as is, we can use it without edit, just showing text
- a button that can be slide the caption and perform the "click" (by panning right) (2 buttons using here, one to alter the wrapping of the textViewer, and the other to show/hide the paragraphs marks..
- A floating list of values to put in Spinnet TextBbox. We can "call" like a popup menu. See above the spinner textbox, when you right click.
Version 2
- ComboBox - works fine.
- CheckBox
- Info popup in a textbox demonstration
for document type
- Simple undo (undo for deleted marked text and for paragraph changes), use control Z
- Control A (select all)
- Double click select word
- Drag and Drop
you can move or copy from and to same document. double click a marked text show the drag icon. This is not the same as holding down the mouse and move. This function is for moving like using a stick the scroll bar.
Last Version
This version is almost identical to the one before. When we mark text a up or down movement of caret (or cursor) unmark the text. A second touch is about the showing of scrollbar. It was a small appearance of that scroll bar when showing the form who hold the control, that it isn't pretty, especially for that glists where the items are less or equal of viewing lines. A last touch was for document (textviewer class) for the example with file selector, a missing +1 chenage the line for caret in a drag over event when no header used (drawing) in the glist.
For the Selector Example.
Open Load File Selector and open a txt file (UNICODE or not). A new form opens with one text box (the standard one) and one from textviewer class (a wrapper class for glist4 listbox control). From file menu check enable to write and check the other options to see what happen. Also the textviewer resize as we resize the window, and the wrapping is fast, very fast (enable it from file menu). Also see that classic textbox has flickering. No flickering for Textviewer.
If anyone want the scroll bar only, then that code can be found it in Scrollio example, (I wrote the scroll bar for the scrollio control, as an image/drawing viewer, and then I do a merge of that code to the glist, the one with ...millions of items...that I posted here some months ago).
I have started the major task to, and I have exclude file,folder, color and font selectors from M2000 Environment and Interpreter, and now is time to through the classic textbox.
That's All
...for now
Look #5 for latest versions
So i wrote some textboxes. All of them are based in glist (latest edition).
Here I have a TextViewer to display text with line spacing as we wish and wrapping or not. The only limitation is has no drag and drop,and not for this version undo control.. Because is the glist behind this TextViewer can scroll the text holding down the mouse button and doing a move anywhere in the window of the glist
I also have some textboxes with one line only
- a Combobox with auto complete function (shows/hide a listbox of values)
- a Spinner Textbox for a long value. We can alter the value by clicking and writing, by using up down buttons, by using the scroll bar.
- a simple textbox wit centered text that can be edit ...as is, we can use it without edit, just showing text
- a button that can be slide the caption and perform the "click" (by panning right) (2 buttons using here, one to alter the wrapping of the textViewer, and the other to show/hide the paragraphs marks..
- A floating list of values to put in Spinnet TextBbox. We can "call" like a popup menu. See above the spinner textbox, when you right click.
Version 2
- ComboBox - works fine.
- CheckBox
- Info popup in a textbox demonstration
for document type
- Simple undo (undo for deleted marked text and for paragraph changes), use control Z
- Control A (select all)
- Double click select word
- Drag and Drop
you can move or copy from and to same document. double click a marked text show the drag icon. This is not the same as holding down the mouse and move. This function is for moving like using a stick the scroll bar.
Last Version
This version is almost identical to the one before. When we mark text a up or down movement of caret (or cursor) unmark the text. A second touch is about the showing of scrollbar. It was a small appearance of that scroll bar when showing the form who hold the control, that it isn't pretty, especially for that glists where the items are less or equal of viewing lines. A last touch was for document (textviewer class) for the example with file selector, a missing +1 chenage the line for caret in a drag over event when no header used (drawing) in the glist.
For the Selector Example.
Open Load File Selector and open a txt file (UNICODE or not). A new form opens with one text box (the standard one) and one from textviewer class (a wrapper class for glist4 listbox control). From file menu check enable to write and check the other options to see what happen. Also the textviewer resize as we resize the window, and the wrapping is fast, very fast (enable it from file menu). Also see that classic textbox has flickering. No flickering for Textviewer.
If anyone want the scroll bar only, then that code can be found it in Scrollio example, (I wrote the scroll bar for the scrollio control, as an image/drawing viewer, and then I do a merge of that code to the glist, the one with ...millions of items...that I posted here some months ago).
I have started the major task to, and I have exclude file,folder, color and font selectors from M2000 Environment and Interpreter, and now is time to through the classic textbox.
That's All
...for now
Look #5 for latest versions