PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

New WINDEV 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
WorkingDirectory (Property)
In french: RépertoireDeTravail
The WorkingDirectory property is used to identify or modify the directory used by the HTML Editor control to store the images and CSS sheets of an HTML page.
Remark: By default, a working directory is automatically created. This directory is deleted when the window or application is closed.
Example
// Copy an image to the directory and insert it into the document
fCopyFile("logo.png", CompleteDir(HTMEDT_NoName1.WorkingDirectory) + "logo.png")
HTMEDT_NoName1.Insert("<img src='logo.png'>")
Syntax

Identifying the directory used by the HTML Editor control to store files (images, CSS sheets, etc.) Hide the details

<Result> = <HTML Editor control>.WorkingDirectory
<Result>: Character string
Directory used by the HTML Editor control to store files (images, CSS sheets, etc.).
<HTML Editor control>: Control name
Name of the HTML Editor control used.

Modifying the directory used by the HTML Editor control to store files (images, CSS sheets, etc.) Hide the details

<HTML Editor control>.WorkingDirectory = <New directory>
<HTML Editor control>: Control name
Name of the HTML Editor control used.
<New directory>: Character string
Directory used by the HTML Editor control to store files (images, CSS sheets, etc.).
Remarks
  • Images or CSS style sheets with a file URL (i.e. starting with "file:///") cannot be displayed by default during editing..
  • To display images or CSS style sheets with a file URL (i.e. starting with "file:///"), these files must:
    • be located in the directory specified with the WorkingDirectory property .
    • be relative. For example: <img src=’myLogo.png’ ...
  • This directory is initialized with a temporary directory. This directory is deleted when the window or application is closed. You can modify it with the WorkingDirectory property. In this case, the specified directory is not deleted.
  • The option in the ribbon that allows you to insert images into the page automatically copies the images to this directory.
Minimum version required
  • Version 26
Comments
Click [Add] to post a comment