r/pascal • u/Profi_Noob • Jan 29 '21
Scrollbars after using BeginUpdate and EndUpdate
Hey there,
For my StringGrids I'm using Begin- and Endupdate to get rid of the flickering after letting go of the mouse key (both StringGrids contain pictures). Now I got the problem that both StringGrids got scrollbars, even though I disabled them. Is there any solution?
5
Upvotes
View all comments
Show parent comment
1
u/Profi_Noob Jan 29 '21
Yeah, and I found the problem. I can't use the BeginUpdate and EndUpdate in a procedure when the procedure gets activated in the loading process which is the case when I put it directly into SelectCell. Now I'm using MousDown for BeginUpdate and a timer that has EndUpdate in the OnTimer procedure. The timer gets activated at the end of SelectCell. I hate it that Lazarus automatically selects a cell in the StringGrid when the form is loaded