Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 To: Mike Yearwood
  Where is Mike Yearwood?
 Toronto
 Canada
 Mike Yearwood
 Tags
Subject: RE: A Class I am working on
Thread ID: 154339 Message ID: 154571 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Tuesday, December 18, 2007 1:47:02 AM         
   


> Hey Bernard
>
> Could that be used in a VFP toolbar?
>
> Mike Yearwood
> www.foxridgesoftware.com
> President: Toronto Ontario FoxPro User's Group

Of course Mike. Works "out of the box". After all a toolbar is just a special type of form.

This is simplicity iteself. The only thing is that since you need to add init code to set up the buttons, you need to create a toolbar class with the zoombzr added.

So just create a new toolbar class and drop the zoombar class into it. Then change the code in the INIT of the zoombar class and away you go.

For instance I created a zoomtoolbar class and added it to the bbzoombar.vcx

I created a form and added a button - "Show Toolbar"
In the click of that button is this code

SET CLASSLIB TO bbzoombar.vcx ADDITIVE
ThisForm.otoolbar= CREATEOBJECT('bbtoolbar')
ThisForm.oToolbar.Left = THIS.Left + 10
ThisForm.oToolbar.Top = THIS.Top - 70
ThisForm.oToolbar.Visible = .T.


Run the form and up comes the toolbar with the zoombar configured and animatinmg: see below:


Of course, if used in a floating toolbar, the better option will be to set the centerzoom property to .T.

But here it is normal and being in a toolbar you can even dock it anywhere as below, where I have docked it to the bottom of my _screen. Of course you need to reduce the size of the icons.



Bernard

** If you see someone without a smile, give em one of yours :) **

ENTIRE THREAD

A Class I am working on Posted by Bernard Bout @ 12/14/2007 3:41:49 PM
RE: A Class I am working on Posted by Eric den Doop @ 12/14/2007 3:44:29 PM
RE: A Class I am working on Posted by Ken Murphy @ 12/14/2007 3:44:36 PM
RE: A Class I am working on Posted by Benny Thomas @ 12/14/2007 7:24:15 PM
RE: A Class I am working on Posted by Don Higgins @ 12/14/2007 7:27:07 PM
RE: A Class I am working on Posted by Emerson Reed @ 12/14/2007 8:02:39 PM
RE: A Class I am working on Posted by Cesar Chalom @ 12/14/2007 8:33:09 PM
RE: A Class I am working on Posted by Emerson Reed @ 12/15/2007 11:07:49 AM
RE: A Class I am working on Posted by M. Tanveer Ul Hassan Shaheen @ 12/18/2007 7:59:39 AM
RE: A Class I am working on Posted by Emerson Reed @ 12/18/2007 12:45:17 PM
RE: A Class I am working on Posted by M. Tanveer Ul Hassan Shaheen @ 12/18/2007 2:09:10 PM
RE: A Class I am working on Posted by Emerson Reed @ 12/19/2007 11:22:57 AM
RE: A Class I am working on Posted by Bernard Bout @ 12/15/2007 4:34:30 AM
RE: A Class I am working on Posted by Emerson Reed @ 12/15/2007 2:20:06 PM
RE: A Class I am working on Posted by Bernard Bout @ 12/15/2007 2:53:00 PM
RE: A Class I am working on Posted by Emerson Reed @ 12/17/2007 11:34:46 AM
RE: A Class I am working on Posted by Larry Crumbie @ 12/15/2007 3:59:10 PM
RE: A Class I am working on Posted by Bill Chambers @ 12/17/2007 5:32:12 PM
RE: A Class I am working on Posted by Mike Yearwood @ 12/17/2007 6:05:37 PM
RE: A Class I am working on Posted by Cesar Chalom @ 12/17/2007 6:24:12 PM
RE: A Class I am working on Posted by Bernard Bout @ 12/18/2007 1:48:37 AM
RE: A Class I am working on Posted by Cesar Chalom @ 12/18/2007 12:00:55 PM
RE: A Class I am working on Posted by Bernard Bout @ 12/18/2007 2:12:27 PM
RE: A Class I am working on Posted by Cesar Chalom @ 12/18/2007 3:25:23 PM
RE: A Class I am working on Posted by Bernard Bout @ 12/19/2007 12:14:22 AM
RE: A Class I am working on Posted by Bernard Bout @ 12/19/2007 1:03:42 AM
RE: A Class I am working on Posted by Cesar Chalom @ 12/22/2007 3:13:25 PM
RE: A Class I am working on Posted by Bernard Bout @ 12/23/2007 12:39:57 AM
RE: A Class I am working on Posted by Cesar Chalom @ 12/18/2007 11:12:30 PM
RE: A Class I am working on Posted by Bernard Bout @ 12/18/2007 1:47:02 AM
RE: A Class I am working on Posted by Ronan Masangcay @ 12/24/2007 11:11:38 AM
RE: A Class I am working on Posted by Boudewijn Lutgerink @ 12/25/2007 9:27:37 AM