Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 11-13-2017, 06:22 PM
FreakaZoid2 FreakaZoid2 is offline
Senior Member
 
Join Date: Jul 2009
Posts: 300
Default Conver string value of 'clBlue' into color clBlue

Have a need to interpret text into component properties,
Color := TColor('clBlue');
Font := TFont('Courier');
  #2  
Old 11-13-2017, 08:19 PM
rojam rojam is offline
Senior Member
 
Join Date: Jun 2015
Posts: 173
Default

what you need is StringToColor
There's also ColorToString

If you have JVCL installed, you can use StringToFont

Last edited by rojam; 11-13-2017 at 09:09 PM.
  #3  
Old 11-13-2017, 10:29 PM
FreakaZoid2 FreakaZoid2 is offline
Senior Member
 
Join Date: Jul 2009
Posts: 300
Default Well damn that was nice to find out about

Thanks so much...
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:06 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.