Template:CWSFUNCS: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Disable Content Tabs)
No edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
Resource Wiki with ''content'' located here: [[Resource:CustomWidgets]]
== '''Custom Widgets''' ==
=== '''Custom Widgets''' ===
This methods working for all elements except ''CustomDialogs'' and ''CustomTooltips''
This methods working for all elements except ''CustomDialogs'' and ''CustomTooltips''


=== Set Functions ===
==== Set Functions ====
*[[CustomWidget:setPosition]]
*[[CustomWidget:setPosition]]
*[[CustomWidget:setSize]]
*[[CustomWidget:setSize]]
Line 9: Line 9:
*[[CustomWidget:setEnabled]]
*[[CustomWidget:setEnabled]]
*[[CustomWidget:setColorScheme]]
*[[CustomWidget:setColorScheme]]
*[[CustomWidget:setFont]]
*[[CustomWidget:setFontSize]]
*[[CustomWidget:setSystemFont]]


=== Get Functions ===
==== Get Functions ====
*[[CustomWidget:getPosition]]
*[[CustomWidget:getPosition]]
*[[CustomWidget:getSize]]
*[[CustomWidget:getSize]]
*[[CustomWidget:getRealSize]]
*[[CustomWidget:getVisible]]
*[[CustomWidget:getVisible]]
*[[CustomWidget:getEnabled]]
*[[CustomWidget:getEnabled]]
*[[CustomWidget:getColorScheme]]
*[[CustomWidget:getColorScheme]]
*[[CustomWidget:getFont]]
*[[CustomWidget:getFontSize]]
*[[getCWType]]


=== Event Functions ===
==== Event Functions ====
*[[CustomWidget:bringToFront]]
*[[CustomWidget:bringToFront]]
*[[CustomWidget:moveToBack]]
*[[CustomWidget:moveToBack]]
*[[CustomWidget:addEvent]]
*[[CustomWidget:addEvent]]
*[[CustomWidget:removeEvent]]
*[[CustomWidget:destroy]]
*[[proceedColor]]


== '''Custom Windows''' ==


=== Create Function ===
=== '''Custom Windows''' ===
 
==== Create Function ====
*[[CustomWindow.create]]
*[[CustomWindow.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomWindow:setTitle]]
*[[CustomWindow:setTitle]]
*[[CustomWindow:setText]]
*[[CustomWindow:setText]]
*[[CustomWindow:setMovable]]
*[[CustomWindow:setMovable]]
*[[CustomWindow:setSizable]]
*[[CustomWindow:setCloseEnabled]]
*[[CustomWindow:setCloseEnabled]]
*[[CustomWindow:setSideBarLength]]
*[[CustomWindow:setSideBarPosition]]
*[[CustomWindow:setMinimalWidth]]
*[[CustomWindow:setMinimalHeight]]
*[[CustomWindow:setMinimalSize]]
*[[CustomWindow:setMaximalWidth]]
*[[CustomWindow:setMaximalHeight]]
*[[CustomWindow:setMaximalSize]]


=== Get Functions ===
==== Get Functions ====
*[[CustomWindow:getTitle]]
*[[CustomWindow:getTitle]]
*[[CustomWindow:getText]]
*[[CustomWindow:getText]]
*[[CustomWindow:getMovable]]
*[[CustomWindow:getMovable]]
*[[CustomWindow:getSizable]]
*[[CustomWindow:getCloseEnabled]]
*[[CustomWindow:getCloseEnabled]]
*[[CustomWindow:getFrame]]
*[[CustomWindow:getSideBarLength]]
*[[CustomWindow:getHeader]]
*[[CustomWindow:getSideBarPosition]]
*[[CustomWindow:getDialog]]
*[[CustomWindow:getMinimalWidth]]
*[[CustomWindow:getMinimalHeight]]
*[[CustomWindow:getMinimalSize]]
*[[CustomWindow:getMaximalWidth]]
*[[CustomWindow:getMaximalHeight]]
*[[CustomWindow:getMaximalSize]]


=== Event Functions ===
==== Event Functions ====
*[[CustomWindow:open]]
*[[CustomWindow:open]]
*[[CustomWindow:close]]
*[[CustomWindow:close]]
*[[CustomWindow:addElement]]
*[[CustomWindow:addElement]]
*[[CustomWindow:addElement]]
*[[CustomWindow:addElements]]
*[[CustomWindow:showDialog]]
*[[CustomWindow:showDialog]]
*[[CustomWindow:showBar]]
*[[CustomWindow:showBar]]
*[[CustomWindow:getMainElement]]
*[[CustomWindow:getHeader]]
*[[CustomWindow:getDialog]]




