|
| From: | Pantxo Diribarne |
| Subject: | [Octave-bug-tracker] [bug #42490] helpdlg does not return a proper graphics handle |
| Date: | Tue, 2 Oct 2018 15:51:00 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 |
Update of bug #42490 (project octave):
Category: Plotting => GUI
Status: Postponed => Patch Submitted
_______________________________________________________
Follow-up Comment #7:
I attached a preliminary patch in which I rewrote msgbox.m to make use of
graphics objects and return a handle to a figure (same for helpdlg, errordlg
and warndlg which are msgbox wrappers).
I am not sure about how to handle icon data. Since those images are for use in
gui scripts, I put the corresponding png files (extracted from Tango theme) in
the script/gui directory. For this I tried to blindly copy how "default.img"
file is handled in the build system but it doesn't look like it works:
I can do
im = imread ("default.img");
but
## This doesn't work
im = imread ("__error-icon__.png");
##-> error: imread: unable to find file '__error-icon__.png'
## This works
im = imread (which ("__error-icon__.png"));
Can someone test the patch (see "demo msgbox").
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?42490>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |