Quote:
Originally Posted by Rioven
How to catch the scroll bar properties on mousedown event on table?
|
This code will disable the Scrollbars from user control, however the table will still re-arrange itself if clicked on a partially hidden cell. oh and ov are Door library Objects.
Code:
oh.New1(false)
ov.New1(false)
obj.FromControl(TableName)
o.Value = obj.GetProperty("Controls")
oh.Value = o.GetProperty2("Item",0) ' 0 = hscrollbar, 1 = vscrollbar
ov.Value = o.GetProperty2("Item",1) ' 0 = hscrollbar, 1 = vscrollbar
oh.SetProperty("Enabled", false)
ov.SetProperty("Enabled", false)
EDIT:- Oh - I now see why you want this. Leave most of the above code in App_Start and insert these two lines at the end of Timer1_Tick. The scrollbars seem to automatically re-enable after input.
Code:
txtEdit.SelectionLength = StrLength(txtEdit.Text)
oh.SetProperty("Enabled", false)
ov.SetProperty("Enabled", false)
txtEdit.Focus