I’ve managed to get my studio’s rendering code embedded into a heavyweight window in a Juce app, which is obviously super excellent.
However, as is traditional with this sort of thing, there is a weird issue I’m facing.
If i create this window at the very end of the app’s initialise function, my main window doesn’t render properly; first of all, the whole document window doesn’t appear to repaint until i resize it, but also the menubar has no text on [even after resizing - the menu headers highlight, and the popupmenus are fine, but the menu headers don’t show any text at all].
I tried to use an asyncUpdater to delay the window creation momentarily, but that didn’t work. However, if i create it from a timer callback, it’s okay - even if I use startTimer(0).
So, it feels like I’m safe to hook all my rendering-core initialisation stuff into a timer callback, but at the same time it sort of feels like i might be asking for trouble.
Does this seem like a normal way to have to do things?
[FWIW I’m planning on having a separate thread for all of that stuff, but i thought i’d at least prove that i can get it to show in the first place before i did that. Would the separate thread be likely to make this a non-issue?]
I just can’t figure out why the text doesn’t show up on the menu headers, but perhaps someone might have an idea