setWindowTitle() on dialog panels

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
Romero
Posts:27
Joined: Wed Jul 19, 2017 9:24 am

setWindowTitle() on dialog panels

Post by Romero »

It is a quick one and i'm sorry if i'm missing something obvious however i haven't been able to figure out how to change the title of the dialog panels ( openDialog() ).

Thank you in advance.

Agustín Romero Sánchez.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: setWindowTitle() on dialog panels

Post by mkoller »

In fact you should not use openDialog() at all (that was introduced for Gedi internals to be able to open a panel from the attribute editor for wizards).
Instead, use one of the ChildPanelOn functions.
When you pass a name in ChildPanelOn function, the given name is used as window title except the panel has been given a name directly in the attribute editor in Gedi.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: setWindowTitle() on dialog panels

Post by mkoller »

And there is also an explicit function to change the window title: setWindowTitle() (and a similar one for the icon: setWindowIcon())

Romero
Posts:27
Joined: Wed Jul 19, 2017 9:24 am

Re: setWindowTitle() on dialog panels

Post by Romero »

I knew i was missing something, it is well explained on the Online Help. I should be using the ChildPanelOnModal() which has utility i was looking for.

Thank you Martin
Best regards

4 posts • Page 1 of 1