Re: Spreadsheet Control
- Posted by Ben Logan <wbljr79 at HOTMAIL.COM> Apr 19, 2000
- 540 views
>From: "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> > >Someone was asking for information on how to create a spreadsheet-type of >control, so here's a small demo. Basically, it creates a hidden control >(drawn off the window) that traps key events. Two real scrollbars are >created; notice that they set the focus back to the hidden grid control >after scrolling. Note that it uses the onMouse and onPaint traps of the >parent window. > >I redefined White in Win32Lib as: > > White = rgb( 192, 192, 192 ) > >since it's incorrectly defined. It should use system colors instead. > >There are a lot of features that could be added: double buffering, key >handling, using real system colors, selecting rows/columns, resizing >columns, more navigation keys, center the labels... the list goes on and >on. >If people are interested, I could develop it more (unless someone else >wants >to take it on). > I'm interested! I don't have the know-how to take it over, but I've wished several times that there was such a thing. Thanks, Ben ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com