Sign in to follow this  
Followers 0
AL3X

--

5 posts in this topic

#1 ·  Posted (edited)

--

Edited by AL3X

Share this post


Link to post
Share on other sites



Just move _GUICtrlStatusBar_Create() to end - after GUICtrlCreateMenu()

#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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

--

Edited by AL3X

Share this post


Link to post
Share on other sites

LOL ! You are right! It works now :D

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.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

--

Edited by AL3X

Share this post


Link to post
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
Sign in to follow this  
Followers 0