Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Posts
    452

    Grin is there any possibility to auto complite combobox text ?

    i know someone made a dll to autocomplite input object but i was wondering if it is possible with combobox or is there another way for it ?

  2. #2
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by GoOgLe View Post
    i know someone made a dll to autocomplite input object but i was wondering if it is possible with combobox or is there another way for it ?
    That would require a **** lot of Effort.

  3. #3
    Join Date
    Mar 2007
    Posts
    452
    ok i have decided to do it with sqlite... but there is something wrong... can someone please check the code for me ???

    i attached the example...
    Attached Files

  4. #4
    Join Date
    Mar 2007
    Location
    México
    Posts
    183
    I think this could help you, this is how I do to autocomplete a combobox. By the way i used xMDB.dll instead of sqlite.

    I almost forget it, try changing the Sort combobox property to FALSE and you will be able to have the dropdown list sorted by the most visited url. You can set any sort value editing the query: SELECT Address,Counter FROM Sites ORDER BY...
    Last edited by webultra; 02-13-2009 at 04:47 PM.

  5. #5
    Join Date
    Mar 2007
    Location
    México
    Posts
    183
    I will attach another one, but i can't delete this post.
    Last edited by webultra; 02-13-2009 at 05:15 PM.

  6. #6
    Join Date
    Mar 2007
    Location
    México
    Posts
    183
    This one includes 3 examples for autocomplete a combobox:

    1: Using a RichText Object
    2: Using an Input Object
    3: Using a ListBox

  7. #7
    Join Date
    Mar 2007
    Location
    México
    Posts
    183
    I just changed the script for autofill the Listbox on page 3, replace the function SearchInComboBoxC with the following code:

    Code:
    function SearchInComboBoxC(ComboBoxObject,sListBoxObject)--Script For Autocomplete ComboBox1 on Page 3
    	num_OfIndex = 0;
    	wegotresults = false;
    	ListBox.DeleteItem(sListBoxObject, -1);
    	while numOfIndex ~= -1 do
    		num_OfIndex = ComboBox.FindItem(ComboBoxObject, num_OfIndex, LB_BYTEXT, "*"..strA.."*");
    		if num_OfIndex ~= -1 then
    			ListBox.AddItem(sListBoxObject, tblSites.Data[num_OfIndex][tblSites.ColumnNames[1]], num_OfIndex);
    			ListBox.SetVisible(sListBoxObject, true);
    			wegotresults = true;
    		else
    			--ListBox.DeleteItem(sListBoxObject, -1);
    			if wegotresults ~= true then
    				ListBox.SetVisible(sListBoxObject, false);
    			end
    			if strTabOrEnter then
    				url = ComboBox.GetText("ComboBox1");
    				IExplorer.Navigate("Plugin1", url);
    				if url ~= "about:blank" then
    					local Query = "INSERT INTO Sites(Address, Counter) VALUES('"..url.."','1')"
    					result = DLL.CallFunction(_SourceFolder.."\\AutoPlay\\Docs\\xMDB.dll", "Query_Update_MDB", "\""..DB.."\",\""..Query.."\",\""..Password.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)
    					if result == "OK" then
    						--Dialog.Message("Success", "Query executed.", MB_OK, MB_ICONINFORMATION)
    					else
    						Dialog.Message("Failed", result, MB_OK, MB_ICONEXCLAMATION)
    					end
    				end
    			end
    			break;
    		end
    	end
    end
    This will allow you to add more than 2 results to the ListBox1.

Similar Threads

  1. help with combobox select text in combobox
    By lnd in forum AutoPlay Media Studio 7.5
    Replies: 2
    Last Post: 04-01-2008, 06:00 AM
  2. Auto horizontal text scrolling.
    By Roger S in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 07-28-2007, 08:41 AM
  3. Replies: 33
    Last Post: 02-02-2007, 12:56 PM
  4. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  5. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts