Dear visitor, welcome to Jabaco - Community.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Resize
Hi,
the "Form_Resize" handler is only called once at the end of a form resize operation. Therefore, there is no direct way to resize dynamically following the mouse-drag right away.
Any ideas how to get more resize calls and not just one?
Greetings
A1880
How about Form_MouseDown, Form_MouseMove and MouseUp? They might work...
These events are only triggered if the cursor is inside the Form window.
They are not called during or at the end of a resize.
Greetings
A1880
Maybe we can test where the cursor is. If it's on the border of the form and DragForm is true (set a boolean DragForm in public, when mousedown on border set it to true) then resize it. That's my nearest guess (I can't say it as an idea)
Funny Workaround for Form_Resize
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Public Sub Timer1_Timer() 'Interval=1000
Widht1=CLng(Form1.Width)
If Widht2 <> Widht1 Then
Form_serize
Widht2=CLng(Form1.Width)
End If
End Sub
Public Sub Form_serize()
frmCSV.Width=clng(Form1.Width)-23
Tabelle.Width=frmCSV.Width-16
'and other things that should be done on resize
End Sub
|