Standard Toolbar icon

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Standard Toolbar icon

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:39 am

by Joseph O'Dwyer >> Wed, 6 Jan 1999 21:30:25 GMT

Does anyone know where I can get a hold of or have a standard set of tool bar icons that I can use with my JADE applications. I am interested in obtaining a set similar to the Jade toolbar icons or the MSOffice toolbar icons. Is there likely to be a toolbar set provided with the JADE development environment in the future.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Standard Toolbar icon

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:39 am

by Allistar Melville >> Thu, 7 Jan 1999 8:19:55 GMT

We have made some for our application. It's very easy.

Create a control subclassed from "Picture" called "ToolbarButton" or something.

on the windowCreated event get the control to create a frame with the right size border and at the right position relative to the picture
(this will be the bit that gives it the appearance of being indented
in or out).

Now on the mouseMove and mouseLeave events on the Picture, code it so that the frame is visible when the mouse is over it, and invisible
when it isn't.

Hope this helps.

Allistar.

------------------------------------------------------------------
Allistar Melville (BSc) Home: allistar@ihug.co.nz \_
Software Developer Work: allistar@focussoft.co.nz </'
Auckland, NEW ZEALAND /)
Web: http://homepages.ihug.co.nz/~allistar/ (/`
`
"Take from the church the miraculous, the supernatural, the
incomprehensible, the unreasonable, the impossible, the
unknowable, the absurd, and nothing but a vacuum remains."
[Ingersoll's Works, Vol. 1, p. 285] ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Standard Toolbar icon

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:39 am

by Arjan van Hasselt >> Sun, 10 Jan 1999 22:22:43 GMT

JADE provides a control called ToolbarPicture but it does display on the default toolbar palette in the painter. So to make it visible:
1) Select the Edit Control Toolbar option from the Options Menu
2) Scroll down the list and highlight ToolbarPicture. Drag and drop it into position on the Control Palette.

Now just use it like any other control.

I did something like this in the Advanced Course FaultSchema but it was before I discovered the JADE supplied one. It is a subclass of the Picture class called PictureToolBar. There a few methods which work exactly the same as the for ToolbarPicture.

Happy JADEing ... AJ avanhasselt@cardinal.co.nz


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 30 guests