Re: gpe-iconlist

From: Luc Pionchon <luc.pionchon.a.t.welho.com>
Date: Tue Mar 25 2003 - 17:08:35 EST

Hi again,

On 24 Mar 2003 09:22:05 +1030
Robert Mibus <mibus@iprimus.com.au> wrote:

> > The 'icon' starts 5px down from the top of the space, but exactly
> > along
> No it doesn't, no it doesn't. /me smacks head. There is a 5px gap
> above*all* of the icons, before the first one. AAAAARGH and it was
> only reading your "specs" file that I realised it :-S

hmm...
I believe gpeiconlist.specs is right now (!) so just 5px on the top.

Here are little mesurements:
http://handhelds.org/~luc/iconlist2.png

The "5" on the bottom is "wrong": the label should have a one pixel
border, then 4 over and 4 under makes LABEL_YMARGIN (8)
(note that I used 2*LABEL_XMARGIN for row_width, instead of 3, that's
why 8 and 8 each side of the icon.)

Also the label is 2 lines high: right. And truncated to the column_width.

>
> > This is all exactly what you have in your diagram. (Though the
> > r1.height thing forces only 1 row of text! Which is interesting
> > since the get_line_count() stuff later assumes up to 2 lines...)
> No, no, there is a new-line in the text used to get the label_height,
> ignore me :-S

done :)

>
> > There is no lower LABEL_YMARGIN. It's just row_height -
> > LABEL_YMARGIN - 5 - label_height - col_width. Yeah I know it's
> > stupid (the col_width is the size allocated to the 'icon' part, in
> > appmgr it's 48x48). Or at least I *think* that's right.
> Yeah, this still seems rightish (icon_size and col_width *should* be
> the same?). Either way, it's the icon_size that the math is done on,
> so s/col_width/icon_size/g; and it's right for sure :)
>
> I don't the the text is centred vertically. I think it just happens to
> look that way, and the YMARGIN is between the "icon" and the "label".
>
> > PS. CCd to the list incase I got something wrong and pb/etc. can
> > inflict pain on me and point out the correct answers to you ;-)
> Lucky I got there first, that could have cost me:-S
>
> mibus
>
> --
> Robert Mibus <mibus@iprimus.com.au>
> If a train station is a place where a train stops, what's a
> workstation?
>

thanks again,

luc

`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.´¯`·.¸¸.´
Received on Tue Mar 25 22:08:12 2003

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:31 EDT