[Y-devel] Widget branch
Robert Wimmer seppwimmer at hotmail.com
Tue Mar 16 15:19:31 GMT 2004
the edit widget is almost ready. i have to "clean" the source before making
the patch. and there might be a bug in the font measuring. it looks like as
if there - sometimes - blanks are ignored. ill go trough the source, maybe i
can fix it.
>
>BTW, you really should edit the TaskList on the Wiki in order to avoid
>duplicate efforts...
>
if i knew howto edit a wiki, i would do it ...not having that much time in
the moment (i hope it will be better soon) i was not in the mood for
searching a wiki HOWTO howto ...if you now a short and comprehensive
tutorial. i would prefer to do it in html - thats something i am used to.
BTW
- introducing the edit widget we have to think about handling the focus on
the client side.
- i dont want to hardcode colors and margins etc in the source in the near
future. as i posted weeks before i suggest to use simple styles. this does
not exclude the usage of themes - themes can initialise styles. and a
simple style something like CSS level 1 is not that complicated. the data
structure i suggest would look like that (PASCAL/MODULA/OBERON notation)
TYPE
Distance : ARRAY 4 OF INTEGER;
Style = RECORD
margin,
border,
padding : Distance;
halign : HAlign;
valign : VAlign;
font : FontDesc;
color,
bgcolor,
bordercolor : ARRAY 4 OF Color;
END;
thats nearly what we use know. i have implemented that in X and it really
simpifies drawing. you have to draw the box no matter whats the content -
text or bitmap - in our case. and then you draw the content.
- using global constants you can make it even simpler then stylesheets.
bye sepp
_________________________________________________________________
Recherchieren Sie auf eigene Faust mit der wohl besten Suchmaschine im Netz.
https://search.msn.at/
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved