ICaptionControl
I was wondering about the purpose of ICaptionControl—in the IPlugControls example, it seems indiscernible from ITextControl, and there are past threads where people seems equally confused about what it's supposed to do. Well, I needed an editable text control, and coded one, then noticed that's what ICaptionControl is intended to do.
First, ICaptionControl seems like a poor name for an editable text control, since captions are typically static, and I'm sure that's why the past forum confusion about it. (And, not grousing, but there really should be at least a one-line comment on the purpose of such classes in the source.) But my guess is that it worked at one time (hence the example in IPlugControls), but something changed in IControl...
The problem: IControl defaults to mDisablePrompt = true. Obviously, ICaptionControl needs to set it false for the example to work (or the example needs to call DisablePrompt(false)).
|