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  
ButtonControlChar S I Define a control char for the pop button here.
ButtonDisabled B ISGN Used to enable/disable the pop button.
ButtonCycleChain B I If set to 1, the popup button will be in the window cycle chain.
IgnorePosition B I If set to 1, the requester ignores position and dimensions.
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.
PopSpec M I An Image Spec for the pop button
PopToFront B I asl.library V44
PositiveText S I  
RememberPosition B I If set to 1, the requester remembers position and dimensions.
SleepApplication B I If set 1, the application is put to sleep when the requester is active.
SleepWindow B I If set 1, the window is put to sleep when the requester is active.
String S I A String class object.
String S I A String class object.
Title S I  
Type S I One of:
  • File
  • Font

 

File requester attributes
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 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
NoEmptyFile B I If 1, an empty file name is not accepted in the file requester
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

 

Font requester attributes
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
SampleText B I May be set to a max 80 chars sample text to show. If empty, the default one is used. asl.library V45
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.