Jump to content

Locked Edit Box?


Recommended Posts

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

Link to comment
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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...