>>>When first starting a form I have this:
>>>
>>>Form.PageFrame.Top = 150
>>>Form.PageFrame.Height = 173
>>>Form.PageFrame.BorderWidth = 1
>>>Form.CommandButton.Top = 326
>>>
>>>After I resize the form I have this:
>>>
>>>Form.PageFrame.Top = 283
>>>Form.PageFrame.Height = 326
>>>Form.PageFrame.BorderWidth = 1
>>>Form.CommandButton.Top = 615
>>>
>>>But the PageFrame is covering 1/3 of the button.
>>>
>>>What else is involved in the PageFrame.Height?
>>
>>What is the code you use to reposition the controls?
>
>I'm using 'CodeMine Stretchy-Resize Control', but what differenct does that make?
Because there's not anything obviously wrong with what you posted, nor is it clear how the location and sizes got into the state they're in. All this led me to think there was more information needed.
>PageFrame.Top+Height+(BorderWidth*2)=611
>CommandButton.Top=615
Yes. I've got that.
>Why does the PageFrame cover 1/3 of the button? The bottom of the PageFrame should be 4 points above the button, but it covers 1/3.
>I guess I'm asking how do I compute the bottom of a pageframe?
Top + height should do it.
I'll have to presume it's something to do with the codemine framework, which I don't use, so don't have access to the stretchy resize control.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement