Jump to content

Scrolling an image


Recommended Posts

I am trying to write what should be about the easiest application you can imagine for Autoit3.

I want to display an image in a fixed sized GUI. The image is larger than the GUI (vertically only) so I want to add a vertical scroll bar.

The problem is that the scroll bar does not function. I have tried many different ideas but seem to be hitting my head against a brick wall with this one. I'm hoping someone with some more GUI experience can help with this one.

Here is one example of code I have tried:

CODE
$NotifyGUI=GUICreate("News",300,300,-1,-1,BitOr($WS_POPUPWINDOW,$WS_VSCROLL,$SS_NOTIFY ))

$NotifyPic = GuiCtrlCreatePic("today.gif",0,0,280,800,BitOR($WS_VISIBLE,$SS_NOTIFY),$GUI_WS_EX_PARENTDRAG)

I have also tried using Auto3Lib without success.

Any pointers appreciated.

Link to comment
Share on other sites

Thanks for the pointer, it is getting quite close to what I am looking for.

The only problem now is I can't figure out how to calculate what I should set the scroll range to so the image is fully displayed without white space.

I'll go post about that in the above thread...

Cheers

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