== '''Custom Buttons''' ==
=== '''Custom Buttons''' ===


=== Create Function ===
==== Create Function ====
*[[CustomButton.create]]
*[[CustomButton.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomButton:setText]]
*[[CustomButton:setText]]
*[[CustomButton:setImage]]
*[[CustomButton:setImage]]


=== Get Functions ===
==== Get Functions ====
*[[CustomButton:getText]]
*[[CustomButton:getText]]
*[[CustomButton:getImage]]


==== Event Functions ====
*[[CustomButton:getMainElement]]


== '''Custom Progress Bars''' ==


=== Create Function ===
=== '''Custom Progress Bars''' ===
 
==== Create Function ====
*[[CustomProgressBar.create]]
*[[CustomProgressBar.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomProgressBar:setProgress]]
*[[CustomProgressBar:setProgress]]


=== Get Functions ===
==== Get Functions ====
*[[CustomProgressBar:getProgress]]
*[[CustomProgressBar:getProgress]]


==== Event Functions ====
*[[CustomProgressBar:getMainElement]]


== '''Custom Scroll Bars''' ==


=== Create Function ===
=== '''Custom Scroll Bars''' ===
 
==== Create Function ====
*[[CustomScrollBar.create]]
*[[CustomScrollBar.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomScrollBar:setScrollPosition]]
*[[CustomScrollBar:setScrollPosition]]
*[[CustomScrollBar:setScrollLength]]
*[[CustomScrollBar:setScrollLength]]
*[[CustomScrollBar:setScrollSpeed]]
*[[CustomScrollBar:setScrollSpeed]]


=== Get Functions ===
==== Get Functions ====
*[[CustomScrollBar:getScrollPosition]]
*[[CustomScrollBar:getScrollPosition]]
*[[CustomScrollBar:getScrollLength]]
*[[CustomScrollBar:getScrollLength]]
Line 92: Line 128:




== '''Custom Edit Boxes''' ==
=== '''Custom Edit Boxes''' ===
All functions, what has mark ''CustomEditBox'' available for ''CustomEdit'', ''CustomMemo'' and ''CustomNumberScroller''.
All functions, what has mark ''CustomEditBox'' available for ''CustomEdit'', ''CustomMemo'' and ''CustomSpinner''.


=== Create Functions ===
==== Create Functions ====
*[[CustomEdit.create]]
*[[CustomEdit.create]]
*[[CustomMemo.create]]
*[[CustomMemo.create]]
*[[CustomNumberScroller.create]]
*[[CustomSpinner.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomEditBox:setReadOnly]]
*[[CustomEditBox:setReadOnly]]
*[[CustomEditBox:setText]]
*[[CustomEditBox:setText]]
*[[CustomEditBox:setCaretIndex]]
*[[CustomEditBox:setCaretIndex]]
*[[CustomEditBox:setSidesColor]]


*[[CustomEdit:setMasked]]
*[[CustomEdit:setMasked]]
*[[CustomEdit:setMaxLength]]
*[[CustomEdit:setMaxLength]]


*[[CustomNumberScroller:setMinimal]]
*[[CustomSpinner:setMinimal]]
*[[CustomNumberScroller:setMaximal]]
*[[CustomSpinner:setMaximal]]
*[[CustomNumberScroller:setStepSize]]
*[[CustomSpinner:setStepSize]]


=== Get Functions ===
==== Get Functions ====
*[[CustomEditBox:getReadOnly]]
*[[CustomEditBox:getReadOnly]]
*[[CustomEditBox:getText]]
*[[CustomEditBox:getText]]
*[[CustomEditBox:getCaretIndex]]
*[[CustomEditBox:getCaretIndex]]
*[[CustomEditBox:isOnSide]]
*[[CustomEditBox:getSidesColor]]


*[[CustomEdit:getMasked]]
*[[CustomEdit:getMasked]]
*[[CustomEdit:getMaxLength]]
*[[CustomEdit:getMaxLength]]


