_Chris_ Posted August 25, 2006 Share Posted August 25, 2006 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 More sharing options...
BPBNA Posted August 25, 2006 Share Posted August 25, 2006 $ebox = GUICtrlCreateEdit ($eula, 203, 78, 282 , 200, $ES_READONLY+$WS_VSCROLL) Link to comment Share on other sites More sharing options...
GaryFrost Posted August 25, 2006 Share Posted August 25, 2006 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 More sharing options...
_Chris_ Posted August 25, 2006 Author Share Posted August 25, 2006 Thanks! Works a treat! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now