This is tough to describe...
I've got 2 listboxes in a container on page 2 of a pageframe on a form.
The form works in 2 modes - view and edit. When you start running the screen in view mode you just see page 1 with a textbox and label on it - no problems. Then when you switch mode the background of the page becomes transparent exactly where the listboxes are on page2. The textbox itself is not affected, but the label is truncated where it meets the edge of the transparent area. (I can send a screenshot to anyone if that helps!)
BACKGROUND INFO:
When switching to edit mode I'm making the form modal using:
thisform.Hide()
thisform.Show(1)
thisform.Show(2)
and back to view mode with:
thisform.Hide()
I'm using the same edit and view modes, pageframe, and container with listboxes, on 3 other forms without getting this behaviour on any of them!
So far I've tried messing around with lockscreen, refresh, paint and CLS. The only thing that fixes the problem is setting the visible property of the listboxes to .F. in the form's init(). Unfortunately, when you try to programmatically set and reset the visible property as required, the problem comes back after the first "visible = .T." and doesn't go away again when the program reaches a "visible = .F.
I've got 2 listboxes in a container on page 2 of a pageframe on a form.
The form works in 2 modes - view and edit. When you start running the screen in view mode you just see page 1 with a textbox and label on it - no problems. Then when you switch mode the background of the page becomes transparent exactly where the listboxes are on page2. The textbox itself is not affected, but the label is truncated where it meets the edge of the transparent area. (I can send a screenshot to anyone if that helps!)
BACKGROUND INFO:
When switching to edit mode I'm making the form modal using:
thisform.Hide()
thisform.Show(1)
thisform.Show(2)
and back to view mode with:
thisform.Hide()
I'm using the same edit and view modes, pageframe, and container with listboxes, on 3 other forms without getting this behaviour on any of them!
So far I've tried messing around with lockscreen, refresh, paint and CLS. The only thing that fixes the problem is setting the visible property of the listboxes to .F. in the form's init(). Unfortunately, when you try to programmatically set and reset the visible property as required, the problem comes back after the first "visible = .T." and doesn't go away again when the program reaches a "visible = .F.