PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WEBDEV 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
WLanguage procedure called by SelectColor
Browser WLanguage procedure ("callback") executed by SelectColor when the color selection popup is closed.
Example
// == Browser button click code
// Color selection in Browser code
SelectColor(RGB(42,56,99), SelectColor_Callback)
 
INTERNAL PROCEDURE SelectColor_Callback(coColor is Color)
CELL_NoName1.BackgroundColor = coColor
END
// Browser button to save the color to be used by the server.
// Browser button click code
SelectColor(RGB(42,56,99), SelectColor_Callback)
 
INTERNAL PROCEDURE SelectColor_Callback(coColor is Color)
// Adds the color to the database
// and synchronizes the browser variable with the details
AJAXExecute(ajaxSynchronizeServerVariables + ajaxUpdateControls, AddSrvColor, coColor)
END
 
// Ajax procedure
PROCEDURE AddSrvColor(coColorToSave)
CELL_NoName2.BackgroundColor = coColorToSave
Syntax
SelectColor_Callback(<Color>)
<Color>: Color variable
Color variable that corresponds to the color selected in the color selection popup.
Component: WDJS.DLL
Minimum version required
  • Version 26
Comments
Click [Add] to post a comment