October 31, 2025, 05:27:40 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


License agreement example ?

Started by Andy, February 04, 2010, 05:15:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

AdrianFox

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

Adrian Fox

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

you can have an edit control with multiple lines
that's what the @CTEDITMULTI that Adrian showed you demonstrates.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

AdrianFox

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. ;)
Adrian Fox