Vindicator Posted November 5, 2006 Share Posted November 5, 2006 (edited) ok, I sorta have an EULA, and I dont want the person to be able to edit thats in it, so I have the script check if the edit window is still the same as the EULA file, but this only works if the user deletes everything in the window: expandcollapse popupWhile 1 ;Rewrite If $click = 1 Then If Not GUICtrlRead($Edit_2)=$read Then GUICtrlSetData($Edit_2,$read) EndIf EndIf ;end $msg = GuiGetMsg() Select Case $msg = $Button_4 Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(52,"Quit",'Are you sure to want to exit installation?') Select Case $iMsgBoxAnswer = 6 ;Yes Exit Case $iMsgBoxAnswer = 7 ;No EndSelect Case $msg = $Button_3 If $click=1 Then If GUICtrlRead($Input_5)="u4ia" Then WinClose("Install") Else MsgBox(0,"Oops!","Please read the EULA and input the password into the box to the left") EndIf EndIf If $click=0 Then $read=FileRead("EULA.txt") GUICtrlSetData($Edit_2,$read) $Input_5 = GuiCtrlCreateInput("", 300, 360, 60, 20) $click=1 EndIf Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd But instead of that, how could I make the control scrollable, but not editable? Edited November 5, 2006 by P a R a D o X If I hadn't said thank you yet, and you deserve it, than thank you... Link to comment Share on other sites More sharing options...
Paulie Posted November 5, 2006 Share Posted November 5, 2006 (edited) ok, I sorta have an EULA, and I dont want the person to be able to edit thats in it, so I have the script check if the edit window is still the same as the EULA file, but this only works if the user deletes everything in the window: (Snip) But instead of that, how could I make the control scrollable, but not editable?you can just give your edit the "$ES_READONLY" style, then they can't edit it Edited November 5, 2006 by Paulie Link to comment Share on other sites More sharing options...
rambo3889 Posted November 5, 2006 Share Posted November 5, 2006 Paulie even if he did that it would remove the scroller in the right in the edit so i cant scroll i got the same problem sometimes when i need to that My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
Paulie Posted November 5, 2006 Share Posted November 5, 2006 (edited) Paulie even if he did that it would remove the scroller in the right in the edit so i cant scroll i got the same problem sometimes when i need to thatGuiCtrlCreateEdit("Bla", 10, 10, 400, 400, BitOR($ES_AUTOVSCROLL, $ES_READONLY, $WS_VSCROLL)) Does that not work? Works for me.. Edited November 5, 2006 by Paulie Link to comment Share on other sites More sharing options...
rambo3889 Posted November 5, 2006 Share Posted November 5, 2006 I think that works havent tested yet My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
Vindicator Posted November 5, 2006 Author Share Posted November 5, 2006 yes it does...thanks If I hadn't said thank you yet, and you deserve it, than thank you... Link to comment Share on other sites More sharing options...
GaryFrost Posted November 5, 2006 Share Posted November 5, 2006 I've post this sooooooo many timeshttp://www.autoitscript.com/forum/index.ph...st&p=251991 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...
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