On Tue, Mar 30, 2004 at 09:11:57AM -0800, Raghu Ram Murthy wrote:
> Hello All,
> 
> I implemented selection mechanism, cut, copy, paste
> and drag and drop of text from one text box to another
> textbox or within the same textbox.
> 
> But there is a small problem. I didn't implement
> selecting of text in good manner. So I want to know
> how to change the background of text. There is one
> attribute in paragraph structure called struct divnode
> *background. Is it useful? 
> 
> In which fn I have to make changes to display
> background for text.

The background rendering in the textbox widget is a little complex
since it can draw over arbitrary backgrounds, defined by the theme.
Take a look at this screenshot, for instance:
  http://picogui.org/Screenshots/20020903_eva_textbox/photo_view

So, this background divnode has a groplist that's written to
by executing a theme's fillstyle. The divnode then gets clipped to
whatever area of the textbox needs updating and rendered behind
whatever else is being rendered.

For selection, I'd recommend ignoring the background divnode altogether
and rendering either a solid color or another fillstyle, defined by
the theme.

--Micah

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to