Open unityconstruct opened 4 months ago
Hi UC,
i have some trouble understanding what's the problem. how did you manage to get those colour index 16799763 & 16799765 errors ? Is it docColour having a problem in the declaration? https://docs.juce.com/master/classMultiDocumentPanel.html#a92a4b424c5d8eee7fb859e5a2e71bdad
backgroundColour the background colour to use to fill the component's window or tab
What is the result on the GUI? wrong colours? the app crashes?
It's always better to avoid injecting the workaround statement in the JUCE core module juce_lookandfeel.cpp. I'll try to find a way to implement that in the ctrlr files instead if I understand exactly what is going wrong with those colours.
Thanks
Damien
OK dusted off my VS box... (used the proteus panel in case there was something specific to the panel I'm working on.)
jassert
breakpoints in VStudio & assuming since its a java hook in JUCE, there's no real way to ignore it in VStudio, thus I opted to simply add hard-coded handling ( which I agree isn't the best approach ) for those specific color ids.A breakpoint instruction (__debugbreak() statement or a similar call) was executed in CtrlrX.exe.
jassertfalse;
& return Colours::black;
Thanks for all the details, I'm not home for a while but I'll check the process once back.
Running in debug mode and found the exceptions thrown for those two colors a nuisance, so added IF statement for the colourIDs specifically. Ultimate fix might be choosing a colour from the JUCE color list... I think they are HTML(websafe) colours. Might be able to just add them to the JUCE h file, but I didn't want to go mucking around in a bunch of places and diverge off your [master] branch.
Workaround
Steps to Reproduce