I am new to Tek-Tips and a "pliers & wire" (read crude novice) programmer with no formal training in this area (I'm a civil engineer).
I'm busy developing an Excel application to use at the office that has a Gantt chart as one of the modules (you know, a very basic MS Project type application). I am not using graphing techniques to do this.
I've got most of the basic coding sorted (click & drag to move the task item bars, linking tasks to show dependency, calculating critical path etc).
At the moment I link tasks (I use Image controls to model the task items as these have mouse events that prove usefull) with elbow connectors created with VBA after the user "shift clicks" on 2 task item bars that need to be linked. This seems very crude and I would like to allow the user to graphically indicate the 2 tasks that have to be linked (straight connector or similar drawn between tasks like in Project) prior to adding the actual elbow connector. I figure a connector of some sort is the way to go as this allows me to interrogate the connector to find the names of the 2 tasks that were linked as well as the link sites that would tell me the dependency type (finish-start, start-start, finish-finish etc).
For the life of me I cannot get the code for this sorted. Any help would be most appreciated.
I'm busy developing an Excel application to use at the office that has a Gantt chart as one of the modules (you know, a very basic MS Project type application). I am not using graphing techniques to do this.
I've got most of the basic coding sorted (click & drag to move the task item bars, linking tasks to show dependency, calculating critical path etc).
At the moment I link tasks (I use Image controls to model the task items as these have mouse events that prove usefull) with elbow connectors created with VBA after the user "shift clicks" on 2 task item bars that need to be linked. This seems very crude and I would like to allow the user to graphically indicate the 2 tasks that have to be linked (straight connector or similar drawn between tasks like in Project) prior to adding the actual elbow connector. I figure a connector of some sort is the way to go as this allows me to interrogate the connector to find the names of the 2 tasks that were linked as well as the link sites that would tell me the dependency type (finish-start, start-start, finish-finish etc).
For the life of me I cannot get the code for this sorted. Any help would be most appreciated.