Caption is the default

When an item containing a ‘Caption’ property is used on a form, its caption defaults to the type of the control followed by a number – for example: ‘Panel1’,’Label13’, or ‘Toolbutton1’. A programmer would usually customise this to something more appropriate so that if it is referenced in code, the code will be more readable. eyebol will hint when a controls caption has not been customized. It can then either be changed or the caption can be removed.

For example, if you place a toolbar on a form and add 10 buttons, by default these buttons have captions from ‘Toolbutton1’ to ‘Toolbutton10’ even though these captions will not be seen. eyebol can remove these captions thus decreasing very slightly the size of a form. In the case of a label, it might help as a warning that a label has not been customised.

Warning It is perfectly valid to have a button name of ‘Run’ and a button caption of ‘Run’ though this is usually uncommon. eyebol will still highlight these with a hint but will only suggest deleting caption lines which end in a number and have no spaces, e.g. ‘Form1’.


< Back to list of hints and warnings