News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

"On drop" events

Started by kiler40, August 14, 2013, 05:09:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kiler40

Hello everybody!

I`m trying to accomplish something.
I want to assign to a shape "on drop" event. But for the moment nothing happens
I want to drop a shape from a stencil, and the shape automatically to take the page width, and to go on bottom of the page (like footer, but a complex one)

So please - can anyone help ? :)

Yacine

You are probably making a frame.
In the EventDrop cell you'll write a serie of "setf(getref(" statements, separated by "+".
The setf(getrefs will modify the width, height, pinx and piny cells.
You may also want to protect those cells by guard statements.
HTH, Y.
Yacine

kiler40

Yes, this i have come to solution... but i`m using SETF()&SETF()&....
But how to find the bottom of the page :)

Thanks for the quick response

Surrogate

Quote
EventDrop=SETF("width",ThePage!PageWidth)+SETF("piny",ThePage!PageHeight)+SETF("pinx",0 mm)

kiler40

Thank you. that worked. had to add the page margins por position, and to remove from width 2* pagemargin (because i have to printi it in the end :) )
But thanks.

I have another question, if i have one page in portrait and one page in landscape, if i do the same opraration to send the shape in the top of the page, for portrait works perfect, for landscape sends it in the position of portrait...
can this be fixed ?

Surrogate

try this way please
Quote
=SETF("width","=guard(ThePage!PageWidth-ThePage!PageLeftMargin-ThePage!PageRightMargin)")+SETF("piny","=guard(ThePage!PageHeight-thepage!PageLeftMargin)")+SETF("pinx",ThePage!PageWidth*0.5)+SETF("LocPinX",Width/2)

kiler40


Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 255 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1112KB.
Tokens: post-login.
Cache hits: 13: 0.00193s for 26,725 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]