ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Repositionable Note control
  • Overview
  • Displaying an information in a Repositionable Note control
  • Retrieving the value displayed in a Repositionable Note control
  • Forcing the export or import of notes
  • Properties specific to Repositionable Note controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Handling a Repositionable Note control through programming
Overview
A Repositionable Note control can be handled through programming. To do so, use the variable of the Repositionable Note control in the code.
Specific functions can also be used to handle repositionable notes. For more details, see Repositionable Note functions.
This help page explains how to handle a Repositionable Note control through programming.
Displaying an information in a Repositionable Note control
To display an information in a Repositionable Note control, a simple assignment is sufficient.
For example:
  • direct assignment:
    NOTE_CustomerNote = "Important customer"
  • assignment using a variable:
    NOTE_CustomerNote = Note_Customer
Remark: If the control is bound to a data file item, the value from the data source is automatically updated in the control using FileToScreen.
You also have the ability to use the following notation: "NOTE_CustomerNote = CUSTOMER.NOTE". For more details, see Binding a Repositionable Note control to an item.
Caution: The Repositionable Note control includes no scrollbar. The text will be truncated if it exceeds the size of the repositionable note. The control size can be modified (with the Height and Width properties).
Retrieving the value displayed in a Repositionable Note control
To retrieve the content of a Repositionable Note control:
  • perform a simple assignment.
    For example:
    CurrentNoteContent = NOTE_CustomerNote
  • use the Value property.
Remark: If the control is bound to a data file item, the value entered in the control is automatically updated in the data source using ScreenToFile.
You also have the ability to use the following notation: "CUSTOMER.Note = NOTE_CustomerNote". For more details, see Binding a Repositionable Note control to an item.
Forcing the export or import of notes
The user can import or export the notes (found in the window or in the application) in a "wdnotes" extension file via the context menu of the Note control or window.
You have the ability to force the export or import of the notes through programming with AAFExecute:
  • the aafExportNote constant is used to force the export of the notes found in the specified window. The user must select the file containing the notes.
  • the aafImportNote constant is used to force the import of the notes. The user must select the file containing the notes.
Caution: the export can be performed only if the content of the note was modified.
Tip: To import and export all the repositionable notes found in a window, use NoteLoadAll and NoteSaveAll.
Properties specific to Repositionable Note controls
The following properties are used to manage the characteristics of a Repositionable Note control by programming.
AutomaticallyMinimizedThe AutomaticallyMinimized property is used to:
  • Find out the timeout before the Repositionable Note control is automatically minimized.
  • Define the timeout before the Repositionable Note control is automatically minimized.
MinimizedThe Minimized property is used to:
  • find out whether a repositionable note is minimized,
  • minimize or restore a repositionable note.
For a complete list of WLanguage properties that can be used with a Repositionable Note control, see Properties associated with Repositionable Note controls.
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help