1. RE: geometry.ew bug?
- Posted by Don Phillips <Graebel at hotmail.com> Aug 16, 2002
- 419 views
> If you run program below you'll see that at the bottom there is > red horizontal belt, that is a part of workspace window which has red > background. > Listview_window should be resized till bottom, why is that space there? > Listview_window is of type "List", if you change it to "ListView" it > works > ok. > > Maybe it's win32lib bug? I have found through various testing over time that the most likely candidates for bugs is Windows itself =) I *might* be Win32Lib but I have serious doubts about it. If I have the time I will look into this further... > I have one request: > It would be good if we could be able to set spacing between windows, > horizontal and vertical. This would be especially usefull when managing > buttons, for example. I am unclear about your request. Mainly because (unless I am mis- understanding you) that functionality is already included in Geometry. ========== Button1 Button2 (Make Button1 and Button2 50 pixels wide, 25 pixels high, and place Button2 5 pixels right of Button1) manage( GMID, Button1, {0,5}, {0,5}, {Button1,50}, {Button1,25} ) manage( GMID, Button2, {Button1,5}, {0,5}, {Button2,50}, {Button2,25} ) ========== Is this what you wanted? If so read up about sticky sides and such in Geometry.htm. If this isnt what you needed please be more specific... Don
2. RE: geometry.ew bug?
- Posted by Don Phillips <Graebel at hotmail.com> Aug 16, 2002
- 444 views
> without warning > include win32lib.ew > include geometry.ew Ahh, maybe thats it. From the include it looks like you have an older library. Go to the recent contributions page and search for my xControls library. It has updated routines and some basic help files to get you started. On the second point (the red horizontal belt). I bet I know what that is. List boxes define their own height by default. They set the height in steps so only whole lines of text will fit within the client area. To fix this, add the LBS_NOINTEGRALHEIGHT style on creation. <quote> Specifies that the size of the list box is exactly the size specified by the application when it created the list box. Normally, Windows sizes a list box so that the list box does not display partial items. </quote> Don Phillips