octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42490] helpdlg does not return a proper graph


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #42490] helpdlg does not return a proper graphics handle
Date: Wed, 3 Oct 2018 05:23:13 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #12, bug #42490 (project octave):

Ah, OK so forcing the action to wait with uiwait() achieves what I described
(i.e., "Msg 1" first, then "Msg 2" follows):


>> uiwait(h1 = msgbox("Msg 1", "title 1", "none", "modal")); h2 = msgbox("Msg
2", "title 2", "none", "modal");


If there is access to Qt, the icons are determined by the Style, for which the
pixmaps can be gotten via

http://doc.qt.io/archives/qt-4.8/qstyle.html#standardIcon
http://doc.qt.io/archives/qt-4.8/qstyle.html#StandardPixmap-enum
http://doc.qt.io/archives/qt-4.8/qicon.html#pixmap

In particular, these pixmaps:

QStyle::SP_MessageBoxInformation        9       The "information" icon.
QStyle::SP_MessageBoxWarning    10      The "warning" icon.
QStyle::SP_MessageBoxCritical   11      The "critical" icon.
QStyle::SP_MessageBoxQuestion   12      The "question" icon.

can be used to create a standard icon, and from the icon the actual pixmap can
be generated according to the specified size.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?42490>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]