🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1379

InputHandlers and margins

#1379
From: Jay Gowdy
Date: Sun, 20 Dec 1992 21:06
37 lines
1859 bytes
I have a very simple IV question that's been bugging me for a while:

I have an ActiveHandler subclass that set's it's body as follows:

body(layout.fixed_span(kit.outset_frame(character_glyph
                       size, size));

The problem is, events such as enter and leave only take place
over the character glyph!  It seems that kit.outset_frame sets up a 
margin around the glyph it contains, and events are not reported in
the margins of glyphs for some odd reason.  Now it seems to me that
this behaviour would be hard to implement, therefore there _must_ be
some way to turn it off (yeah, I'm an optimist)!

By the way, for some other odd reason kit.bright_inset_frame does 
_not_ put a margin around it's glyphs, and the following works fine:

body(layout.fixed_span(kit.bright_inset_frame(
            layout.hbox(layout.hglue(),
                        character_glyph,
                        layout.hglue())), size, size));

Note that I have to do the margining myself here with an hbox, but
the input handler acts as I expect it, i.e., as soon as the mouse
enters the frame, the enter callback is invoked.

I've noticed this behaviour in other glyphs that marginalize things,
but its only been annoying, not critical, as it is in this case.  
Please tell me 1) why this is happening 2) how I can stop it.

				Jay





	
Technical Details
Message-ID: <BzKtBn.F0F.1@cs.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!IUS4.IUS.CS.CMU.EDU!jayg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!IUS4.IUS.CS.CMU.EDU!jayg
From: jayg+@CS.CMU.EDU (Jay Gowdy)
Newsgroups: comp.windows.interviews
Subject: InputHandlers and margins
Message-ID: <BzKtBn.F0F.1@cs.cmu.edu>
Date: 20 Dec 92 21:06:59 GMT
Sender: news@cs.cmu.edu (Usenet News System)
Organization: Carnegie Mellon University
Lines: 37
Nntp-Posting-Host: ius4.ius.cs.cmu.edu