COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 04-09-2016, 01:35 PM   #1
earlevel
Human being with feelings
 
Join Date: Dec 2015
Posts: 331
Default 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)).
earlevel is offline   Reply With Quote
Old 04-10-2016, 11:21 PM   #2
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,653
Default

I'm not sure when or why (although everything disabled by default makes some sense I guess) mDisablePrompt's default was changed to false, in my IPlug it still defaults to true I think. But for ICaptionControl indeed that doesn't make sense.
Tale is offline   Reply With Quote
Old 04-11-2016, 02:33 AM   #3
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

TBH - I never really used ICaptionControl, just made my own IControl, would not be surprised if the code had rotted a bit in WDL-OL
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote
Old 04-11-2016, 10:54 AM   #4
earlevel
Human being with feelings
 
Join Date: Dec 2015
Posts: 331
Default

Quote:
Originally Posted by olilarkin View Post
TBH - I never really used ICaptionControl, just made my own IControl, would not be surprised if the code had rotted a bit in WDL-OL
Yes, it's a trivial control—it would not have been worth commenting about except for the fact that it's included in IControl.
earlevel is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.