Jump to content
Sign in to follow this  
Knewlife

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

Recommended Posts

Knewlife

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

Share this post


Link to post
Share on other sites
Edano

welcome, post what you have coded so far.


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
Knewlife

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

Share this post


Link to post
Share on other sites
Edano

usually a listview would do what you want....


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
Knewlife

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?

Share this post


Link to post
Share on other sites
Edano

yes sure :)


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
Edano

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 by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
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
Sign in to follow this  

×