*[[CustomNumberScroller:getMinimal]]
*[[CustomSpinner:getMinimal]]
*[[CustomNumberScroller:getMaximal]]
*[[CustomSpinner:getMaximal]]
*[[CustomNumberScroller:getStepSize]]
*[[CustomSpinner:getStepSize]]


=== Event Functions ===
==== Event Functions ====
*[[CustomEditBox:putOnSide]]
*[[CustomEditBox:putOnSide]]




== '''Custom Check Boxes''' ==
=== '''Custom Check Boxes''' ===


=== Create Function ===
==== Create Function ====
*[[CustomCheckBox.create]]
*[[CustomCheckBox.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomCheckBox:setText]]
*[[CustomCheckBox:setText]]
*[[CustomCheckBox:setChecked]]
*[[CustomCheckBox:setChecked]]


=== Get Functions ===
==== Get Functions ====
*[[CustomCheckBox:getText]]
*[[CustomCheckBox:getText]]
*[[CustomCheckBox:getChecked]]
*[[CustomCheckBox:getChecked]]


==== Event Functions ====
*[[CustomCheckBox:getMainElement]]


== '''Custom Combo Boxes''' ==


=== Create Function ===
=== '''Custom Combo Boxes''' ===
 
==== Create Function ====
*[[CustomComboBox.create]]
*[[CustomComboBox.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomComboBox:setSelectedItem]]
*[[CustomComboBox:setSelectedItem]]
*[[CustomComboBox:setItemText]]
*[[CustomComboBox:setMaxHeight]]
*[[CustomComboBox:setMaxHeight]]


=== Get Functions ===
==== Get Functions ====
*[[CustomComboBox:getSelectedItem]]
*[[CustomComboBox:getSelectedItem]]
*[[CustomComboBox:getItemText]]
*[[CustomComboBox:getMaxHeight]]
*[[CustomComboBox:getMaxHeight]]
*[[CustomComboBox:getItemsCount]]
*[[CustomComboBox:getItems]]


=== Event Functions ===
==== Event Functions ====
*[[CustomComboBox:addItem]]
*[[CustomComboBox:addItem]]
*[[CustomComboBox:removeItem]]
*[[CustomComboBox:removeItem]]
*[[CustomComboBox:clear]]
*[[CustomComboBox:getMainElement]]




== '''Custom Tabbed Panels''' ==
=== '''Custom Tabbed Panels''' ===


=== Create Function ===
==== Create Function ====
*[[CustomTabPanel.create]]
*[[CustomTabPanel.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomTabPanel:setTabVisible]]
*[[CustomTabPanel:setTabVisible]]
*[[CustomTabPanel:setTabEnabled]]
*[[CustomTabPanel:setTabEnabled]]
Line 172: Line 220:
*[[CustomTabPanel:setTabsMinLength]]
*[[CustomTabPanel:setTabsMinLength]]


=== Get Functions ===
==== Get Functions ====
*[[CustomTabPanel:getTabVisible]]
*[[CustomTabPanel:getTabVisible]]
*[[CustomTabPanel:getTabEnabled]]
*[[CustomTabPanel:getTabEnabled]]
Line 181: Line 229:
*[[CustomTabPanel:getTabHeader]]
*[[CustomTabPanel:getTabHeader]]


=== Event Functions ===
==== Event Functions ====
*[[CustomTabPanel:addTab]]
*[[CustomTabPanel:addTab]]
*[[CustomTabPanel:removeTab]]
*[[CustomTabPanel:clearTabs]]
*[[CustomTabPanel:getMainElement]]




== '''Custom Labels''' ==
=== '''Custom Labels''' ===


=== Create Function ===
==== Create Function ====
*[[CustomLabel.create]]
*[[CustomLabel.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomLabel:setText]]
*[[CustomLabel:setText]]
*[[CustomLabel:setColor]]
*[[CustomLabel:setColor]]
Line 198: Line 249:
*[[CustomLabel:setHorizontalAlign]]
*[[CustomLabel:setHorizontalAlign]]
*[[CustomLabel:setAlign]]
*[[CustomLabel:setAlign]]
*[[CustomLabel:setFont]]


=== Get Functions ===
==== Get Functions ====
*[[CustomLabel:getText]]
*[[CustomLabel:getText]]
*[[CustomLabel:getColor]]
*[[CustomLabel:getColor]]
*[[CustomLabel:getVerticalAlign]]
*[[CustomLabel:getHorizontalAlign]]
*[[CustomLabel:isSchematicalColor]]
*[[CustomLabel:isHoverable]]


