PDA

View Full Version : Active ToolBar



Peter Brooks
22-Mar-2007, 08:03 PM
I thought it time to re-visit the use of an Active Tool-Bar, which is just a
plug in and supports all views, modal panels, reports etc.
This is my attempt to solve this problem. I would like people to check it
out and make improvements where necessary. I would have thought this would
be something that DAW would provide. Note this uses my Bitmaps and extra
tools, which I can provide if necessary.
The code that does it all is in the OnTimer procedure. I have attempted to
take into account all the different variables that can happen in a view. For
example, Read_only_state, No_Delete_State, system files. The button bar must
reflect the correct state of the server. The buttons must disable and enable
correctly. My attempt at getting the system file code to be generic failed.
Maybe this is VDF7 thing. Also I was wondering does this cause a memory
leak?

Happy Active Tooling.

Peter Brooks

Bob Worsley
23-Mar-2007, 11:12 AM
Vincent wrote an active toolbar back in 1999 and which is still on
vdf-guidance. Yours might have some stuff that his didn't, but I'm still
using that one in VDF 12. Didn't know if you knew about it.
Bob Worsley

"Peter Brooks" <phbrooks@optushome.com.au> wrote in message
news:Xxo0AcObHHA.5880@dacmail.dataaccess.com...
>I thought it time to re-visit the use of an Active Tool-Bar, which is just
>a plug in and supports all views, modal panels, reports etc.
> This is my attempt to solve this problem. I would like people to check it
> out and make improvements where necessary. I would have thought this would
> be something that DAW would provide. Note this uses my Bitmaps and extra
> tools, which I can provide if necessary.
> The code that does it all is in the OnTimer procedure. I have attempted to
> take into account all the different variables that can happen in a view.
> For example, Read_only_state, No_Delete_State, system files. The button
> bar must reflect the correct state of the server. The buttons must disable
> and enable correctly. My attempt at getting the system file code to be
> generic failed. Maybe this is VDF7 thing. Also I was wondering does this
> cause a memory leak?
>
> Happy Active Tooling.
>
> Peter Brooks
>
>
>

Peter Brooks
25-Mar-2007, 04:53 AM
Thanks for the info Bob.
This is where this came from originally. I re-looked at vdf-guidance and
there is a newer version in the zip file. I should do more thorough
research! However, my version has done it slightly differently and added in
extra functionality.

Bob does your version handle System tables and the No_Delete_State
correctly?

Peter Brooks

Bob Worsley
26-Mar-2007, 02:30 PM
My version is what's there on vdf-guidance. I think the only changes to the
original are to switch dfTrue/dfFalse to True/False and to add some
properties to turn the toolbar deleting and saving buttons off - for those
applications that need it. Not sure what no_delete_state is other than what
the name implies, the property only applies to the button, any application
functionality would need to be done there.
Bob

"Peter Brooks" <phbrooks@optushome.com.au> wrote in message
news:JxPrlNsbHHA.5880@dacmail.dataaccess.com...
> Thanks for the info Bob.
> This is where this came from originally. I re-looked at vdf-guidance and
> there is a newer version in the zip file. I should do more thorough
> research! However, my version has done it slightly differently and added
> in extra functionality.
>
> Bob does your version handle System tables and the No_Delete_State
> correctly?
>
> Peter Brooks
>