[wx-dev] enhancements to wxStackFrame for Linux
Vaclav Slavik
vslavik at fastmail.fm
Wed Nov 1 04:07:34 PST 2006
Hi,
Francesco Montorsi wrote:
> 2) wxGUIAppTraitsBase::ShowAssertDialog uses wxMessageBox under
> GTK2; unfortunately even with only 20 lines of stack trace the
> resulting message box is too tall because all the stack trace lines
> are wrapped. 2) wxGUIAppTraitsBase::ShowAssertDialog uses
wxMessageBox under GTK2;
IMHO the best thing to do would be to use a (generic) wxAssertDialog
that would use wxCollapsiblePane and the stacktrace would be
initially hidden. For me, the most annoying thing about the
wxStackFrame performance is that when an assert happens, the app
completely freezes and it takes many seconds for something to happen.
In the meantime, you're given no indication that it's an assert
showing up. And when the assert finally shows, I usually don't need
the stack trace to fix it anyway.
So if the stack trace was initially hidden, a) the assert dialog would
show up instantly and b) wxStackFrame would be only used if the user
clicked on "Details". This alone would make the performance of
wxStackFrame much less critical.
It would also have the benefit that we could use well-labeled buttons
like "Stop", "Ignore" and "Ignore All" in the assert dialog -- maybe
it's just me, but I still find the mapping of standard Yes/No/Cancel
buttons to Stop/Ignore/IgnoreAll actions very confusing, even after
seeing the dialog for years.
Regards,
Vaclav
--
PGP key: 0x465264C9, available from http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20061101/fbe82145/attachment.pgp
More information about the wx-dev
mailing list