Question Regarding ScrollView
-
Hi, I have made an OpenGL view embedded into a scrollview. I am trying to use SetScrollSizes function to set a proper Window size, but I dont understand how the values are found, I have many rows of rectangles shown in OpenGL, and I want to adjust the length of the scrollbar to accomodate the number of rows. I have used the following code SetScrollSizes( MM_TEXT, CSize( 100, totalNumOfRow*60 ) ); where 60 is the length of one rectangle showing on the screen. Any help would be greatly appreciated.
-
Hi, I have made an OpenGL view embedded into a scrollview. I am trying to use SetScrollSizes function to set a proper Window size, but I dont understand how the values are found, I have many rows of rectangles shown in OpenGL, and I want to adjust the length of the scrollbar to accomodate the number of rows. I have used the following code SetScrollSizes( MM_TEXT, CSize( 100, totalNumOfRow*60 ) ); where 60 is the length of one rectangle showing on the screen. Any help would be greatly appreciated.
-
godspeed123 wrote:
I am trying to use SetScrollSizes function to set a proper Window size, but I dont understand how the values are found
Paul DiLascia's DIBView Article[^] should help you
led mike
Hi, Its about the SetScrollSize property that I dont understand, not the images. Sorry for the confusion.
-
Hi, Its about the SetScrollSize property that I dont understand, not the images. Sorry for the confusion.