How to make a element snapable with mdl

Status
Not open for further replies.

Ray Joslyn

Usenet Archive
Joined
Jan 19, 2000
Messages
73
Reaction score
0
I need to change an element thats unsnapable to snapable, can I do this directly through the display header of the element? Perhaps by setting dhdr.props.s=?
Ray
 
Ray,

Yes you can.

dhdr.props.b.s = 0; // Snappable
dhdr.props.b.s = 1; // Nonsnappable

Dan

On Thu, 06 Dec 2001 14:09:04 GMT, (Ray Joslyn) wrote:

I need to change an element thats unsnapable to snapable, can I do this directly through the display header of the element? Perhaps by setting dhdr.props.s=?
Ray
 
Hello Ray

You can set the bit
el.hdr.dhdr.props.b.s to 1 (TRUE) than the element is snapable ot to 0 (FALSE) the element is not snapable

That is all you have to do to set an element snable or not

By complex elements you must set all compounds to snapable or not snapable with an mdlElmdscr_operation function

Greetings Olaf Giezenaar

(Ray Joslyn) wrote:
I need to change an element thats unsnapable to snapable, can I do this directly through the display header of the element? Perhaps by setting dhdr.props.s=?
Ray
 
I also need to change the element from view-independent to view dependent. What is the value I need for this? Thanks Ray

On 6 Dec 2001 23:48:10 -0800, (olaf) wrote:

Hello Ray

You can set the bit
el.hdr.dhdr.props.b.s to 1 (TRUE) than the element is snapable ot to 0 (FALSE) the element is not snapable

That is all you have to do to set an element snable or not

By complex elements you must set all compounds to snapable or not snapable with an mdlElmdscr_operation function

Greetings Olaf Giezenaar
...
 
Hi, Ray

To change element's view dependent attribute, you can use mdl function 'mdlElement_setProperties', not need to direct change element's structure.

Foo.
 
Status
Not open for further replies.

Latest threads

Back
Top