eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FilenameEnterBox':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: FilenameEnterBox


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--TopView
                  |
                  +--StandardSystemView
                     |
                     +--ModalBox
                        |
                        +--DialogBox
                           |
                           +--EnterBox
                              |
                              +--FilenameEnterBox

Package:
stx:libwidg2
Category:
Views-DialogBoxes
Version:
rev: 1.16 date: 2021/01/20 14:39:46
user: cg
file: FilenameEnterBox.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

Description:


like a normal enterBox, but does filename-completion when TAB is pressed.

copyright

COPYRIGHT (c) 1994 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Instance protocol:

accessing
o  directoriesOnly
set to expand names for directories only

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  directoriesOnly: aBoolean
set/clear for directories only

o  directory: aFilename
set the directory

o  filesOnly
set to expand names for files only

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  filesOnly: aBoolean
set/clear for files only

initialization
o  createEnterField
redefined, since we need an editfield for filenames here
(if the class has not been compiled in, use a dumb default field)


Examples:


examples (for ST-80 compatibility, please use Dialog messages): simple (most common):
    |someString|

    someString := FilenameEnterBox request:'enter a filename:'.
    Transcript showCR:someString


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:46:09 GMT