Sign in to follow this  
Followers 0
_Chris_

Locked Edit Box?

4 posts in this topic

Hi,

I am building an instalation shell which launches different setups. Baically i want to show our terms and conditions in a scroll box. The terms and conditions are picked up from a text file and this works, i currently use an edit box to display the text. I want to lock the box so it cannot be edited. I tryed making it readonly and disabling it but then it cannot be scrolled! Can labels be configured to scroll?

Any ideas Anyone?? Im fairly new to autoit so i may just be missing something!

Sample of code:

$eula = FileRead("Licence.txt")

$ebox = GUICtrlCreateEdit ($eula, 203, 78, 282 , 200)

FileClose("Licence.txt")

Thanks

Share this post


Link to post
Share on other sites



Hi,

I am building an instalation shell which launches different setups. Baically i want to show our terms and conditions in a scroll box. The terms and conditions are picked up from a text file and this works, i currently use an edit box to display the text. I want to lock the box so it cannot be edited. I tryed making it readonly and disabling it but then it cannot be scrolled! Can labels be configured to scroll?

Any ideas Anyone?? Im fairly new to autoit so i may just be missing something!

Sample of code:

$eula = FileRead("Licence.txt")

$ebox = GUICtrlCreateEdit ($eula, 203, 78, 282 , 200)

FileClose("Licence.txt")

Thanks

#include <EditConstants.au3>


    GUICtrlSendMsg($ebox , $EM_SETREADONLY, True, 0)
    GUICtrlSetBkColor($ebox , 0xFFFFFF)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Thanks! Works a treat!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0