Results 1 to 3 of 3

Thread: [RESOLVED]Auto Quick Fill

  1. #1

    Thread Starter
    Addicted Member messup000's Avatar
    Join Date
    Jun 2005
    Posts
    181

    Resolved [RESOLVED]Auto Quick Fill

    Ok I am working on creating a Coldfusion/HTML editor and I would like to make it similar to VB

    In the respect if I start typing something like < it will open a droplist like in VB.

    I can have it open the droplist and have it positioned by the word BUT what I don't know what to do is this:

    everytime I press a key it searches the droplist for the closest match
    when I press tab(like in vb) make it add <body(for example) and subtract the text added sofar.

    If you have any idea how to do this PLEASE help me this could definatly help html/ColdFusion editors and I will release it once it is complete. I will also give credit to whoever helps me with this because they would deserve it.

    Thank you

    ~Robert
    Last edited by messup000; Sep 28th, 2006 at 10:56 AM.

  2. #2
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Re: Auto Quick Fill

    get the length of what they typed and then search through you list for any items that begin with that string ie
    users types "inc"
    length = 3 so do a loop through your list and get any results that begin with inc you can do this with instr and Left
    VB Code:
    1. InStr(1, "inc", Left(listItem, 3), vbTextCompare)
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

  3. #3

    Thread Starter
    Addicted Member messup000's Avatar
    Join Date
    Jun 2005
    Posts
    181

    Re: Auto Quick Fill

    Ok well I figured it out. Its not quite done but heres initially what I did

    I created a second form that would put any keys written in the textbox on the first form into the second forms textbox. Sort of like a keylogger for the program. Then I set it so that it would clear the text if the user pressed the space bar or enter. So now the text will read each word seperatly. It would read the word then search for the word in the listbox. If it didn't find the word the list box would stay invisible. If it did the listbox would appear. Then if they wanted the user could press the TAB button and the rest of the word would appear on the textbox in the first form.

Posting Permissions

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



Click Here to Expand Forum to Full Width