Ok, here's a quick overview of how the Etox API works.

The idea is that we want to be able to manipulate subsections of the
text, not just have all the properties apply to all the lines of text.
To accomplish that there are structures that contain the current set of
text properties, these are called Etox_Context's. When you call the
etox_set_* function, all you are really doing is changing the data in
the currently used context. The context's are applied to newly created
text, not the current contents of the etox.

To change the current contents of an etox after it has been created, you
can use the selection mechanism. With this, you select a set of text in
the etox, and then apply a context to the selection. Rephorm was actually
the last one to work on selections, so I'm not exactly sure what state
they are in. Looking at the selections test program, they at least work
to a degree.

To answer your specific question, perform a selection of the entire etox
contents, setup a context with the new settings you want, and then apply
the context to the selection.

Good luck!

-- 
------------------------------------------------------------------------
| Nathan Ingersoll          \\  Computer Systems & Network Coordinator |
| [EMAIL PROTECTED]   \\  http://www.ruralcenter.org            |
| http://ningerso.atmos.org/  \\  Rural Health Resource Center         |
------------------------------------------------------------------------

On Sat, Feb 14, 2004 at 03:34:22AM -0500, dan sinclair wrote:
> Hello,
> 
> I've got a quick question about etox. Is it possible, after the etox has
> been created and the text set, to change the colour of the text in the
> etox?
> 
> I've tried calling the colour_set functions, but there is no change in
> the displayed text. Is there some way I can force the etox to refresh
> itself with the new colour values?
> 
> (I'm also trying to do the same with the font size and have added a
> function to change just the font size, but again, the etox dosen't
> change. If i set the value on create it works correctly).
> 
> Thanks,
> dan
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> enlightenment-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Attachment: signature.asc
Description: Digital signature

Reply via email to