Hi Joe,
I'm by no means an expert on this, but it seems to me that the PromptUserInput functionality is different for Mac and PC.
The actual input checking for PC seems to be done in:
IGraphicsWin::ParamEditProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
And for Mac in:
IGraphicsCarbon::TextEntryHandler(EventHandlerCall Ref pHandlerCall, EventRef pEvent, void* pGraphicsCarbon)
If you look at these functions, it appears the input checking is hard-coded in. This would mean you would need to change Iplug. However, maybe I'm missing something.
Hope this helps you on your way!
JD
Update: in addition you might need to edit this function as well, to replace commas with periods so they get converted from char* to double correctly:
IGraphics::SetFromStringAfterPrompt(IControl* pControl, IParam* pParam, char *txt)
Last edited by JD Young; 05-18-2017 at 06:05 AM.
|