Knewlife Posted August 10, 2013 Share Posted August 10, 2013 (edited) Hi! this is my first post here, i'am learning Autoit and making a first GUI app... so i need to Scroll 2 Edit Controls at the same time, when user scroll Edit1, Edit2 has to scroll to the same position (Both are editable). I Found some similar post but i'm a little confused by the big amount of scrollbar functions. Thanks in advance Edited August 10, 2013 by Knewlife Link to comment Share on other sites More sharing options...
Edano Posted August 10, 2013 Share Posted August 10, 2013 welcome, post what you have coded so far. [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
Knewlife Posted August 10, 2013 Author Share Posted August 10, 2013 (edited) I have the wole GUI and other things working, don't have the code right here but i just need to know the right functions... it works in EventsMode. This 2 edit ctrls are for edit 2 lists of words... the first word of edit1 is related to the first word of edit2 so i think it would be nice to scroll then both when one is scrolled Down or Up. I guess it will be someting like (PSEUDOCODE) Func Edit1OnScroll_Event $pos = GUICtrlGetVScroll($edit1) GUICtrlSetVScroll($edit2,$pos) EndFunc Func Edit2OnScroll_Event $pos = GUICtrlGetVScroll($edit2) GUICtrlSetVScroll($edit1,$pos) EndFunc But don't know how to do it in AutoIt Sorry for my english (am talk spanish ) Edited August 10, 2013 by Knewlife Link to comment Share on other sites More sharing options...
Edano Posted August 10, 2013 Share Posted August 10, 2013 usually a listview would do what you want.... [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
Knewlife Posted August 10, 2013 Author Share Posted August 10, 2013 Just reading the docs... i think you will say this XD... you are right... i will let the app working as is right now... will replace the 2 edits with a listview and add/remove buttons later. i am (or was) a php programer so tend to use basic html ctrl equivalents. Items in Listview can be text edited, deleted added, etc right? Link to comment Share on other sites More sharing options...
Edano Posted August 10, 2013 Share Posted August 10, 2013 yes sure [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
Edano Posted August 10, 2013 Share Posted August 10, 2013 (edited) if you look around in the forum you will see how flexible listviews can be. you can color them, add checkboxes, groups or icons, sort them ..... ..... ..... '?do=embed' frameborder='0' data-embedContent>> Edited August 10, 2013 by Edano [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
Edano Posted August 10, 2013 Share Posted August 10, 2013 '?do=embed' frameborder='0' data-embedContent>> [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] 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