I could have sworn I did this before, but perhaps I’m dreaming:
I’m creating a custom control based on a canvas and I want to be able to set the font settings on the second page of the inspector just as if it was a label for instance:
I guess I’m missing something… I know how to find and bring up the Inspector Behavior dialog, what I can’t see in that dialog is any property in there I can select to cause the Font properties to appear:
I realise that, but I thought there was a way to create your own custom property, have it appear in the properties list and then use it in the graphics object.
create a subclass of Canvas, add a computed property for both Font and FontSize, go to Inspector Behaviour, and make them visible.[/quote]
Thanks Dave.
Well some progress:
Making a Font group caused it to appear on the second page and setting a property to FontUnits got me the units dropdown. The booleans are still switches rather than check boxes, which I can live with, but the font list is still missing…
I found this discussion since I, too, wanted to add the Inspector Font section to my custom control. However, this thread seemed to me to be unresolved. So I did some testing and found that in order to get the font menus and selectors to be generated in the Inspector, the properties must all be present and named and listed as in the Font section in the image below. Otherwise they are just treated as individual property fields.
Probably this has already been widely known but I’m posting this in case someone else enjoys my level of confusion.
(BTW, I copied this image from Jim McKay’s posting above.)