is there a way to change font color

Started by andrew · 2010-01-22 19:11 UTC · 13 replies · SMF topic #1146

is there any way to change the font color of a label?

Take a look at the Foreground Color property.
ahh nice thanks Owen

is there something else i need to do?

i changed it in the editor but it still shows black in the acad screen
Make sure you save the change, then reload the project in AutoCAD.
author=owenwengerd link=topic=1146.msg6082#msg6082 date=1264190501 wrote:
Make sure you save the change, then reload the project in AutoCAD.


ive closed down autocad and restarted it.
still no dice.

Worked for me on Win7, Acad2010.
Are you sure it's not loading anther version of your project?
author=BazzaCAD link=topic=1146.msg6084#msg6084 date=1264199700 wrote:
Worked for me on Win7, Acad2010.
Are you sure it's not loading anther version of your project?



im certain its not loading another version
im using win7 acad 09
If you can attach the files, someone can take a look.
author=owenwengerd link=topic=1146.msg6088#msg6088 date=1264431381 wrote:
If you can attach the files, someone can take a look.


sure can

if you view the odcl file its the colored text is located in form3 in the modal dialogs

if you run the program and click on the button that says "release"
that will bring up the dialog that the colored text should appear on

thanks
Attachments
The label displays red as expected for me.
When I tested with 6.0.0.16, I didn't get Red, when I tested with 6.0.0.20 I did get Red.
What version are you on? I'm guessing a bug was fixes between these versions?
I also get "error: Automation Error. Out of range" when I hit the "Release" button...

I've also noticed your "delete_confirm" & "merge_confirmation" forms are pretty much message boxes.
Do you know about the {2} function?
Attachments
hi Barry,

im using version 6.0.0.15 so maybe thats why the text isnt red.

ill have to update the files to a newer version.

yes i know about the message boxes but using the ones i made, after you press the yes or no they do a function according to the response.

thanks for checking it out.
The Messagebox also gives return values:


(setq YesNo (dcl_MessageBox "Do you want to do this?" "Warning" 5 3 nil))
(if (= YesNo 6)
  (DoYesStuff)
  (DoNoStuff)
)

OR


(if (= 6 (dcl_MessageBox "Do you want to do this?" "Warning" 5 3 nil))
 (DoYesStuff)
 (DoNoStuff)
)

Return Values   Button
1
2
3
4
5
6
7
i didnt know that. cool
ill look into that

thanks again