Re: Grid Control: getting original checkbox state
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Feb 10, 2003
- 475 views
Phil, Oh, I should also have said: Examples, *yes*, examples are *wonderful*, the more examples the better! :) And I'm not trying to make it look like a *list* per se, but more like a *ListView*, with columns, but including checkboxes, which ListView won't do. So making the grid lines not show isn't something I'm looking for, but someone else might want to do so sometime, so an example of it isn't a bad idea in general. Most of what anyone could want to do with the Grid Control is *probably* in "Style.exw" (BTW, thanks for the mention in it!), but there's *so* much there it's a little hard to find & properly abstract it to use. That's where individual examples can be helpful. In fact, if you were to develop or obtain a large number of examples, you might even consider using "RunDemos.exw" (distributed with Win32Lib) to manage them. It allows a user to: 1. see the names & a short description of every included demo; 2. run any listed demo by double-clicking on it in the list; 3. see the code in an editor by right-clicking on any listed demo (for copy-paste); 4. and add demos with descriptions to its list. Dan Moyer ----- Original Message ----- From: "Phil Russell" <pg_russell at lineone.net> To: "EUforum" <EUforum at topica.com> Sent: Monday, February 10, 2003 7:20 AM Subject: RE: Grid Control: getting original checkbox state > > Hi Dan, > > The scrollbars in EuGrid only appear when the number of rows or width of > visible columns exceed the size of the window. In that sense the > vertical scrollbar should act in a similar way to a listbox. If you > size the columns so that they all fit in the window size then you won't > get a horizontal scrollbar either. > > To make it look even more like a listbox you would need to: > > - hide the row header > - make the grid background colour the same as the row background colour > - make the grid line colour the same as the grid background colour. > > Is that what you meant? I can send you an example if you like... > > Regards, > > Phil > Dan Moyer wrote: > > Phil, > > > > It does take some getting used to, but it's a very nice looking & > > functioning control! > > > > Here's a suggestion: > > Since I'm trying to use it essentially like a ListView with checkboxes, > > I > > wonder if it could be made to have an option to behave even more like a > > list, such that instead of initially showing its whole innate height, it > > would only show however many rows it has been given, up to its innate > > height, and then begin to scroll when the number (or space) of rows > > exceeds > > the space provided by its height? > > > > Dan Moyer