News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

I invented a new type of Windows control (List/Edit)

Started by NoCforMe, August 18, 2022, 09:17:53 AM

Previous topic - Next topic

jj2007

#30
Quote from: NoCforMe on August 20, 2022, 06:39:26 AM
Attached is the latest version of my FindIt! program which uses this "new" control to exclude files from a search. (I've been using it with search terms like .jpg, .exe, etc. Program doesn't need wildcards, like *, just text.)

The exclude listbox works fine, compliments, but its functionality seems not implemented
Re "doesn't need wildcards", most users would search for *.txt or similar and be very surprised not to find any files :sad:

For comparison, I attach my version. Some differences:
- wildcard search, e.g. *.as?|*.inc|*.rc (finds/searches text in *.asm, *.asc, *.inc and *.rc files)
- if the "text" edit is empty, find all files, otherwise only those that contain "text"
- hitting Return or clicking Go! starts the search
- window is fully sizeable

NoCforMe

Plus keep in mind that you're now in Unicode-land. No more simple zero-terminated ASCII strings.

(Easy to convert both ways, but a pain in the ass to have to do it.)
Assembly language programming should be fun. That's why I do it.

jj2007

Quote from: NoCforMe on August 20, 2022, 11:41:42 AM
Plus keep in mind that you're now in Unicode-land.

Oops - you are right. Corrected - see new attachment in the post above :thumbsup:

  SetStatus$ Cat$(Str$("%i files found in ", filesFound)+NanoTimer$())
  StringBuild res$
       For_ ecx=0 To Files$(?)-1
               Let res$=Str$("#%__i\t", ecx)+Files$(ecx)+CrLf$
       Next
  StringBuild
  uSetWin$ hResults=res$       ; Unicode, please