Zedna Posted April 27, 2008 Posted April 27, 2008 Just move _GUICtrlStatusBar_Create() to end - after GUICtrlCreateMenu() expandcollapse popup#include <GUIConstants.au3> #include <GuiStatusBar.au3> $Interfaz = GUICreate("YouTuBe Downloader 2.0", 395, 232, 283, 302) $LinkDelVideo = GUICtrlCreateLabel("Link del video:", 16, 72, 73, 17) $Label2 = GUICtrlCreateLabel("Velocidad:", 16, 17, 50, 16) $Velocidad = GUICtrlCreateLabel("0 Kb/s", 76, 17, 60, 16) $Label3 = GUICtrlCreateLabel("Tiempo restante:", 16, 33, 79, 16) $TiempoRestante = GUICtrlCreateLabel("0 sec", 105, 33, 50, 16) $Label4 = GUICtrlCreateLabel("Porciento completado:", 16, 49, 110, 16) $MedidorPorcientoCompletado = GUICtrlCreateLabel("0 %", 129, 49, 40, 16) $Descargando = GUICtrlCreateLabel("Descargando:", 16, 128, 73, 17) $Convirtiendo = GUICtrlCreateLabel("Convirtiendo:", 16, 158, 73, 17) $DownloadLinkInput = GUICtrlCreateInput("", 16, 94, 242, 22) $BotonDescargar = GUICtrlCreateButton("Descargar", 264, 94, 75, 25) $BarraDeProgreso = GUICtrlCreateProgress(96, 124, 242, 23) $BarraDeConversion = GUICtrlCreateProgress(96, 154, 242, 23) $Group1 = GUICtrlCreateGroup("", 8, 8, 345, 177) GUICtrlCreateGroup("", -99, -99, 1, 1) $MenuArchivo = GUICtrlCreateMenu("&Archivo") $MenuSalir = GUICtrlCreateMenuItem("Salir", $MenuArchivo) $MenuEdicion = GUICtrlCreateMenu("&Edicion") $MenuCortar = GUICtrlCreateMenuItem("Cortar", $MenuEdicion) $MenuCopiar = GUICtrlCreateMenuItem("Copiar", $MenuEdicion) $MenuPegar = GUICtrlCreateMenuItem("Pegar", $MenuEdicion) $MenuMasInfo = GUICtrlCreateMenu("&Mas Info") $MenuAcercade = GUICtrlCreateMenuItem("Acerca de...", $MenuMasInfo) $StatusBar1 = _GUICtrlStatusBar_Create($Interfaz) _GUICtrlStatusBar_SetText($StatusBar1, "Estado: Esperando...", 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search
Zedna Posted April 27, 2008 Posted April 27, 2008 LOL ! You are right! It works now Thanks a lot!PD: ¿Why does it happens? Its a "bug" or it just has to be this way ?As far as I know GUICtrlCreateMenu() should be the first after GUICreate() to avoid some problems.Maybe it's AutoIt bug, I'm not sure about that. Resources UDF ResourcesEx UDF AutoIt Forum Search
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