Jump to content

Get Scroll V&H Position of $EditCtrl1 and Set Scroll V&H Position of $EditCtrl2


Knewlife
 Share

Recommended Posts

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 by Knewlife
Link to comment
Share on other sites

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 by Knewlife
Link to comment
Share on other sites

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

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...