Kirix Support Forums

wxAUI Floating pane vs. wxDialog

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

wxAUI Floating pane vs. wxDialog

Postby JosefH on Thu Nov 16, 2006 9:20 am

Hi,
We have an image browser application, working fine on Windows.
Now ported to Mac/Carbon, and there are some problems !

The browser windows are floating AUI panes. If we call a modal dialog (wxDialog), it disappears behind the floating panes.
If we set the dialog to "wxSTAY_ON_TOP", it appears in front of the floating pane, but a wxCalendarCtrl used in this dialog will be created behind the floating pane - which is not really fine.

Thanks in advance for any good idea
Josef
:?
JosefH
Registered User
 
Posts: 6
Joined: Thu Nov 16, 2006 9:03 am
Location: Hamburg / Germany

Postby Ben on Thu Nov 16, 2006 10:42 am

Hi Josef,

Can you post a screenshot? It might help me diagnose the problem a little better.

wxCalendarCtrl can be tricky, because there are multiple controls involved. Last I checked (about a year ago), reparenting doesn't work too well on calendar control. I'm not sure if this is the cause of your problem.

I also thought that, if you're working with wxDialog and something isn't working, it would be difficult to conceive that this would relate to a wxAUI problem. However, I could be wrong.

Best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Window layers

Postby JosefH on Thu Nov 16, 2006 11:05 am

Hi Ben,
Thanks for your quick reply.
Attached you can see the window layers (as I told, Mac/Carbon), bottom to top:

- desktop with log window
- application main frame (IP number to be seen)
- calendar control
- browser (floating AUI pane)
- wxDialog (I have clicked on the deletion date control)

Regards
Josef

I hope I can attach this pdf file

[img]Y:\ImageDesk\wxAUI Layers.pdf[/img]
JosefH
Registered User
 
Posts: 6
Joined: Thu Nov 16, 2006 9:03 am
Location: Hamburg / Germany

Sorry, ...

Postby JosefH on Thu Nov 16, 2006 11:19 am

as I see I cannot post the image here
JosefH
Registered User
 
Posts: 6
Joined: Thu Nov 16, 2006 9:03 am
Location: Hamburg / Germany

Postby Ben on Thu Nov 16, 2006 12:45 pm

Hi Josef,

I think it has to be a real web link, not a local file reference.

All the best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

I got it

Postby JosefH on Fri Nov 17, 2006 2:42 am

JosefH
Registered User
 
Posts: 6
Joined: Thu Nov 16, 2006 9:03 am
Location: Hamburg / Germany

One more problem

Postby JosefH on Fri Nov 17, 2006 8:19 am

Hi Ben,

I have had to start with this: we appreciate your efforts very much! wxAUI is a really super package! :D

But : There is one more problem with the floating pane on Mac/Carbon. The Windows version works fine, the Mac version is only ok if our browser window is not floating.

We have a wxToolBar, a wxScrolledWindow and a wxTextCtrl on the pane. Writing text to the wxTextCtrl it appears on the main window.

I attach another screenshot. The text "A small truck..." should appear in the text control on the bottom right.

Wish you a happy weekend
Josef

http://www.codesco.com/webcdc/wxaui_textctrl.jpg
JosefH
Registered User
 
Posts: 6
Joined: Thu Nov 16, 2006 9:03 am
Location: Hamburg / Germany

Postby Ben on Mon Nov 20, 2006 2:23 pm

Hi Josef,

After looking at the screenshot, I feel like this is probably a bug in wxCalendarCtrl, perhaps specific to Max OS X.

Though I'm not entirely certain, the fact that this is in a dialog seems to mean to me that the bug is independent of wxAUI. Is this the case, or is the calendar control in an AUI frame?

Thanks,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

wxDatePickerCtrl

Postby JosefH on Tue Nov 21, 2006 2:37 am

Hi Ben,
The problem arises only on Mac/Carbon, the Windows version is ok.

The wxDatePickerCtrl is used in a normal wxDialog, which is called from the floating wxAUI pane.

- if the pane is not floating, everything is ok (without wxSTAY_ON_TOP set for the dialog)

- if the pane is floating, and I donot set wxSTAY_ON_TOP for the wxDialog, even the dialog is behind the floating pane (not on Win!)

- if the pane is floating, and wxSTAY_ON_TOP is set for the dialog, it comes to the front, above the floating pane, but the calendar control goes behind the pane

So it is a really special situation:
Mac/Carbon + floating pane + wxDialog + calendar control

(wxWidgets 2.63, wxAUI 0.92, Metroworks 8.3)

Regards
Josef
JosefH
Registered User
 
Posts: 6
Joined: Thu Nov 16, 2006 9:03 am
Location: Hamburg / Germany

Return to wxAUI Questions, Thoughts & Feedback