Index Parent

Popasl class


The Popasl class is used to create an object made of a string object and a button. When the button is pressed, an asl.library requester is shown. The string contents is set to the selection made in the requester.

Note that a Popasl object has no attribute to specify a key to open its requester. It may be specified via Window class InputEvent attribute, e.g. call Notify("win","InputEvent","ralt f","pop","Open")

 

ATTRIBUTES
Name Type Class Note
Active B GN  
NegativeText S I  
NotifyOnlyChanges S I Normally, the String object would notify NewContenyts anytime its Contents changes. This may be changed via AlwaysNotifyNC, but when a String object is used as String in a Popasl, it notifies its NewContents anytime it changes by default (AlwaysNotifyNC=1). Setting this attribute to 0 sets AlwaysNotifyNC of the String object to 1. Setting this attribute to 1 sets AlwaysNotifyNC of the String object to 0.
PopToFront B I asl.library V44
PositiveText S I  
String S I A String class object.
Title S I  
Type S I One of:
  • File
  • Font

 

ATTRIBUTES for a file requester
Name Type Class Note
AcceptPattern S I asl.library V38
DoMultiSelect B I asl.library V38
DoPatterns B I asl.library V38
DoSaveMode B I asl.library V38
DrawersOnly B I asl.library V38
FilterMacro S I At Init time you can define a filter-macro in this attribute: anytime the file requester should show an entry, that macro is called with 3 arguments:
  1. the name of the entry
  2. the name of the drawer
  3. a pointer to a FileInfoBlock structure relative to the entry

If the the macro fails or returns 1, the entry is showed, otherwise the entry is not showed. The macro must be an ARexx-in-line-string-macro designed to be fast.

asl.library V38

FilterDrawers B I asl.library V38
Pattern S I asl.library V36
RejectIcons B I asl.library V38
RejectPattern S I asl.library V38
ShowVolumes B I asl.library V44
SortBy M ISG A number or one of:
  • Date
  • Name
  • Size

asl.library V44

SortDrawers M ISG A number or one of:
  • First
  • Last
  • Mix

asl.library V44

SortOrder M ISG A number or one of:
  • Ascend
  • Descend

asl.library V44

 

ATTRIBUTES for a font requester
Name Type Class Note
BackPen N I asl.library V36
DoBackPen B I asl.library V38
DoDrawMode B I asl.library V38
DrawMode S I A number or one of:
  • JAM1
  • JAM2
  • Complement

asl.library V38

DoFrontPen B I asl.library V38
DoStyle B I asl.library V38
FixedWidthOnly B I asl.library V38
Flags N I Initial requester flags. asl.library V36
FrontPen N I asl.library V36
MaxBackPen N I asl.library V40
MaxFrontPen N I asl.library V40
MaxHeight N I asl.library V40
MinHeight N I asl.library V40
Size N I asl.library V36
Style S I A number or one of:
  • Normal
  • Underline
  • Bold
  • Italic

asl.library V36

 

METHODS
Name Parameters Note
None defined

 

Note that Popstring Open method works with a Popasl object, but Close doesn't.