ListBox:
I created a Custom ListBox Class (sLB),
I added a EditCopy MenuHandler, and put code there,
I added a ListBox
and set its super to sLB,
After a nap, I Copy the sLB.Copy MenuHandler and Paste it into that window,
I ran the project, tested the Copy MenuItem and it worked fine.
Now, days / month / years later (I forgot), in another window, I set the ListBox
super to sLB
, tested it and it worked as expected.
After another nap (that is what oldsters are best at), I had a crazy idea: whet if I had the same code two times in my project ? What will happens if I cleared a duplicate from the project, build the application and see what happens on the application footprint (size) ?
Result: the newly created application footprint is smaller than the previous one.
So, this duplicate code is not stripped at stand-alone creation.
FWIW.
PS: if I can make an error once, I can do it twice, thrice or more. I searched and, yes, Ive done it years ago !
I deleted that EditCopy MenuItem
(in another window with a sLB
), build a new Stand-Alone and it have a lower footprint (than the two previous one).
Oh, yes, I am talking about a 4KB difference (3 x KB here) in the footprint. And most of you do not care for a difference of some MB, so why do I care for so few KBs ? Sometimes I wonder