I have a modal Dialog window that opens with a component doing some operations, created as:
How can I close this modalDialog after its finished doing its stuff? Do I have to do this from the parent that called it, can I do it with the component that resides inside this modaldialog?
have a couple more questions:
1-is there a way to track the streamed data so I can include a progress bar while loading?
2-after image is done streaming how can I pass this to my parent component that called this modal dialog?
3- im testing this by streaming some images from the web, some work others seem to crash the app, and they are the correct image format?
getTopLevelComponent()->exitModalState would be better (there might be another modal comp active when you call that, or none)
The Image stuff doesn’t currently have any progress, mainly because it’s usually so quick. What you could write would be a custom stream that relays the data from your real stream, but which keeps track of how much has been sent.
Where does it crash? If you’re sure it’s a juce bug that’s crashing, and not your own code, then maybe forward me some links to the problem images and I’ll check them out.