Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Color Font with a custom dialog


1 reply to this topic

TLA

TLA
  • Members
  • 26 posts

Posted 09 July 2002 - 12:53

Hi all!

Under IS 7.03 with Standard project I build a custom dialog.

I need to display a text (Text Area control) in Bold red.

Set the text in bold is possible with IS function CtrlSetFont.
But How Set the color?

In IS6 this functionnality was impossible with IS script except if you manage your Dialog via a c/c++ dll (see Moonsea tools).

Is there a solution with IS7?
With standard project the TextStyle table can be use to change color of control?

Thx
TLA

CodeSkunk

CodeSkunk
  • Members
  • 9 posts

Posted 16 July 2002 - 21:06

Yup...

Add an entry to the TextStyle table like:

FunkyMonkey,Arial,10,255,1
255=RED
1=BOLD

Then, skip InstallShield and go to the control table and find your control.
Insert {FunkyMonkey} in front of your text you want formatted.

Good luck
CodeSkunk
Sr. Propeller Head
~Making windows my b**ch since '93