Jump to content



Photo

How to force the IE page to expand to full screen along with the GUI.


  • Please log in to reply
3 replies to this topic

#1 tommytx

tommytx

    Prodigy

  • Active Members
  • PipPipPip
  • 164 posts

Posted 22 March 2012 - 04:49 AM

This GUI is eating my lunch. I have one similar that is working but I cannot detect what the difference is... When it hits the code to expand full screen only the gui expands.. I also have a maximize button on the Gui and it also expands the gui only and not the page... Any help would be appreciate.. or tell me what I might check... Thanks.
I have used the _IEproperty to view via msgbox that the title is correct on both the ie page and the gui..


  $name = "Win1" $width = 500 $height = 250 $left = 20 $top = 10 $hGUI = GUICreate($name, $width, $height, $left, $top, BitOR($WS_EX_TOPMOST, $WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_BORDER), $WS_EX_COMPOSITED)   $oIE1 = ObjCreate("Shell.Explorer.2")   $Obj_ctrl = GUICtrlCreateObj($oIE1, 2, 2, $width-10, $height-10)   GUICtrlSetResizing($Obj1_ctrl, 0x0001) GUISetState(@SW_SHOW) WinSetState("Win1", "", @SW_MAXIMIZE) WinActivate("Win1")






#2 tommytx

tommytx

    Prodigy

  • Active Members
  • PipPipPip
  • 164 posts

Posted 22 March 2012 - 06:04 AM

This is very important.. I keep trying everything I can think of.. Just tried changing the name of the gui compared to the title of the page loaded.. but no help.. I suppose I could order a resize, but there has got to be a way to make the page maximize... I have done it before with a GUi.. just cannot remember how I did it...

#3 lorenkinzel

lorenkinzel

    Wayfarer

  • Active Members
  • Pip
  • 78 posts

Posted 23 March 2012 - 02:36 AM

This one expands.
Plain Text         
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $name = "Win1" $width = 500 $height = 250 $left = 20 $top = 10 $hGUI = GUICreate($name, $width, $height, $left, $top, BitOR($WS_EX_TOPMOST, $WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_BORDER), $WS_EX_COMPOSITED) $oIE1 = ObjCreate("Shell.Explorer.2") $Obj_ctrl = GUICtrlCreateObj($oIE1, 2, 2, $width - 10, $height - 10) ;GUICtrlSetResizing($Obj1_ctrl, 0x0001);>>>>>>>>>>>>>>>>>>>>>>>>> GUICtrlSetResizing($Obj_ctrl, 0x0001) GUISetState(@SW_SHOW) ;WinSetState("Win1", "", @SW_MAXIMIZE) ;WinActivate("Win1") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd


Re: below post.
My wife has asked me before; "how many smart mistakes have you made?"
(I didn't want to bump so edit instead)

Edited by lorenkinzel, 03 July 2012 - 03:43 AM.


#4 tommytx

tommytx

    Prodigy

  • Active Members
  • PipPipPip
  • 164 posts

Posted 23 March 2012 - 04:26 PM

$Obj_ctrl = GUICtrlCreateObj($oIE1, 2, 2, $width - 10, $height - 10)
;GUICtrlSetResizing($Obj1_ctrl, 0x0001);>>>>>>>>>>>>>>>>>>>>>>>>>
Thank you! What a stupid mistake.. on naming the obj_ctrl...
Obviously it would not work... you made my day..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users