Jump to content

Recommended Posts

Posted

I have a rather large script that uses many embedded IE's within several Tabs to display html encoded text.  The _IECreateEmbedded() function says to use the style $WS_CLIPCHILDREN on the GuiCreate to prevent display issues.  but when I do that, all my guictrlcreateinput() boxes start out looking flat until I move my mouse over them.

I'm assuming there is some style or something I need to add to get everything to work together but I haven't been able to figure it out.  oh, and I'm using v3.3.14.5

Here is a small sample to show how the input boxes are flat until you move your mouse across them.

;Demo to show problem with controls
#include <GUIConstants.au3>
#include <ButtonConstants.au3>

$iGUIw = 1000
$iGUIh = 720
Global $hStart[8]

$guiMain = GUICreate("ALM Archival (v" & FileGetVersion(@ScriptFullPath) & ")", $iGUIw, $iGUIh, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_CLIPCHILDREN))

$hTabs = GUICtrlCreateTab(5, 5, $iGUIw - 10, $iGUIh - 35)
$hTabStart = GUICtrlCreateTabItem("Start")
    GUICtrlSetState($hTabStart, $GUI_SHOW)

    $hStart[0] = GUICtrlCreateLabel("Please select an archive database to view, using File > Open Archive", 10, 53, $iGUIw - 20, 20, $SS_CENTER)
    GUICtrlSetFont(-1, 10, 400)

    $hStart[1] = GUICtrlCreateButton("Button", 185, 300, 100, 20)

    ;Give an overview of each module
    GUICtrlCreateLabel("Release and Cycle Count:", 40, 123, 140, 17, $SS_RIGHT)
    $hStart[2] = GUICtrlCreateInput("", 185, 120, 60, 20, $ES_AUTOHSCROLL + $ES_RIGHT + $ES_READONLY)
    $hStart[3] = GUICtrlCreateProgress(255, 120, 600, 20)
    GUICtrlSetState(-1, $GUI_HIDE)

    GUICtrlCreateLabel("Requirements Count:", 40, 153, 140, 17, $SS_RIGHT)
    $hStart[4] = GUICtrlCreateInput("", 185, 150, 60, 20, $ES_AUTOHSCROLL + $ES_RIGHT + $ES_READONLY)
    $hStart[5] = GUICtrlCreateProgress(255, 150, 600, 20)
    GUICtrlSetState(-1, $GUI_HIDE)

    GUICtrlCreateLabel("Test Plan Count:", 40, 183, 140, 17, $SS_RIGHT)
    $hStart[6] = GUICtrlCreateInput("", 185, 180, 60, 20, $ES_AUTOHSCROLL + $ES_RIGHT + $ES_READONLY)
    $hStart[7] = GUICtrlCreateProgress(255, 180, 600, 20)
    GUICtrlSetState(-1, $GUI_HIDE)

GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW, $guiMain)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg

        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch

WEnd

 

Thanks,

Mike

  • 3 weeks later...
Posted
$WS_CLIPCHILDREN is for the parent window and $WS_CLIPSIBLINGS for the kids, right?

;o) Cor

nothing is foolproof to the sufficiently talented fool..

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
×
×
  • Create New...