Jump to content

How to record the width/height of a GUI?


Damein
 Share

Recommended Posts

So I am creating a GUI with the following parameters:

$Gui = GuiCreate("Gui", @DesktopWidth - 200, @DesktopHeight - 200)

And I want to then embed IE into it, and I want to make sure it stays the same size it needs to be. But using the @DesktopWidth and @DesktopHeight gives it a variable size, depending on the user. So I don't know how I could get the same effect with the IE.

I attempted doing :

$GUIActiveX = GUICtrlCreateObj($EmbedIE, 10, 40, @DesktopWidth - 400, @DesktopHeight - 400)

Which did the trick, in a sense. But it removed the scroll bars on the embedded IE control. I dunno why that is exactly, but I can't seem to keep it variably changing and keep the scroll bar.

Thanks :D

*** EDIT ***

Nevermind, I re-tried the way I posted and the scroll bar was indeed not visible, but as soon as I tried scrolling it popped up. Anyway to make it not do that?

Edited by Damein

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

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