Jump to content
Sign in to follow this  
everseeker

set color in a text box

Recommended Posts

everseeker

I seem to be forming my search incorrectly... get lots of data on PICKING colors... What I want to do is a LOT simpler...

I have a text box. It contains a bunch of random text...

Among the text is "...Number passed =9, Number failed = 22..."

I want it to display like this:

Number passed = 9, Number failed = 22

All I can find so far is

GUICtrlSetColor() which sets the entire control....

Oh, and richtext editing in a console thing.... WAY too complicated for what I need (I hope)

Edited by everseeker

Everseeker

Share this post


Link to post
Share on other sites
GEOSoft

Search for RichText Edit or just richtext

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
BrettF
everseeker

No reason to bump the other thread...

Actually, there is...

In everyone's haste to tell the newbie to go look for the answer, No one seems to have noticed that the stock answers are

1 REALLY complicated

2 NOT really "on topic"

The question is this:

I want a control (let's go with list view)

I want cells in the list view to display text in colors, depending on conditions

is there a way to acomplish this? (If so, PLEASE drop a small bit of code that shows me what you are describing without having that code open up 18 different how-to/system status/com object views or other assorted stuff totally obsfuscating the point of the code)

Example of what I am looking for, Checkbook ledger, Amount deposited, Balance

If Balance is +, display Green. If -, display red

Amt Bal

10 10

20 30

-40 -10

20 10

CAN AitoIT do this?

Edited by everseeker

Everseeker

Share this post


Link to post
Share on other sites
colafrysen

CAN AitoIT do this?

I really am no expert, but from looking at the functions inside <GuiListView.au3> i think you are limited to one background and text colour per control.

So Richtext might be the only way here :D

Edit: Formatting

Edited by colafrysen

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]

Share this post


Link to post
Share on other sites
BrettF

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.