contents   index   previous   next



seSetAttribs

 

syntax:

   void

seSetAttribs(secontext se,

             seobject obj,

             semember mem,

             seAttributes attributes); 

where:

se the context containing the variable

 

obj the object half of an Object,Member pair

 

mem the member half of an Object,Member pair

 

attributes the attributes to assign to the variable

 

return:

None

 

description:

This call sets the variable's attributes. The attributes can be any of the following, |'d togethor:

 

SE_DEFAULT

 

The default, no special attributes

 

SE_READONLY

 

Any attempt to update the member is ignored

 

SE_DONTDELETE

 

Attempts to delete the member using the ECMAScript delete operator are ignored

 

SE_DONTENUM

 

The member is not included in for..in enumerations

 

 

 

The following flags apply only if the variable is an object:

 

SE_DYNA_UNDEF

 

Dynamic callbacks for the objects are only used if the object does not contain the member in the ScriptEase internal storage for the object.

 

SE_IMPLICIT_THIS

 

When the function is executed, the this variable is added to the front of the scope chain so all members of this are visible without putting this. in front of them. This is exactly as if the entire body of the function was wrapped in the statement with( this ) ... This behavior is similar to how C++ member functions work.

 

SE_IMPLICIT_PARENTS

 

Similar to SE_IMPLICIT_THIS, the parents of the this variable are put into the scope chain. This chain begins with this.__parent__ and continues as long as each such object itself has a __parent__ property. Note that there are two underscores on each side of parent above. This is useful for browsers in which event handlers can refer to variables in the enclosing element, document, and window. By chaining these objects togethor using __parent__ and adding SE_IMPLICIT_THIS and SE_IMPLICIT_PARENTS to the event handler function, the desired behavior is achieved.

 

see:

seGetAttribs()

 


seAssignEx