DxWindowGetCloseState: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
loadstring(exports.dxlib:dxGetLibrary())() | loadstring(exports.dxlib:dxGetLibrary())() | ||
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true) | win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true) | ||
bindKey('k', 'down', | bindKey('k', 'down', | ||
function() | |||
outputChatBox('El boton de cerrado esta '..(dxWindowGetCloseState( win ) and 'visible' or 'oculto')) | |||
end | |||
) | ) | ||
Revision as of 04:13, 11 May 2022
Esta funcion obtiene el estado del boton de cerrado de una dxWindow.
Sintaxis
bool dxWindowGetCloseState(element element)
Argumentos requeridos
- element: La ventana la cual se obtendra el estado del boton de cerrado.
Ejemplo de Uso
loadstring(exports.dxlib:dxGetLibrary())() win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true) bindKey('k', 'down', function() outputChatBox('El boton de cerrado esta '..(dxWindowGetCloseState( win ) and 'visible' or 'oculto')) end )
Ver también
General Functions
- dxGetLibrary
- dxGetScreen
- dxSet
- dxGet
- dxSetText
- dxSetTitle
- dxSetVisible
- dxSetEnabled
- dxSetPosition
- dxGetPosition
- dxSetSize
- dxGetSize
- dxGetRootParent
- dxSetColorBackground
- dxSetColorText
- dxSetColorSelected
- dxSetColorBorder
- dxFont
- dxSetFont
- dxGetText
- dxSetTitle
- dxGetTitle
Window
Button
CheckBox
Edit
GridList
- dxGridList
- dxGridListAddItem
- dxGridListRemoveItem
- dxGridListAddColumn
- dxGridListRemoveColumn
- dxGridListGetItemSelected
- dxGridListSetItemSelected
- dxGridListGetScrollHV
Image
Label
List
- dxList
- dxListAddItem
- dxListRemoveItem
- dxListGetItemSelected
- dxListSetItemSelected
- dxListSetColorFilaItem