I work some hours to revision an old control who made for the IDE of M2000, with capability to display all utf16 usinf Arial Unicode MS. I have gList and gTextBox with some forms as examples. Drag and drop (unicode allways) can do if you select 2 or more lines. Cntrl X and V also work.
********New********** I added Unicode support.
I send again the file...I found a variable with an annoying keystroke...r before save it...
...Coming a textbox with unicode supprort based in this control
My old glist..updated with extra functionality.
So now glist (as glist2 control) can act as listbox and with a textbox can act as combo box. You can change charset. List inside listbox isn't a collection but is a dynamic string array.
In the example are three forms. One to show how selected, selected2, scrollselected and softselected events works. One is the old example of 1 million items, and you can scroll the scroll bar and see the list to scrolling accordingly. Also a label display the showing lines, the logical lines (see code) and the scroll lines (the page knowing by scroll bar). Finally the last form show three glist controls that we can show as "popup", and for the left one, we can hold open as we write in textbox, and as we write there is an auto selection in listbox, to show us an item that starts like the text in textbox. Listboxes as combos can also used with arrows, enter, escape, and tab.
Written in vb6 (yes I move from 5 to 6...its time..)
Updated optimized code.
I put Xp styles, and a normal listbox. One glist and one standard listbox for 10000 items each need 17 seconds when 1 milion items in glist need 9.5 seconds. I have a form with an array of glist, two of them, and load 10000 item each in 2.5 seconds.
classic Listbox cannot use listindex grater than 32767. So when you fill 100000 items you get a wrong listindex. Where you find so many items? In a hard disk. If you want to put all images in a list...simply you can't with classic listbox.
The new glist has pan function. In my old version i use pan to read more of a line that was hidden by the frame. Now i put events so in an example below you find left and right pan to act as page up or down (these are from code outside the control so you can define other functions to perform). I inspired from android, when you throw tasks,.for closing purpose. This glist can serve with many ways, because it is open and not need to do much to display graphics, icons and text instead a simple line text. In my last example two glist operate one the other...so if you scroll one exactly the same scroll happen to second..If you click one, the same do to other. The idea is to make each list as a column of data, and you can hide scrollbar without losing the functionality. One scrollbar for all listboxes. So you can make a grid...
And all from a simple custom control...with no ocx or something special needed.
This is a free code.
New glist with unicode output. In the example i also use a picturebox as unicode label. Textboxes cannot display unicode.
********New********** I added Unicode support.
I send again the file...I found a variable with an annoying keystroke...r before save it...
...Coming a textbox with unicode supprort based in this control
My old glist..updated with extra functionality.
So now glist (as glist2 control) can act as listbox and with a textbox can act as combo box. You can change charset. List inside listbox isn't a collection but is a dynamic string array.
In the example are three forms. One to show how selected, selected2, scrollselected and softselected events works. One is the old example of 1 million items, and you can scroll the scroll bar and see the list to scrolling accordingly. Also a label display the showing lines, the logical lines (see code) and the scroll lines (the page knowing by scroll bar). Finally the last form show three glist controls that we can show as "popup", and for the left one, we can hold open as we write in textbox, and as we write there is an auto selection in listbox, to show us an item that starts like the text in textbox. Listboxes as combos can also used with arrows, enter, escape, and tab.
Written in vb6 (yes I move from 5 to 6...its time..)
Updated optimized code.
I put Xp styles, and a normal listbox. One glist and one standard listbox for 10000 items each need 17 seconds when 1 milion items in glist need 9.5 seconds. I have a form with an array of glist, two of them, and load 10000 item each in 2.5 seconds.
classic Listbox cannot use listindex grater than 32767. So when you fill 100000 items you get a wrong listindex. Where you find so many items? In a hard disk. If you want to put all images in a list...simply you can't with classic listbox.
The new glist has pan function. In my old version i use pan to read more of a line that was hidden by the frame. Now i put events so in an example below you find left and right pan to act as page up or down (these are from code outside the control so you can define other functions to perform). I inspired from android, when you throw tasks,.for closing purpose. This glist can serve with many ways, because it is open and not need to do much to display graphics, icons and text instead a simple line text. In my last example two glist operate one the other...so if you scroll one exactly the same scroll happen to second..If you click one, the same do to other. The idea is to make each list as a column of data, and you can hide scrollbar without losing the functionality. One scrollbar for all listboxes. So you can make a grid...
And all from a simple custom control...with no ocx or something special needed.
This is a free code.
New glist with unicode output. In the example i also use a picturebox as unicode label. Textboxes cannot display unicode.