Autocompleting Combobox and Strings
-
- Enthusiast
- Posts: 746
- Joined: Fri Jul 14, 2006 8:53 pm
- Location: Malta
- Contact:
-
- Enthusiast
- Posts: 746
- Joined: Fri Jul 14, 2006 8:53 pm
- Location: Malta
- Contact:
Try again to see if this is the behavior you're looking for ...
http://www.seijin.net/Storage/Code/Autocomplete.pb
http://www.seijin.net/Storage/Code/Autocomplete.pb
-
- Enthusiast
- Posts: 746
- Joined: Fri Jul 14, 2006 8:53 pm
- Location: Malta
- Contact:
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Oh yes, I sleep. See? I didn't get to Mr. Vogel's bug report until this morning.
http://www.seijin.net/Storage/Code/Autocomplete.pb
http://www.seijin.net/Storage/Code/Autocomplete.pb
-
- Enthusiast
- Posts: 157
- Joined: Tue Feb 13, 2007 6:16 pm
- Location: Romania
- Contact:
great piece of code
hi !
great job on the autocomplete function
i have only one small problem it seams is limited to 2607 items in the array
any update that would support more items or is just me with the 2607 limit ?
this is the code
i get a invalid memmory acces at this line of code
great job on the autocomplete function
i have only one small problem it seams is limited to 2607 items in the array
any update that would support more items or is just me with the 2607 limit ?
this is the code
Code: Select all
Dim Array01.s(0)
For x=0 To 2607
ReDim Array01.s(x)
Array01(x)=randomstring(10)
Next x
Code: Select all
MatchText = PeekS(@*Position\FakeString[iLoop])
Hey. I'd have to see the actual code you're using or at least a small example that exhibits the same behavior.
In the meantime, can you try the updated code listed here:
http://www.purebasic.fr/english/viewtopic.php?t=23248
Also, is there any particular reason you're continuously redim'ming the array in the loop?
Take care.
In the meantime, can you try the updated code listed here:
http://www.purebasic.fr/english/viewtopic.php?t=23248
Also, is there any particular reason you're continuously redim'ming the array in the loop?
Take care.
Hey Xombie -- I just tried out this code and found that if you ac_SetAutocomplete() on a combo that's on a secondary window then close the window with CloseWindow() and re-open it, re-call ac_SetAutocomplete() that it doesn't work.
Will it only work once for any Window?
Will it only work once for any Window?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Ouch.. Additionally if you call ac_RemoveAutocomplete() on a combo then close the window it's on there is a nasty little crash (references line 778 in the autocomplete code I have. It's the return of the _ac_HandleComboEvents() procedure..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Why not just let Windows handle the autocomplete stuff ? (if you can require WinMe or newer)
http://www.purebasic.fr/english/viewtopic.php?t=24721
http://www.purebasic.fr/english/viewtopic.php?t=24721
quidquid Latine dictum sit altum videtur
Ahh.. I hadn't found that post..
I'll reply there with a question.
I'll reply there with a question.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
I switched it around to use Freak's Win API implementation..
However, I just put the autocomplete on a combo that was on a window that users can close and open. Once I opened it and the autocomplete was assigned, if I closed and re-opened it the autocomplete never worked again.
However, I just put the autocomplete on a combo that was on a window that users can close and open. Once I opened it and the autocomplete was assigned, if I closed and re-opened it the autocomplete never worked again.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net