Hi :-)
>>2) how are you setting the text controls? I had a problem like this when I first started out and it turned out I had misunderstood how the updating was meant to work.<<
It turned out that itīs a problem with the IFileSelector Control. Found this, because not using the IFileSelector Control, everything worked like a charm.
I managed to "fix" the problem using a recipe from one of the of the other threads (see the Redraw and SetAllControlsDirty lines)
void IFileSelectorControl::OnMouseDown(int x, int y, IMouseMod* pMod)
{
if (mPlug && mPlug->GetGUI()) {
mState = kFSSelecting;
SetDirty(false);
mPlug->GetGUI()->PromptForFile(&mFile, mFileAction, mDir.Get(), mExtensions.Get());
mValue += 1.0;
if (mValue > 1.0) {
mValue = 0.0;
}
mState = kFSDone;
SetDirty();
mPlug->GetGUI()->GetControl( 1 )->Redraw();
mPlug->GetGUI()->SetAllControlsDirty();
}
}
I donīt know if this is the right way, but it works now (possibly the ->Redraw() is not needed, iīll have to try this).
>>3) Yes - I have seen this on Windows I guess it's a bug. It doesn't happen on OSX. So far I have avoided the problem by making sure that my text always fits in the box.<<
Windows seems to need an additional format attribute, like
DT_END_ELLIPSIS. This way, the string will be cut to the right length and, if too long, 3 dots will appear at the right.
Iīve just inserted a
fmt |= DT_END_ELLIPSIS;
in bool IGraphicsWin:
rawIText(IText* pText, char* str, IRECT* pR)
For me, itīs ok so far.
thanks so far...
best,
Rudi