Pages by tag

1 page is tagged with Coding MediaData Imaging

To check more tags, click here  click to open

Your own image control and App part 21


Hooking the toolbar to the project

There's no helpful wizard for adding controls to the svToolbar but then again that the wizard wasn't all that much help in the real toolbar. To add controls we have to use code and its boilerplate so copy and pasting gets it done fast.

First, select the pnlSource panel, the one nicely docked to the left of the form, and drag an instance of the svToolbar to it. With the svToolbar selected, go to the property sheet and change its name to "tbrSource", set its Dock to Top and its Height to something that will give a 16x16-iconed button a little wiggleroom beyond its borders, I've set my toolbar height to 28.

Add another svToolbar to the right hand "pnlResult", set its Name to "tbrResult", Dock to "Top" and height the same as the first one...

Before we add buttons, we'll need some pictures for Open, Delete/Clear, PageUp, PageDown, ZoomMinus, ZoomPlus, SizeToFit, MouseCrop, MouseSticky and Save

<< 1 >> 
who is smith     contact smith     rss feed
Since 1997 a place for my stuff, and it if helps you too then all the better