My own GRID!
From: KKF (n3tw0rk_at_wp.pl)
Date: 01/23/04
- Next message: F.Stockmann: "Blob Performance"
- Previous message: Kevin Frevert: "Re: locate on server-curser not possible?"
- Next in thread: Bruce Roberts: "Re: My own GRID!"
- Reply: Bruce Roberts: "Re: My own GRID!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Jan 2004 12:29:02 +0100
Hi there,
I have three questions:
1. Is it worth (and how to) write my own component a'la TStringGrid, but
derive it directly from TCustomControl?
I believe so -- for sake of saving useless functionality code (like i.e.
fonts etc.) and possibility of introducing own functions that TStringGrid
simply does not support -- but I am not sure...
2. How to make -- in lieu of TInplaceEdit as a descendant from
TCustomMaskEdit -- a brandnew TInplaceEdit as a descendant from TWinControl,
so that on its base I could then build my own TInplaceSimpleEdit (a'la
TMaskEdit), TInplaceCombo (a'la TComboBox), TInplaceCalendar (a'la
TDateTimePicker)? Is my hierarchy alright?
example:
uses ...; //we do not use the Grids library
type
TMyCustomGrid = class(TCustomControl)
private
FInplaceEdit: TInplaceEdit;
...
end;
...
TInplaceEdit = class(TWinControl)
...
TInplaceCombo = class(TInplaceEdit)
...
TInplaceSimpleEdit = class(TInplaceEdit)
...
3. What is the best way -- in this situation -- to make a column acting like
CheckBox? Also as TInplaceEdit, or in some better way?
Thanks and regards,
Kris
- Next message: F.Stockmann: "Blob Performance"
- Previous message: Kevin Frevert: "Re: locate on server-curser not possible?"
- Next in thread: Bruce Roberts: "Re: My own GRID!"
- Reply: Bruce Roberts: "Re: My own GRID!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]