[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-dev] Re: wxDialogs in Tabbed dialogs
- From: Alex Bligh <alex@xxxxxxxxxxx>
- Date: Thu, 27 Apr 2006 19:11:27 +0100
- Subject: [XaraXtreme-dev] Re: wxDialogs in Tabbed dialogs
--On 27 April 2006 16:55 +0100 Luke Hart <lukeh@xxxxxxxx> wrote:
Currently all of the dialogs that appear in tabbed dialogs (certainly for
bitmap export) are wxDialogs, this doesn't work since wxPropertySheet
needs them to be wxPanel. Can you tweak your translation script to make
all the dialogs in bmapprev.xrc are wxPanels.
Am I right in thinking that panels don't have titles? I am trying to use
this information to fill out the tabs, which obviously this doesn't work.
Yes indeed I can change this. I was actually going to fix tabbed dialogs
myself. But if you are doing it, so much the better. I take it you are
aware that most of the DialogTabOp class needs re-enabling, as well as
the relevant DialogManager fixes?
The problem with wxPanel is that neither the label nor the title attribute
is present (rather annoyingly). You might have a look at
DialogManager::Create to see how I resolved this for bars which have a
similar problem. Essentially I try and get a label/title (it is on the fix
list) and if it fails, default to various other options. The first is using
the tooltip (which is set right, and unused). As a final fallback I think I
look for a string-table version of the dialog name. This seems to work
The "hard" bit is getting them to create in the correct order, and getting
the wxPanels once created to correctly reparent, getting the sizer configs
right in the event there are sizers. But it's far from impossible.