IonicWind Software

IWBasic => General Questions => Topic started by: Andy on February 04, 2010, 05:15:15 AM

Title: License agreement example ?
Post by: Andy on February 04, 2010, 05:15:15 AM
Hi,

I have a set of programs that are working well now, I have a simple screen with a license agreement on it but I would like something more professional looking i.e. text with vertical and horizontal scroll bars so the user can scroll through the text.

Does anybody have a sample of code they would be good enough to let me have a look at and maybe use in my project ?

Best Regards,
Andy.
Title: Re: License agreement example ?
Post by: AdrianFox on February 04, 2010, 05:30:42 AM
Sorry if  I misunderstand what you are asking, but to have vertical and or horizontal scroll bars in your edit box, just use the @hscroll and @vscroll flags:
CONTROL d1,@EDIT,"Edit1",46,19,118,105,@vscroll|@hscroll|@CTEDITMULTI,EDIT_1

Title: Re: License agreement example ?
Post by: Andy on February 04, 2010, 05:54:04 AM
Adrian thanks for a quick reply, you are in the right direction - just wanted a page of text that a user can read without editing
and then either accept or decline the agreement.

The example you gave won't allow me to put multiple lines of text in (I don't think) - but thanks very much for trying

Regards,
Andy.
Title: Re: License agreement example ?
Post by: LarryMc on February 04, 2010, 06:03:00 AM
you can have an edit control with multiple lines
that's what the @CTEDITMULTI that Adrian showed you demonstrates.

LarryMc
Title: Re: License agreement example ?
Post by: Andy on February 04, 2010, 06:50:47 AM
Thanks Larry,

Yes you're both right, I've never used that option before but i'm still at a loss as how to display a page of text that the user cannot edit

do you have any ideas or examples Larry ?

Thanks
Andy.
Title: Re: License agreement example ?
Post by: AdrianFox on February 04, 2010, 07:42:46 AM
Tut tut, Andy!  You're worse at reading the help file/manual than I am!

You use another flag which sets it to read only.   Just have a look on the page which describes the various flags for an edit box, under 'controls' in the Windows programming section of the help file. ;)