LeftclicK Posted June 18, 2007 Share Posted June 18, 2007 (edited) Hello, I am trying to design a very basic GUI with the MsTscAX.MsTscAX control, but having some issues with re-draw. I tried all the standard GUI tricks to get the control to clip / redraw correctly, but nothing seems to be making a dent in the issue. Basicaly, if I run the GUI, the control displays fine, but any sort of resizing just covers a portion of the control in white or gray. Also, if I drag anything over the control or the control itself off the screen and then back, I also get just the white/gray. See my code below, any help you could give me would be greatly appreciated. expandcollapse popup$Base = GUICreate("Amici Server Connection (" & $Logon & "@" & $Server & ")", 1024, 768, -1 , -1, $WS_OVERLAPPEDWINDOW ) $oRDP = ObjCreate("MsTscAx.MsTscAx") $GUIActiveX = GUICtrlCreateObj($oRDP, 0, 0, 1024, 768) GUICtrlSetStyle ( $GUIActiveX, $WS_CLIPSIBLINGS ) GUICtrlSetResizing ($GUIActiveX,$GUI_DOCKSIZE) $oRDP.AdvancedSettings.BitmapPeristence = 1 $oRDP.FullScreen = True $oRDP.AdvancedSettings2.RedirectDrives = True $oRDP.AdvancedSettings2.RedirectPrinters = True $oRDP.Server = $Server $oRDP.Domain = "" $oRDP.UserName = $Logon $oRDP.AdvancedSettings2.ClearTextPassword = $Password $oRDP.DesktopWidth = 1024 $oRDP.DesktopHeight = 768 $oRDP.Connect() GUISetState() While $oRDP.Connected <> 1 Sleep(100) WEnd While 1 $msg = GUIGetMsg() _API_UpdateWindow($Base) If $oRDP.Connected <> 1 Then ExitLoop EndIf Select Case $msg = $GUI_EVENT_CLOSE $oRDP.RequestClose() ExitLoop EndSelect WEnd GUIDelete() Sleep(1000) Exit Edited June 18, 2007 by LeftclicK Link to comment Share on other sites More sharing options...
AndyDLD Posted June 28, 2007 Share Posted June 28, 2007 Hi, i have the same problem. I played around with HTA (html application) and there is the same problem, too. But if the HTA-Tag is NOT placed theres no problem. A workaround or solutions for this problem in AutoIt would be very nice. Greets, Andy Link to comment Share on other sites More sharing options...
lod3n Posted June 28, 2007 Share Posted June 28, 2007 Resolved:#365233 [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now