hi there,

i saw once a source where a listview control is used as list -
everything is managed by the control (memory, number of items, ...)

anyone remember where is this trick used ?
i dont want to reinvent the wheel :) (already did for richedit URL control &
mouse hoovering on richedit specific text - delimited by [] )

thanks ...
Posted on 2002-10-10 07:17:02 by TBD
do you mean a custom listview control? if yes, i wrote one but i never
found time to implement scrollbars. sorry for not filtering unneeded stuff
out of the example i attached...
Posted on 2002-10-10 07:42:39 by mob
nice stuph mob, but that is not it ...

i mean to create a listview control, hidden and use it as linked list
for example i want to use to keep track of open files and have the possibility
to go back (get count-1 item)
Posted on 2002-10-10 07:45:50 by TBD
linked list? why? you have an index and thats all you need in a listview control.
with that index you can parse through the listview items...

but for tasks like this one I wouldn't like so much overhead... linked lists are very
easy to code and on this board there are tons of sources about this topic.
Posted on 2002-10-10 08:17:07 by mob
TBD,
i agree with mob, coding your own linked list is a skill that every programmer should know and be able to do in their sleep. One of the reasons you code in asm is for the lack of bloat, and you are negating that benefit by using a listview to manage such a simple task :)
Posted on 2002-10-11 07:00:26 by sluggy
speaking about bloat ...

with listview control i use:
- 1 createwindowex - create list
- 2 sendmessages, 2 movs - add item
- 1 sendmessage - delete item
- 1 sendmessage - get number of items
- easy to made it visible to see the list in realtime :)

if someone can create a list that fits this "bloat" i use it!

you can see the "bloat" in action here

suggestions are always welcome, critics too :tongue:
Posted on 2002-10-11 07:09:24 by TBD

with listview control i use:
- 1 createwindowex - create list
- 2 sendmessages, 2 movs - add item
- 1 sendmessage - delete item
- 1 sendmessage - get number of items
- easy to made it visible to see the list in realtime


okay but why are you using asm then? this would be 100 times easier to
implement in vb or c. asm makes me want more control in general, thats the
reason i stick to it and will stick to it in future. and even if a handwritten linked
list routine is bigger in size then "invoke DoIt, this, that" ... I call using lv's
as backbuffer bloat... hell i even avoid using those silly pre-made dialogs and
controls where i can. if i want them i just do it in vb or c++ ... asm is for the
real thing.

it would be way better if you rewrite this link-highlighting example to a real
custom control... without richedit and all that f*ck :)

ah, good luck anyway
bye
Posted on 2002-10-11 08:16:01 by mob

asm makes me want more control in general


i started AsmMindWeb to have more control on developing and to make a smaller version
than 1.9Mb standalone exe TCL version made from 3k source. so now i have 20k ASM source
makeing 5.5k EXE - nice :grin:


it would be way better if you rewrite this link-highlighting example to a real
custom control... without richedit and all that f*ck


agree, but i dont have the time and the nerve to start this. do you ?
Posted on 2002-10-11 08:36:15 by TBD

agree, but i dont have the time and the nerve to start this. do you ?

sure

i posted this listview above... this is a 100% selfmade one, in the source
you'll find not one lousy premade window control (okay execept the basic
windows ) ...so yes i have time, but when *you* doesn't have enough time
than WHY ASM? if you don't include the c standard libs the compiled output
should not differ that much in size and speed.

however, the prog you wrote is cool and i'm not you so let's go ahead :)
Posted on 2002-10-11 08:55:29 by mob
mob: i am lazy with a twist :grin:

seriously, why dont you make a richedit replacement ?
a lot of people will use it (me, IDE developers, ...)

something like asmedit from AsmWork (FASM package),
documented like Thomas tutorials and easy to use :)

what do ya say ? i subscribe as betatester right now
Posted on 2002-10-11 09:06:41 by TBD
Nice program!

Bug: it thinks text below the end of the file is a hyperlink too.

Suggestion: Make copy & paste work ;)
Posted on 2002-10-11 09:09:47 by Qweerdy
Qweerdy: i found on my computer too ... but very random
and i dont know why

copy & paste DO work or do you mean to have a right click popup ?
(right click is used to go back)

also i posted an updated version ... check the original post.
Posted on 2002-10-11 10:17:04 by TBD