05-12-2018, 02:05 PM
(This post was last modified: 05-12-2018, 02:09 PM by Rick Johnson.)
I have two modal dialogs that are almost identical, so I built one in postStartup, then copied it to the second dialog using =, then changed the parts that are different.
Works great. I can customize each as needed.
Then I changed them to floating dialogs and the behavior is much different. It seems that any change to one changes the other, like two pointers to the same object. Is this the intended behavior? I know floaters aren't used much, but it does make previews easier than modals without occupying screen space as panels do.
Thanks!
Code:
hdi::core::ModalDialog dialog1, dialog2;
// create dialog1 and add widgets
this->dialog2 = this->dialog1;
Works great. I can customize each as needed.
Then I changed them to floating dialogs and the behavior is much different. It seems that any change to one changes the other, like two pointers to the same object. Is this the intended behavior? I know floaters aren't used much, but it does make previews easier than modals without occupying screen space as panels do.
Thanks!