forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

colouring text in EB-boxes

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Tue Feb 01, 2005 7:33 am    Post subject: colouring text in EB-boxes Reply with quote

Hello,

I tried to colour part of a text in an EB-box as described in the Clearwin manual. The following program gives no colouring:

WINAPP 0,0
PROGRAM MAIN

EXTERNAL CALLBACK
CHARACTER*1000 BUFFER
INTEGER*4 INFO(24)
COMMON BUFFER,INFO

BUFFER='Colouring text and background(1). Colouring text and background(2). &
&Colouring text and background(3). Colouring text and background(4). &
&Colouring text and background(5). Colouring text and background(6).'
BUFFER(68:6Cool=CHAR(10); BUFFER(136:136)=CHAR(10); BUFFER(204:204)=CHAR(0)

IW=WINIO@('%80.5^`EB[USER_COLOURS]&',BUFFER,1000,INFO,CALLBACK)
IW=WINIO@('%3NL%OB[STATUS]%TT[CLOSE]%CB')
END
!*************************************************************************
INTEGER*4 FUNCTION CALLBACK()

CHARACTER*1000 BUFFER
INTEGER*4 INFO(24),RGB@
COMMON BUFFER,INFO

CALLBACK=0
INFO(15)=30
INFO(16)=20
!! INFO(16)=LOC(BUFFER)+20
INFO(17)=RGB@(0,255,0)
INFO(1Cool=RGB@(255,0,0)
END

Thanks in advance for any help.

Frank

F. Schneider
Back to top
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group