Object.Lock
Posted
#1
(In Topic #121)
Guru

Posted
Regular

Posted
Regular

Posted
Regular

cogier said
Does anybody have any example code using Object.Lock and Object.Unlock?
Just a little and simple example:
Code
Public Sub ToggleButton1_Click()
If ToggleButton1.Value Then
Object.Lock(Button1)
ToggleButton1.Text = "Now Button1's locked !" ' Button1 click event will not be raised !
Else
Object.Unlock(Button1)
ToggleButton1.Text = "Now Button1's unlocked !" ' Button1 click event will be raised !
Endif
End
Public Sub Button1_Click()
Print "Sum liber !"
End
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Guru

My error was to think that the 'Object' part of 'Object.Lock' was the object so I tried 'Button1.Lock' and similar.
Put it down to the age….
1 guest and 0 members have just viewed this.


