octave-maintainers
[Top][All Lists]
Advanced

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

Re: fltk window not resizable


From: bpabbott
Subject: Re: fltk window not resizable
Date: Mon, 21 Feb 2011 14:10:04 +0000 (GMT)

On Feb 20, 2011, at 06:30 PM, bpabbott <address@hidden> wrote:

On Feb 20, 2011, at 12:36 PM, Kai Habel <address@hidden> wrote:

On 20.02.2011 18:17, Ben Abbott wrote:
> On Feb 20, 2011, at 4:49 AM, Kai Habel wrote:
>
>> On 19.02.2011 19:08, Ben Abbott wrote:
>>
>>> On Feb 19, 2011, at 12:26 PM, Kai Habel wrote:
>>>
>>>> On 15.02.2011 17:33, bpabbott wrote:
>>>>
>>>>> On Feb 15, 2011, at 11:30 AM, Benjamin Lindner<address@hidden> wrote:
>>>>>
>>>>>> Hello list,
>>>>>>
>>>>>> Using a 3-4-0 snapshot on mingw platform, the fltk plotting window is
>>>>>> not resizable. It's movable, and I can minimize&restore, but I cannot
>>>>>> resize.
>>>>>> Is this intentional?
>>>>>> Is it the same on other platforms, or just on windows?
>>>>>>
>>>>>> benjamin
>>>>> I see this on MacOS as well.
>>>>>
>>>>> Ben
>>>> After having a closer look, I noticed that we already have a call to size_range in the plot_window constuctor. The following changeset call the size_range method early. After applying it, I can resize the window (on MinGW). Does this work for both of you as well?
>>>>
>>>> Kai
>>> I now have a place to grab and *attempt* to resize the window. Unfortunately, it does not change size.
>>>
>>> Even more bizarrre is that if I do ...
>>>
>>> print -dpdfwrite "-S1800,1000" test.pdf
>>>
>>> ... I'm able to resize the window from its default size up to 1800x1000 pixels.
>>>
>>> If I then ....
>>>
>>> print -dpdfwrite "-S18,10" test.pdf
>>>
>>> ... I'm able resize the window from (18 to 1800) x (10 to 1000) pixels in size.
>>>
>>> I'm using FLTK-1.1.10.
>>>
>>> Ben
>>>
>> Strange,
>>
>> out of curiosity what does happen on macos if we call size_range twice? I can still resize on linux and mingw with the attached changeset.
>>
>> Kai
> That fixed half the problem. Now I can decrease the window size, but not increase it.
>
> The printing trick above fixe the problem because the window size changed. Thus, I can now get full functionality by ...
>
> close all
> graphics_toolkit fltk
> plot (1:10)
> sz = get (0, "screensize")
> p = get (gcf, "position")
> set (gcf, "position", sz)
> set (gcf, "position", p)
>
> I tried searching for similar reports by MacOS users of FLTK, but didn't find anything. Looks like (1) its just me, or (2) Octave is doing something unusual. I have a second Mac at work. I'll do some experiments on that this week and see I can duplicate the problem.
>
> Ben
>

Thanks Ben,

I will wait for the results of your experiments.

Kai
 
I tried both changesets on an iMac. Both of them work. I suggest you apply the first one.

Now, I'll have to figure out what's wrong on my MacBookPro.

Ben
 

I compared the GRAPHICS_LIBS and found significant differences.


On my iMac (which worked)


GRAPHICS_LIBS = -L/sw/lib -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -L/sw/lib/fontconfig2/lib -L/sw/lib/xft2/lib -L/usr/X11R6/lib -lfltk_gl -lGLU -lGL -lfltk -lXft -lpthread -lXext -lX11


On my MacBook Pro (which did not work)


GRAPHICS_LIBS = -L/sw/lib/fltk-aqua/lib -L/sw/lib -L/sw/lib -arch i386 -lfltk_gl -framework AGL -framework OpenGL -lfltk -lpthread -framework Carbon -framework ApplicationServices


The problem was that I had installed fltk-aqua-1.1.10 as well as fltk-aqua-shlibs-11.10 on the MacBook, and only the latter on the iMac. After uninstalling fltk-aqua-1.1.10, I got the same result as on the iMac.


Now both Macs work correctly with both changesets.


Regarding GRAPHICS_LIBS, that variable is set equal to the output of "fltk-config -ldflags".


fltk-config --ldflags
-L/sw/lib -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -L/sw/lib/fontconfig2/lib -L/sw/lib/xft2/lib -L/usr/X11R6/lib -lfltk -lXft -lpthread -lXext -lX11

For the Fink package manager, the solution is to mark the fltk package as a build conflict with Octave.

Ben


reply via email to

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