<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/Astrath:createHidden?action=history&amp;feed=atom</id>
	<title>Astrath:createHidden - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/Astrath:createHidden?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createHidden&amp;action=history"/>
	<updated>2026-05-07T13:10:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Astrath:createHidden&amp;diff=82558&amp;oldid=prev</id>
		<title>Sybellex: Created page with &quot;= DxHidden:new =   {{Client function}} {{FuncDef|element DxHidden:new ( float posX, float posY, float width, float height, element parent, boolean relative )}}  '''Description:''' Creates a hidden DX element. Hidden elements are not drawn and can be used as containers or invisible parents for other DX elements. They can store position and size information and manage child elements.  '''Parameters:''' * posX, posY (float) – Position on screen. * width, height (float)...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Astrath:createHidden&amp;diff=82558&amp;oldid=prev"/>
		<updated>2025-10-22T19:56:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= DxHidden:new =   {{Client function}} {{FuncDef|element DxHidden:new ( float posX, float posY, float width, float height, element parent, boolean relative )}}  &amp;#039;&amp;#039;&amp;#039;Description:&amp;#039;&amp;#039;&amp;#039; Creates a hidden DX element. Hidden elements are not drawn and can be used as containers or invisible parents for other DX elements. They can store position and size information and manage child elements.  &amp;#039;&amp;#039;&amp;#039;Parameters:&amp;#039;&amp;#039;&amp;#039; * posX, posY (float) – Position on screen. * width, height (float)...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= DxHidden:new =&lt;br /&gt;
 &lt;br /&gt;
{{Client function}} {{FuncDef|element DxHidden:new ( float posX, float posY, float width, float height, element parent, boolean relative )}}&lt;br /&gt;
&lt;br /&gt;
'''Description:'''&lt;br /&gt;
Creates a hidden DX element. Hidden elements are not drawn and can be used as containers or invisible parents for other DX elements. They can store position and size information and manage child elements.&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
* posX, posY (float) – Position on screen.&lt;br /&gt;
* width, height (float) – Size of the hidden element.&lt;br /&gt;
* parent (element) – Parent DX element to attach this hidden element to (optional).&lt;br /&gt;
* relative (boolean) – Position relative to parent (optional).&lt;br /&gt;
&lt;br /&gt;
'''Returns:'''&lt;br /&gt;
: Returns the newly created DxHidden element.&lt;br /&gt;
&lt;br /&gt;
'''Methods:'''&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%; border:none;&amp;quot;&lt;br /&gt;
! Method !! Description&lt;br /&gt;
|-&lt;br /&gt;
| Ath:destroy() || Destroys the hidden element and all its child elements.&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setVisible(boolean) || Sets the visibility state of the hidden element (mostly for management, as hidden elements are not drawn).&lt;br /&gt;
|-&lt;br /&gt;
| Ath:setEnabled(boolean) || Enables or disables the element for internal logic or child interaction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Create a hidden element at position 100x100 with size 200x200&lt;br /&gt;
local hidden = DxHidden:new(100, 100, 200, 200)&lt;br /&gt;
&lt;br /&gt;
-- Set it invisible (default, but can be toggled)&lt;br /&gt;
hidden:setVisible(false)&lt;br /&gt;
&lt;br /&gt;
-- Enable it for internal logic&lt;br /&gt;
hidden:setEnabled(true)&lt;br /&gt;
&lt;br /&gt;
-- Use as parent for other DX elements&lt;br /&gt;
local btn = DxButton:new(&amp;quot;Click Me&amp;quot;, 10, 10, 100, 40, hidden)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''See also:'''&lt;br /&gt;
* [[Astrath]] – Main library page&lt;br /&gt;
* [[DxWindow:new]] – Example of visible container element&lt;br /&gt;
* [[DxButton:new]] – Example of child element&lt;/div&gt;</summary>
		<author><name>Sybellex</name></author>
	</entry>
</feed>