I've managed to work around this unusual behavior but was wondering if it is normal or did I do something to make this happen in my form? I have dockable form that can be toggled on and off via a toolbar (visibility). Testing it I noticed that the form resized a little every time I toggled the visibility.
My guess is that the form's position and size is being drawn as I left it and then the title bar is being adjusted afterward (to reflect the dockable setting) to make it appear that it's getting smaller and moving across the screen?
Have others here experienced this?
Ralph Kolva
My guess is that the form's position and size is being drawn as I left it and then the title bar is being adjusted afterward (to reflect the dockable setting) to make it appear that it's getting smaller and moving across the screen?
Have others here experienced this?
Code:
PUBLIC oform
oform = CREATEOBJECT('form')
oform.Visible = .t.
oform.Dockable = 1
oform.left = 200
oform.Top = 200
oform.Width = 200
oform.Height = 200
? [Starting values]
? [left: ] + TRANSFORM(oform.Left)
? [top: ] + TRANSFORM(oform.top)
? [height: ] + TRANSFORM(oform.height)
? [width: ] + TRANSFORM(oform.width)
oform.Hide()
oform.show()
? [Ending values]
? [left: ] + TRANSFORM(oform.Left)
? [top: ] + TRANSFORM(oform.top)
? [height: ] + TRANSFORM(oform.height)
? [width: ] + TRANSFORM(oform.width)
Ralph Kolva