Game Development Reference
In-Depth Information
private void TextureBrowser_Resize(object sender, System.EventArgs e)
{
if (_oldSize != ThumbnailPanel.Size)
{
_oldSize = ThumbnailPanel.Size;
this.DisplayThumbnails();
}
}
}
Figure 26.2 shows the texture browser control in design mode. The control is now
complete, which means that we can start consuming it in our applications. The
next section shows how to use it.
Figure 26.2 Screenshot of the texture browser control in design mode
Using the Control
Using the new control is very easy. The first thing you want to do is add a refer-
ence to the control assembly. The next step is to add the texture browser control
into your toolbox. You can do this by right-clicking on the toolbox and selecting
the Choose Items… option. The Choose Toolbox Items dialog will appear, show-
ing all the assemblies loaded in the Global Assembly Cache (GAC). The control
library is not registered in the GAC, so you will need to click the Browse button
Search Nedrilad ::




Custom Search