==== Event Functions ====
*[[CustomLabel:getMainElement]]
*[[CustomLabel:addElement]]
*[[CustomLabel:removeElement]]


== '''Custom Dialogs''' ==


=== Create Function ===
=== '''Custom Dialogs''' ===
 
==== Create Function ====
*[[CustomDialog.create]]
*[[CustomDialog.create]]


=== Event Functions ===
==== Event Functions ====
*[[CustomDialog:open]]
*[[CustomDialog:open]]
*[[CustomDialog:close]]
*[[CustomDialog:close]]




== '''Custom Tool Tips''' ==
=== '''Custom Tool Tips''' ===


=== Create Function ===
==== Create Function ====
*[[CustomTooltip.create]]
*[[CustomTooltip.create]]


==== Set Function ====
*[[CustomTooltip:setShowTime]]
*[[CustomTooltip:setText]]


== '''Custom Loadings''' ==
==== Get Function ====
*[[CustomTooltip:getShowTime]]
*[[CustomTooltip:getText]]


=== Create Function ===
 
=== '''Custom Loadings''' ===
 
==== Create Function ====
*[[CustomLoading.create]]
*[[CustomLoading.create]]


=== Set Functions ===
==== Set Functions ====
*[[CustomLoading:setProgress]]
*[[CustomLoading:setProgress]]
*[[CustomLoading:setAnimated]]
*[[CustomLoading:setAnimated]]


=== Get Functions ===
==== Get Functions ====
*[[CustomLoading:getProgress]]
*[[CustomLoading:getProgress]]
*[[CustomLoading:getAnimated]]
*[[CustomLoading:getAnimated]]




== '''Custom Events''' ==
=== '''Custom Scroll Panes''' ===
 
==== Create Function ====
*[[CustomScrollPane.create]]
 
==== Set Functions ====
*[[CustomScrollPane:setScrollSpeed]]
*[[CustomScrollPane:setVerticalScrollPosition]]
*[[CustomScrollPane:setHorizontalScrollPosition]]
*[[CustomScrollPane:setVerticalScrollInversed]]
*[[CustomScrollPane:setHorizontalScrollInversed]]
*[[CustomScrollPane:setHorizontalScrolling]]
*[[CustomScrollPane:setScrollingWithCursor]]
*[[CustomScrollPane:setScrollingWithWheel]]
*[[CustomScrollPane:addVerticalPixelScrollPosition]]
*[[CustomScrollPane:addHorizontalPixelScrollPosition]]
 
==== Get Functions ====
*[[CustomScrollPane:getScrollSpeed]]
*[[CustomScrollPane:getVerticalScrollPosition]]
*[[CustomScrollPane:getHorizontalScrollPosition]]
*[[CustomScrollPane:isVerticalScrollInversed]]
*[[CustomScrollPane:isHorizontalScrollInversed]]
*[[CustomScrollPane:isHorizontalScrolling]]
*[[CustomScrollPane:getScrollingWithCursor]]
*[[CustomScrollPane:getScrollingWithWheel]]
 
==== Event Functions ====
*[[CustomScrollPane:getMainElement]]
*[[CustomScrollPane:addElement]]
*[[CustomScrollPane:removeElement]]
*[[CustomScrollPane:update]]
 
 
=== '''Custom Table Views''' ===
 
==== Create Function ====
*[[CustomTableView.create]]
 
==== Set Functions ====
*[[CustomTableView:setSelectedLine]]
*[[CustomTableView:setIndentation]]
*[[CustomTableView:setTitleBarVisible]]
*[[CustomTableView:setLineHeight]]
*[[CustomTableView:setColumnWidth]]
*[[CustomTableView:setColumnTitle]]
*[[CustomTableView:setCellText]]
*[[CustomTableView:setShadowsEnabled]]
 
==== Get Functions ====
*[[CustomTableView:getSelectedLine]]
*[[CustomTableView:getIndentation]]
*[[CustomTableView:getTitleBarVisible]]
*[[CustomTableView:getLineHeight]]
*[[CustomTableView:getColumnWidth]]
*[[CustomTableView:getColumnTitle]]
*[[CustomTableView:getCellText]]
*[[CustomTableView:getCell]]
*[[CustomTableView:getLinesCount]]
*[[CustomTableView:getColumnsCount]]
*[[CustomTableView:getShadowsEnabled]]
 
