Jump to content

Ayuda Con Panel


Recommended Posts

Hola Chicos.

Una Ayudita.

      function Panels() 
  
                Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) 
        Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) 
         
         
    end 
     
addCommandHandler ( "ASC", Panels ) 

Como Modificaria Para Que Este Panel No Abriera Con AddCommandHandler y Abra y Cierre Con un BindKey Como Por Ejemplo Abra Con La Tecla F3

Link to comment
function Panels() 
  
                Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) 
        Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) 
        
        
    end 
  
bindKey('f3','down', 
function() 
guiSetVisible(Panels, not guiGetVisible(Panels)) 
showCursor(not isCursorShowing()) 
end 
) 

Haci como sta Me Sale Error: Bad Argument guiSetVisible

Link to comment
function Panels() 
  
                Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) 
        Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) 
        
        
    end 
  
bindKey('f3','down', 
function() 
guiSetVisible(Panels, not guiGetVisible(Panels)) 
showCursor(not isCursorShowing()) 
end 
) 

Haci como sta Me Sale Error: Bad Argument guiSetVisible

por que tu ventana se llama Panel y vos pusistes Panels

Link to comment
  
            Panel = guiCreateWindow(40,2,726,590,"BlaBlaBlaBla",false) 
           Imagen = guiCreateStaticImage(9,23,708,558,"images/image12.png",false,Panel) 
           guiSetVisible(Panel, false) 
      
    bindKey('f3','down', 
    function() 
    guiSetVisible(Panel, not guiGetVisible(Panel)) 
    showCursor(not isCursorShowing()) 
    end 
    ) 

A mi me funciona en mis resources

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...