DxWindowSetCloseState: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
===Argumentos requeridos=== | ===Argumentos requeridos=== | ||
* '''element''': | * '''element''': El elemento [[dxWindow]]. | ||
* '''state''': Un booleano | * '''state''': Un booleano (true o false). | ||
==Ejemplo de Uso== | ==Ejemplo de Uso== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
loadstring(exports. | loadstring( exports.dxLibrary:dxGetLibrary( ) )( ) | ||
--creamos una ventana | --creamos una ventana | ||
win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true) | win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true) |
Latest revision as of 20:23, 21 May 2022
Esta funcion oculta o visualiza el boton de cerrado de una dxWindow.
Aviso: Esta es una función exportada por Modern-Library!
Sintaxis
bool dxWindowSetCloseState(element element, bool state)
Argumentos requeridos
- element: El elemento dxWindow.
- state: Un booleano (true o false).
Ejemplo de Uso
loadstring( exports.dxLibrary:dxGetLibrary( ) )( ) --creamos una ventana win = dxWindow(251, 21, 250, 300, 'Window DEMO', true, true) --Le removemos el boton de cerrado mediante la funcion. dxWindowSetCloseState( win, false )
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