Menu bar questions
-
Question 1:
Why is it necessary to add the various widgets into a window before adding the menubar and statusbar?Question 2:
Why, if I add the menubar at the wrong time, does its height() function return the window height?
Thanks.@clarify said in Menu bar questions:
Question 1:
Why is it necessary to add the various widgets into a window before adding the menubar and statusbar?No, this is not necessary.
Please show how you add your menubar and the widget in a minimal, compilable example.
-
Question 1:
Why is it necessary to add the various widgets into a window before adding the menubar and statusbar?Question 2:
Why, if I add the menubar at the wrong time, does its height() function return the window height?
Thanks.@clarify said in Menu bar questions:
Question 2:
Why, if I add the menubar at the wrong time, does its height() function return the window height?As @Christian-Ehrlicher says it does not matter what order you add things in. However, visual measurement functions like
height()may not give you a meaningful result until the menubar/widget is actually shown, so if you are querying it before then that might be the reason.