Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSFlexGrid horizontal scrollbar will not show up

Status
Not open for further replies.

JohnInDC

Programmer
Aug 26, 2005
20
US
Ah, you thought this one would be an easy one (or maybe it still is), but I do have the ScrollBars property set to flexScrollBoth, and it is not changed anywhere in my code. But the horizontal scrollbar will not show up no matter how small I resize to.

Actually, I have my own resize subroutine. Maybe that's what the problem is. Here's my resize routine...

Private Sub Form_Resize()
If ScaleHeight > 1500 And ScaleWidth > 20 Then
flxFileTextGrid.Height = ScaleHeight - 1500
flxFileTextGrid.Width = ScaleWidth - 20
fraButtons.Top = 960 + flxFileTextGrid.Height + 120
fraButtons.Left = 2295 * (flxFileTextGrid.Width / 1
End If
End Sub

The height of the grid is 1500 twips smaller than the form height, width is 20 less than the form. The If statement makes sure that I don't get a negative height or width for the grid when the form is minimized.

Anyone? Anyone? Bueller?

Thanks,
JT
 
The scroll bar will only show up if needed. In other words if the total width of your columns is wider than the size of the flexgrid.

zemp
 
Yes, the width of the columns is greater than the width of the grid. It still does not show up.

Thanks,
JT
 
The vertical scroll bar appears and disappears the way it is supposed to when I resize, but the horizontal scrollbar will not appear no matter what size I make the window.

It seems to be acting like the ScrollBars property is set to flexScrollVertical or flexScrollNone, but it's not. It's set to flexScrollBoth.

JT
 
I've tried setting the ScrollBars value in my code too...

flxFileTextGrid.ScrollBars = 3

... but it does nothing.

I also tried setting it to 1 (flexScrollHorizontal), and the vertical scrollbar disappeared, so I know I coded that statement correctly.

It's a mystery wrapped in... somethin'...

JT
 
In another post, vbvictim wrote, "Apparently adding fixed rows to the grid [did it]. Fixed rows are not scrollable."

So, there are some things that will prevent the scrollbar from not showing up. (It's not my imagination.) However, I don't have any fixed rows in my grid, so it must be something else.

JT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top