DgsProgressBarSetMode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:


===Required Arguments===  
===Required Arguments===  
[[Image:dgspgMode.gif|frame|Example dx progress bar.]]
[[Image:dgspgMode.gif|frame|The Effect Of Mode.]]
*'''progressBar:''' the Progress Bar that you want to operate.
*'''progressBar:''' the Progress Bar that you want to operate.
*'''mode:''' the mode to choose ( see effect in the the right side image ).
*'''mode:''' the mode to choose ( see effect in the the right side image ).

Revision as of 07:24, 11 February 2018

This function sets bar image showing mode.

Syntax

bool dgsProgressBarSetMode ( element progressBar, bool mode )

Required Arguments

The Effect Of Mode.
  • progressBar: the Progress Bar that you want to operate.
  • mode: the mode to choose ( see effect in the the right side image ).

Returns

Returns element of the progress bar if it was created succesfully, false otherwise.

Click to collapse [-]
Client

Example 1:

DGS = exports.dgs
progressbar = DGS:dgsCreateProgressBar(286, 307, 317, 43, false)    
number = 0 
setTimer(function ()
	number = number + 1 
	DGS:dgsProgressBarSetProgress(progressbar,number)
	if number == 100 then
		number = 0
	end 
end,3000,0)

See Also

Custom Cursor Functions

Multi Language Supports

Animation

3D Element

3D Interface

3D Line

3D Image

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Drag'N Drop

Grid List

Image

Memo

Menu

Label

Layout

Line

Progress Bar

Radio Button

Scale Pane

Scroll Bar

Scroll Pane

Selector

Style

Switch Button

Tab Panel

Window

Basic Shape Plugins

Circle

Quadrilateral

Rounded Rectangle

Other Plugins

Blur Box

Canvas

Chart

Color Picker

Effect 3D

Gradient

Mask

Media Browser

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Screen Source

SVG

Tooltips