_Chris_ 0 Report post 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 Share this post Link to post Share on other sites
BPBNA 1 Report post Posted August 25, 2006 $ebox = GUICtrlCreateEdit ($eula, 203, 78, 282 , 200, $ES_READONLY+$WS_VSCROLL) Share this post Link to post Share on other sites
GaryFrost 11 Report post 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. Share this post Link to post Share on other sites
_Chris_ 0 Report post Posted August 25, 2006 Thanks! Works a treat! Share this post Link to post Share on other sites