Thread: Import: how to display warnning & error message

Import: how to display warnning & error message

From
Quan Zongliang
Date:
Hi, all

I got a free license of DialogBlocks to design UI.
Thank Julian Smart and his company: Anthemion Software Ltd.

Question:

In import wizard, it is needed to display messages.

1. How to add status bar to wxWizard?
    Like other UI, put wxStatusBar at the bottom of window.
    I had tried to put wxWizard and wxStatusBar to wxPanel, but it can't
work properly.
2. Add a status bar to wxWizardPage?
    The UI will get bad look and can't follow common style.
3. Use wxMessageBox?
    The end user will suffer from lots of message dialog.

Can someone give me a suggestion and a solution?

Sorry, my fault, send this mail to support mailing-list.
Can you delete it, Dave?

-----------------------------------------------
Quan Zongliang
quanzongliang@gmail.com
CIT Japan:  http://www.cit.co.jp
CIT China:  http://www.citbj.com.cn


Re: Import: how to display warnning & error message

From
"Dave Page"
Date:
On Tue, Jan 6, 2009 at 10:13 AM, Quan Zongliang <quanzongliang@gmail.com> wrote:
> Hi, all
>
> I got a free license of DialogBlocks to design UI.
> Thank Julian Smart and his company: Anthemion Software Ltd.

I'd be interested to hear how that works out - I didn't have much luck
with it last time I tried it.

Note that whatever output it produces, it will need to fit in with the
existing XRC infrastructure.

> Question:
>
> In import wizard, it is needed to display messages.
>
> 1. How to add status bar to wxWizard?
>    Like other UI, put wxStatusBar at the bottom of window.
>    I had tried to put wxWizard and wxStatusBar to wxPanel, but it can't
> work properly.

No, that won't really work on a wizard.

> 2. Add a status bar to wxWizardPage?
>    The UI will get bad look and can't follow common style.

No.

> 3. Use wxMessageBox?
>    The end user will suffer from lots of message dialog.

No.

> Can someone give me a suggestion and a solution?

Look at frmBackup/frmRestore. On those we use a text area to capture
and display the output as it happens. This has the advantage that the
user can copy and paste the entire log of the operation afterwards,
which they cannot do with a status bar.

> Sorry, my fault, send this mail to support mailing-list.
> Can you delete it, Dave?

Nope - once you hit 'Send', that's it! Just reply to it with 'sorry,
should have been sent to -hackers' or something like that.


--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

Re: Import: how to display warnning & error message

From
Quan Zongliang
Date:
On Tue, 6 Jan 2009 10:29:07 +0000
"Dave Page" <dpage@pgadmin.org> wrote:

>
> I'd be interested to hear how that works out - I didn't have much luck
> with it last time I tried it.
>
> Note that whatever output it produces, it will need to fit in with the
> existing XRC infrastructure.
>
Sure, it will follow the rules.

>
> Look at frmBackup/frmRestore. On those we use a text area to capture
> and display the output as it happens. This has the advantage that the
> user can copy and paste the entire log of the operation afterwards,
> which they cannot do with a status bar.
Sorry for my bad English.
I mean that the items' tips should be displayed properly.
For example: in new index dialog
After open, the message "Please specify name." is displayed in status
bar. Then input index's name, message becomes "Please specify columns."
Like this, prompt end user what need to do.

-----------------------------------------------
Quan Zongliang
quanzongliang@gmail.com
CIT Japan:  http://www.cit.co.jp
CIT China:  http://www.citbj.com.cn


Re: Import: how to display warnning & error message

From
"Dave Page"
Date:
On Tue, Jan 6, 2009 at 10:51 AM, Quan Zongliang <quanzongliang@gmail.com> wrote:
>
> Sorry for my bad English.
> I mean that the items' tips should be displayed properly.
> For example: in new index dialog
> After open, the message "Please specify name." is displayed in status
> bar. Then input index's name, message becomes "Please specify columns."
> Like this, prompt end user what need to do.

Ahh, I see. Well, I'd just use a message box if they press Next and
haven't filled something in that case. It should be fairly clear from
the UI what they need to fill in anyway. Of course - don't show
multiple message boxes for a single attempt to move forward - check
each item in turn and error out on the first one that isn't valid.


--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

Re: Import: how to display warnning & error message

From
Quan Zongliang
Date:
> Ahh, I see. Well, I'd just use a message box if they press Next and
> haven't filled something in that case. It should be fairly clear from
> the UI what they need to fill in anyway. Of course - don't show
> multiple message boxes for a single attempt to move forward - check
> each item in turn and error out on the first one that isn't valid.

Ok, thanks for your decision.

-----------------------------------------------
Quan Zongliang
quanzongliang@gmail.com
CIT Japan:  http://www.cit.co.jp
CIT China:  http://www.citbj.com.cn