HU/focusBrowser

From Multi Theft Auto: Wiki
Revision as of 11:49, 30 July 2018 by Surge (talk | contribs)
Jump to navigation Jump to search

Ez a funkció megpróbálja fókuszba állítani a böngészőt vagy fókuszálatlanná tenni. A fókuszban lévő böngésző megkapja a billentyűleütéseket.

Szintaxis

bool focusBrowser ( browser webBrowser )

OOP Syntax Help! I don't understand this!

Method: browser:focus(...)


Kötelező argumentumok

  • webBrowser: The web browser to be focused - if this is nil, it will unfocus all browsers.

Visszaadott érték

Returns true if the browser was focused or if nil was passed, false if it failed to focus or the browser does not exist.

Példa

Click to collapse [-]
Client

This example creates browser and focus it

local browser = createBrowser(860, 680, false)
addEventHandler("onClientBrowserCreated", browser,
   function ()
       focusBrowser(source)
   end
)

Lásd még

Fordította

  • Surge