Skip to content

Repository files navigation

Information
versiondownloads
platformplatform
platform

pathPicker 4D 20R10

18/09/2025

What is it?

The pathPicker component is a widget for displaying and selecting the path of a target file or folder as you see it in various 4D application dialogs.

The main branch continues to evolve as 4D application evolves and now uses, among other things, Classes and Style sheets to allow an adaptation to the look & fill of your database.

The last version v18 compatible is available here

Initialization

$o:=New object
$o.placeHolder:="Select the backup setting file…"$o.message:="Select a setting file…"$o.fileTypes:=".4DSettings"$o.directory:=1$o.options:=Package open+Use sheet window
$picker:=pathPicker (File(Current backup settings file);$o)

Properties

Path properties

PropertiestypeDescription
.targetObjectThe target File or Folder
.typeIntegerThe type of the target*
.platformPathTextThe plateforme pathname
.pathTextThe POSIX pathname

*4D constants Is a document or Is a folder

Widget behavior properties

PropertiestypeDescription
.placeHolderTextThe place holder displayed if the target is empty
.messageTextTitle of the selection dialog box
.directoryText, IntegerDirectory access path (text) or memorized access path (Int)*
.fileTypesTextList of types of documents to filter, or "*" to not filter documents*
.optionsIntegerSelection option(s)*
.browseBooleanDisplay the "Browse" button
.showOnDiskBooleanDisplay the "Show on disk…" item in the linked menu
.copyPathBooleanDisplay the "Copy path" item in the linked menu
.openItemBooleanAllow the opening of a folder selected in the linked menu
.labelTextLabel diplayed into the widget**

*See the documentation for the commands Select a document and Select a folder.
**The label is displayed in red if the path name is invalid. You shouldn't have to change it

Default values

Properties
.fileTypesIs a document
.optionsPackage selection + Use sheet window
.browseTrue
.showOnDiskTrue
.copyPathTrue
.openItemTrue

Methods

Changing the target

MethodsComments
.setTarget(Object)Waiting for a File or Folder
.setPlatformPath(Text)
.setPath(Text)

Widget features

MethodsComments
.setType(Int)Use the 4D constants Is a document or Is a folder
.setMessage(Text)
.setPlaceholder(Text)

How to install

  1. To use the widget as is, copy the pathPicker.4dbase into the Components folder of your database.
  2. If you want to integrate the component's elements into your code, you must copy the contents of the folders Classes, Forms, Methods & Resources to the corresponding folders of your database.

About

A widget to facilitate the display and selection of a path name

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages