Author Topic: I invented a new type of Windows control (List/Edit)  (Read 1391 times)

jj2007

  • Member
  • *****
  • Posts: 13651
  • Assembly is fun ;-)
    • MasmBasic
Re: I invented a new type of Windows control (List/Edit)
« Reply #30 on: August 20, 2022, 11:23:31 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
« Last Edit: August 21, 2022, 05:39:35 AM by jj2007 »

NoCforMe

  • Member
  • *****
  • Posts: 1043
Re: I invented a new type of Windows control (List/Edit)
« Reply #31 on: August 20, 2022, 11:41:42 AM »
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.)

jj2007

  • Member
  • *****
  • Posts: 13651
  • Assembly is fun ;-)
    • MasmBasic
Re: I invented a new type of Windows control (List/Edit)
« Reply #32 on: August 20, 2022, 06:04:00 PM »
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