|
Post by (X) on Jun 10, 2023 16:48:41 GMT 1
I've been bush-wacking my way through my 20th trial with ChatGPT and I feel so close!
All I want is to be able to do is click and drag in a GFA controlled treeview environment like we are used to in Windows Explorer.
But I am thinking it is more of a matter of Message interception using a treeview callback function/procedure.
I'm getting a lot of crashing or unresponsive treeview.
|
|
|
Post by (X) on Jun 10, 2023 18:06:10 GMT 1
I am getting closer with an old demo (https://gfawhelp.gfa.net/gfa32.htm) and GFA's own method obj.HitTest(x,y)
|
|
|
Post by dragonjim on Jun 10, 2023 23:17:40 GMT 1
I seem to remember reading somewhere that drag and drop was never implemented for OCX controls. The only way you might be able to do it is by using the related Message and MessageProc events and look for the relevant messages. This article may help: learn.microsoft.com/en-us/windows/win32/controls/drag-a-tree-view-itemI admit, I haven't read it through myself but it might set you on the right path.
|
|
|
Post by (X) on Jun 11, 2023 14:32:33 GMT 1
I am making my way through the motions of performing tests to: move, copy and cut treeview branches based on shift|ctrl + mouse_down, mouse_move and mouse_up input. One tricky part is how to keep all sub-branches/children together. I am working on a recursive algorithm. I keep picturing this treeview based environment as a "Catch-All" Repository 'to which' and 'from which' I can save and retrieve: code, formulas, constants, help documentation and where I can layout the basic information needed to launch auto-builds of fully fledged applications|games|simulations all managed by an intelligent underlying construct that keeps everything organized, does the heavy lifting and speeds up development.
|
|
|
Post by (X) on Jun 12, 2023 23:07:01 GMT 1
I am making some progress with a library containing code to popup a special treeview. I am hoping I can put everything I need into this lib so a programer can easily list all procedures, variables and values, controls and their properties, everything you might want to know or modify or add to a program.
|
|