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

Re: [MiNT] usage of wind_calc()



Arnaud BERCEGEAY wrote:


because wind_get(WF_WORKXYWH) is buggy in some AESes : with buggy AES,
wind_get(WF_WORKXYWH) forget to take into account the height of the
toolbar.


There are very few AES's that support toolbars, so it should
be very easy to determine which are buggy (if at all).

They are basically N.AES and XaAES.
I dont know about MagiC.

AES's that dont know toolbars in my experience ALL give correct
measures on wind_get(WF_WORKXYWH).

I think that toolbar supporting AES's should exclude the toolbar
from wind_get(WF_WORKXYWH) because a toolbar is window content.

Content is what you put in the work area.
The work area is the user part of a window.
Toolbars are definately defined by users, so they must be
considered as part (or whole) of the work area and should not
be confused with window decoration.


It just happens that you dont need to explicitely draw the toolbar
yourself. This is a service of the AES.

A toolbar is a OBJECT tree, so it is well defined and it would be
drawn bt the AES anyhow by means of calling objc_draw.


--
Groeten; Regards.
Henk Robbers.    mailto:h.robbers@chello.nl
                   http://members.ams.chello.nl/h.robbers/Home.html
Interactive disassembler:     TT-Digger;  http://digger.atari.org
A Home Cooked teXt editor:    AHCX