WebGen

Quickly make WebControlWrapper objects
Download for Mac

About

As a custom web control creator I found the setup for the basic parts of WebControlWrapper to be a smidge tedious. One must create the basic constants for each and every control, and help your soul if you forget something important like IncludeInTabOrder

If you're like me, you probably have a basic empty control saved somewhere. To create a new web control, duplicate the basic empty one and fill in all the details. That is now the way of the past.

WebGen creates a WebControlWrapper subclass pre-set with basic constants, navigator and layout icons, and will even set up library loading. Set up, generate, and drag the XML file into your Xojo Web project!

Using WebGen

I would recommend that you fill in your base namespace identifier first. WebGen will add to it as you type the name of the control (much like the Xojo IDE does.) After filling out the details press Create to save the control as a XML file. Drag this file from your desktop into the navigator in Xojo and presto it's done!

Name

The control name

Namespace

The namespace for the control. Fill this out first, leave a trailing dot, and watch the magic happen!
If you have not registered a base namespace with Xojo, please use the format tld.domain.control_name

IDE Behavior

Sets some true/false values for basic constants. Turning Tray Item on will also automatically hide the position locking controls in the IDE, awesome! The default values here are set for the most common use-case.

Icons

Drag and drop images here (or use the Select button) to set up the icons for display in the IDE. If you need to remove them right-click in the image well and select Clear. Warnings will be presented if you use an image that's larger than recommended. Hurray, documentation!

Control Width / Height

Always a tricky one because they are not constants, but rather Inspector Behavior properties. Set the default size here quick and easy.

Load Frameworks

Here you can set up default libraries to load. Currently only equipped with jQuery, if you have a framework or library you think should be added send me an email.

Hide Events

Creates the default Event Handlers in the WebControlWrapper that are for internal use. This makes it so the end user doesn't see events listed like FrameworkPropertyChanged in the final control.
Chances are you want this checked.

But I have Windows…

WebGen is mostly just string manipulation and XML setup, so in theory it works on Windows. You can email me personally for a Windows build. I probably won't distribute a Windows version to the public until I get a Windows code signing certificate though.

Support

It's free. I can answer email occasionally.