You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Really nice work, Edwin. Only thing I react on: When dragging mouse sideways,
selection doesn't follow, only up and down. Also, consider sending a custom
message to parent when selection changes, like a LBGN_SELCELL or something,
that sends row and column directly. That way, it becomes easier to use
LBG_GETCELLRECT to place an edit control or whatever in selected cell.
Other thoughts: why not make separate INC files for the controls? Many PB'ers
have this obsession of "one code - one exe" and there's some really cool stuff
you have created there. In any event, you deserve a huge THANK YOU from the
entire PB community for sharing your hard work for free like this. Thumbs up,
for you, Edwin.
BTW, a Virtual Grid is exactly what I have here right know. Almost done and
with lots of features. A far better and more advanced one than the simple
Virtual List I once posted. Think it has almost commercial quality this time.
If things goes well, it may become ready to be posted within the next couple
of days..
The control is in a prim. stage yet.
The drag as you mention is indeed a problem i think.
Notifications, yes of course.
While a listview uses the wm_notify, i was think of the wm_command.
Edit? on my wishlist too.
I have spread, the problem with this one is vcenter alignment
Edit <> view, i want to do this better.
A listview is easy to configure to a virtual.
...NODATA style.
An example will become available if i can mix this with the current one.
Splitting it up, one of my reasons was that it's more easy to maintain for me.
As user, if i was depending on the dll i rather would like 1 dll instead of 10 PBSctrls.
(Or do you want different INC's only?? that would be handy for me too)
Imagne commctrl split up, do you want that?
Btw, let's not be competators (in mind).
I WANT to write the virtual part too.
No hard feelings i hope..
Personally, I like separate INC files, because then it's easy to use
the custom controls in any program and still be able to compile to
stand-alone exe. A DLL is good enough too, but like many others here,
I have this obsession of one code, one exe. Also, separate INC files
are easier to maintain and add to, IMHO.
As for notifications - in the VGlist I have here, I send separate
%VLBP_COLUMNCLICKED and %VLBP_LINECLICKED messages directly to parent,
where wParam holds the value. This enables much easier use of the
control from within its parent.
Competition. Nah, I'm not much of a competitor, which is why I try to
share my work as much as I can. If anyone can benefit, I'm only glad.
If anyone finds and reports bugs in my code, I'm even glader, because
I usually learn so much from that..
Didn't you acc. test the LBGrid wich resides in the TEST.exe ?
This one is able to scroll by mouse, the GridView control does not scroll using the mouse on an item.
The one i spoke about is the GridView exe and bas
Sending messages to the parent using your way is what Spread does too.
I don't like it that much maybe i should reconsider.
If you send down an asciiz for instance, you are responsible to maintain during the WM cycle.
If i send a notify, the user is responsible for it's own buffer.
(Fill in my buffer please...)
This is what all api's doing.
Edwin, I had a chance to test it out. Very nice set of controls!
I especially like the Treeview/listview Explorer like control I think
I can use that with my HexEditor program. Is source available for this
control? I would like to adapt source so I can include it in my main exe.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment