DgsMemoGetReadOnly

From Multi Theft Auto: Wiki

This function allows you to get read-only status for a dgs memo.

Syntax

bool dgsMemoGetReadOnly ( element memo )

Required Arguments

  • memo: The dgs-dxmemo that you want to get.

Returns

Returns a boolean value of the read-only status of the dgs memo.

Example

DGS = exports.dgs 
myWebsite = "development.mtasa.com" -- define the text to be displayed in advert field
function createAdvert( )
	local advert = DGS:dgsCreateMemo( 0.845, 0.94, 0.15, 0.05, myWebsite, true ) -- create memo field for the advert
	outputChatBox("The memo is"..(dgsMemoGetReadOnly ( advert ) and " not" or "") .." editable")
	if advert then -- if it was successfully created
		DGS:dgsMemoSetReadOnly( advert, true ) -- make it read only
	end
	outputChatBox("The memo is"..(dgsMemoGetReadOnly ( advert ) and " not" or "") .." editable")
end
addEventHandler ( "onClientResourceStart", getResourceRootElement( getThisResource() ), createAdvert )

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D