==== Event Functions ====
*[[CustomTableView:addLine]]
*[[CustomTableView:removeLine]]
*[[CustomTableView:clearLines]]
*[[CustomTableView:addColumn]]
*[[CustomTableView:removeColumn]]
*[[CustomTableView:update]]
 
 
=== '''Custom Static Images''' ===
 
==== Create Function ====
*[[CustomStaticImage.create]]
 
==== Set Function ====
*[[CustomStaticImage:setColor]]
*[[CustomStaticImage:setImage]]
*[[CustomStaticImage:setSchematicalColor]]
 
==== Get Function ====
*[[CustomStaticImage:getColor]]
*[[CustomStaticImage:getImage]]
*[[CustomStaticImage:getNativeSize]]
*[[CustomStaticImage:isSchematicalColor]]
 
==== Event Functions ====
*[[CustomStaticImage:getMainElement]]
*[[CustomStaticImage:addElement]]
 
 
=== '''Custom Text Boxes''' ===
 
==== Create Function ====
*[[CustomTextBox.create]]
*[[CustomMemoBox.create]]
 
==== Set Function ====
*[[CustomTextBox:setText]]
*[[CustomTextBox:setColor]]
*[[CustomTextBox:setCaretIndex]]
*[[CustomTextBox:setReadOnly]]
*[[CustomTextBox:setMasked]]
*[[CustomTextBox:setBordersEnabled]]
*[[CustomTextBox:setBackgroundEnabled]]
 
==== Get Function ====
*[[CustomTextBox:getText]]
*[[CustomTextBox:getColor]]
*[[CustomTextBox:getCaretIndex]]
*[[CustomTextBox:getCaretSelectionStart]]
*[[CustomTextBox:getCaretSelectionEnd]]
*[[CustomTextBox:getCaretSelectionLength]]
*[[CustomTextBox:isReadOnly]]
*[[CustomTextBox:isMasked]]
*[[CustomTextBox:isBordersEnabled]]
*[[CustomTextBox:isBackgroundEnabled]]
 
 
=== '''Custom Events''' ===
*[[onCustomScrollPaneScrolled]]
*[[onCustomScrollBarScrolled]]
*[[onCustomScrollBarScrolled]]
*[[onCustomDialogClick]]
*[[onCustomDialogClick]]
*[[onCustomWindowClose]]
*[[onCustomWindowClose]]
*[[onCustomCheckBoxChecked]]
*[[onCustomComboBoxSelectItem]]
*[[onCustomComboBoxSelectItem]]
*[[onCustomTabPanelChangeTab]]
=== '''Other about Custom Widgets''' ===
*[[CustomWidgets.Variables]]
*[[CustomWidgets.Examples]]
*[[CustomWidgets.DemoWidgets]]

Latest revision as of 15:00, 4 April 2019

Resource Wiki with content located here: Resource:CustomWidgets

Custom Widgets

This methods working for all elements except CustomDialogs and CustomTooltips

Set Functions

Get Functions

Event Functions


Custom Windows

Create Function

Set Functions

Get Functions

Event Functions


Custom Buttons

Create Function

Set Functions

Get Functions

Event Functions


Custom Progress Bars

Create Function

Set Functions

Get Functions

Event Functions


Custom Scroll Bars

Create Function

Set Functions

Get Functions


Custom Edit Boxes

All functions, what has mark CustomEditBox available for CustomEdit, CustomMemo and CustomSpinner.

Create Functions

Set Functions

Get Functions

Event Functions


Custom Check Boxes

Create Function

Set Functions

Get Functions

Event Functions


Custom Combo Boxes

Create Function

Set Functions

Get Functions

Event Functions


Custom Tabbed Panels

Create Function

Set Functions

Get Functions

Event Functions


Custom Labels

Create Function

Set Functions

Get Functions

Event Functions


Custom Dialogs

Create Function

Event Functions


Custom Tool Tips

Create Function

Set Function

Get Function


Custom Loadings

Create Function

Set Functions

Get Functions


Custom Scroll Panes

Create Function

Set Functions

Get Functions

Event Functions


Custom Table Views

Create Function

Set Functions

Get Functions

Event Functions


Custom Static Images

Create Function

Set Function

Get Function

Event Functions


Custom Text Boxes

Create Function

Set Function

Get Function


Custom Events


Other about Custom Widgets