Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   AddImageField
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
Applications
Module development
GUI development
 
Base interface elements
Dual column pages
Feedback handling
Form actions
Forms
Lists
AddImageField
  Create an image edit field
 
Library module::system/webui/forms.whlib
 
Syntax PUBLIC MACRO AddImageField (STRING groupname,STRING fieldname,STRING label,BLOB img,INTEGER widthconstraint,INTEGER heightconstraint,STRING format)
 
Description An image preview field is a component in a field group
(use CreateFieldGroup to create one first)
 
Parameters
groupname Group to add this field to
fieldname Name of the field to add
label Label to display
img Current image blob
widthconstraint Width constraint, if any (0 = no constraint, positive number: forced width, negative number: maximum width)
heightconstraint Height constraint, if any (0 = no constraint, positive number: forced height, negative number: maximum height)
format Required output format (image/png, image/jpeg or image/gif), or empty to keep the input format. If width/height constraints are set, the output format will always be one of JPEG,PNG or GIF, even if no format is forced
 
 
In library 'forms'
AddBrowseServerDialog
AddCheckBoxField
AddChooseColourDialog
AddChooseFontDialog
AddChooseOrderingDialog
AddChooseUserDialog
AddDateField
AddDialogButton
AddFileField
AddFilePlaceholderField
AddGroupCheckBoxField
AddImageField
AddImagePreviewField
AddNamedReadOnlyField
AddPasswordField
AddPulldownField
AddRadioField
AddReadOnlyField
AddReadOnlyLinkField
AddTextAreaField
AddTextField
AddTimeField
AddUploadField
CreateCheckboxGroup
CreateFieldGroup
CreateRadioGroup
DisableField
EnableField
GetFormVariable
HideField
MakeChoice
 
Top To top of page