Page 1 of 1

Aui -Htmlwindow

Posted: Wed Apr 22, 2020 7:55 am
by Wolfgang
Hello

I have a frame with an AUI Manager, everything works right.

Only Problem, if I start a seperate floating pane, which is not dockable but resizeable, it is resizable, if I did not start any other frame before i opened the pane.
If I first start a other frame (even if I close it right after it), all works normally only the resizing is not possible any more if the pane is opened afterwards.

Any ideas, what can be the reason for it?

Re: Aui -Htmlwindow

Posted: Wed Apr 22, 2020 12:30 pm
by Wolfgang
What I forgot, I use it in Linux.

Re: Aui -Htmlwindow

Posted: Wed Apr 22, 2020 3:49 pm
by ONEEYEMAN
Hi,
What's wx version?
What is the GTK+ verion you compiled it against?
Can you reproduce it in auidemo sample?

Thank you.

Re: Aui -Htmlwindow

Posted: Wed Apr 22, 2020 4:41 pm
by Wolfgang
GTK 3.0
WxWidgets 3.1.3

In the sample I did not try it yet, anyway there is resize to a not dockable not included so i will have to rewrite it.
Will do that in the next days.

But as said it works as long as I open the other panes first and only then open other frames. If I open another frame first the resize is not shown at all.

Re: Aui -Htmlwindow

Posted: Wed Apr 22, 2020 7:10 pm
by ONEEYEMAN
Hi,
What is an exact GTK+ version?
And it would be interesting to have a reproducer...

Thank you.

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 3:48 am
by Wolfgang
Lib gtk 3.24.5-1

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 4:25 am
by Wolfgang
I tried just to add Resizable(true) to one of the Oncreate in the originial AuiDemo and there the resize posibility is not shown at all. So resizeable not possible.

How I managed that it is shown by mine, I do not know, and also why it is shown when new pane is created before new frames are created. And why not when first a new frame is created.

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 4:47 am
by ONEEYEMAN
Hi,
Could you please post a smallest possible self-compiled code to reproduce the issue?
Also - it would be nice if you could check other platforms (even though AUI code is generic).

Thank you.

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 10:10 am
by Wolfgang
Windows is working. did you try the normal demo and just add Resizable, inside one of the onCreate methods? And this in Linux?

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 10:12 am
by Wolfgang
That is the one I used to have the same code as in my programm:

Code: Select all

void MyFrame::OnCreateTree(wxCommandEvent& WXUNUSED(event))
{
    m_mgr.AddPane(CreateTreeCtrl(), wxAuiPaneInfo().
                  Name("Test").Resizable(true).Caption("Bibel").CloseButton(true).Dockable(false).Float().CaptionVisible(true).MaximizeButton(true).MinimizeButton(true).PaneBorder(true));
    m_mgr.Update();
}

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 11:18 am
by Wolfgang
With not shown at all I mean, in Linux I see the right lower corner marked if I can resize it. And it is not marked when I use the standard aui demo and add Resizable(true) to it.

In my programm it is only shown, wehn I open the pane(s) before I opened another frame.

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 12:49 pm
by Wolfgang
I guess I now found a possible reason for the problem.
Not that I would be able to change it.

But I try to explain what I think the problem is.

In Linux the resize will be most likely generic, but only for frames and (windows) not for panes of AUI.

In my case I somehow managed to get the resize running because I use a wxhtmlwindow in it. What I do not know why I loose the abbility when another frame is opened first, from the Frame which holds the aui manager.

What I found in the internet that AUI pane not resizable is only a problem with gtk+ 3 not with 2.

Re: Aui -Htmlwindow

Posted: Thu Apr 23, 2020 7:00 pm
by ONEEYEMAN
Hi,
One more thing - are yu testing under X or Waylad?

Thank you.

Re: Aui -Htmlwindow

Posted: Fri Apr 24, 2020 5:44 am
by Wolfgang
gnome but wayland switched off.