Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic create Box/Table by protect user to copy/delete. (Read 2475 times)
suwit
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Nov 3rd, 2005
create Box/Table by protect user to copy/delete.
Nov 5th, 2005 at 7:01am
Print Post  
Hello,
i want to create Box/Table by don't want user to copy/delete but only can move it around . Is it posible to do this?
i have used "object.locked=true" but i cannot move it.
Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: create Box/Table by protect user to copy/delet
Reply #1 - Nov 5th, 2005 at 7:53am
Print Post  
Hi,

To prevent users from deleting a box, handle the BoxDeleting event and set e.Confirm = false. That event is raised when the Del key is pressed, but not when deleting items programmatically.

To prevent copying or cutting items to the clipboard, remove the box from the selection before calling the CopyToClipboard or CutToClipboard method.

To prevent resizing the boxes, set

box.MnpHandlesMask = 256

so only the movement handle remains enabled. In version 4 syntax that will look like

box.EnabledHandles = Handles.Move

HTH
Stoyan
  
Back to top
 
IP Logged
 
suwit
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Nov 3rd, 2005
Re: create Box/Table by protect user to copy/delet
Reply #2 - Nov 5th, 2005 at 2:04pm
Print Post  
Thanks, it's work.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint