[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 44.392::delphi_in_dec

Title:Borland Delphi conference
Moderator:BROUGH::DAVIES
Created:Tue Mar 12 1996
Last Modified:Fri May 30 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:33
Total number of notes:110

28.0. "TDBCtrlGrid - hwere is it?" by 4262::WRAY (John Wray, Distributed Processing Engineering) Wed Apr 02 1997 16:00

    I have an application for which I need to use the TDBCtrlGrid control. 
    However, I can't find this component in under any of the tabs on the 
    component palette.  Can anyone give me a hint where to find it?
    
    John
T.RTitleUserPersonal
Name
DateLines
28.1Here it is...HAL::SYSTEMWed Apr 02 1997 16:2913
    John,
    	I can see it on my V2.01 release as follows:-
    
    	Data Controls tab
    		-----> Far Right control DBCtrlGrid
    
    	Check this out. I found it by going into Help/Index & typing
    	TDBCtrlGrid. Then selecting the page. On it saw a representation of 
    	the control's icon. I then looked for it on the toolbar.
    
    	Regards
    		Stephen Davies
    
28.24262::WRAYJohn Wray, Distributed Processing EngineeringThu Apr 03 1997 17:4116
    Re .1:
    
>    	I can see it on my V2.01 release as follows:-
>    
>    	Data Controls tab
>    		-----> Far Right control DBCtrlGrid
>    
>    	Check this out. I found it by going into Help/Index & typing
>    	TDBCtrlGrid. Then selecting the page. On it saw a representation of 
>    	the control's icon. I then looked for it on the toolbar.
    
    It's not there on my system.  I have twelve components under that tab,
    the rightmost being DBLookupListBox (or something similar),  No sign of
    a DBCtrlGrid anywhere.
    
    John
28.34262::WRAYJohn Wray, Distributed Processing EngineeringMon Apr 07 1997 16:295
    Apparently this is one of the controls that isn't in Delphi Desktop
    edition (which is what I have).  As I need this control, I'm upgrading
    to the developer edition.
    
    John
28.44262::WRAYJohn Wray, Distributed Processing EngineeringWed May 21 1997 19:0918
    One of the controls I was hoping to put in my DBCtrlGrid was a DBImage
    (displaying a BLOB graphic from the database).  However, Delphi 2
    complains when I try to drop either a DBMemo or DBImage control onto
    the DBCtrlGrid, saying that I can't use those types of control in a
    DBCtrlGrid.
    
    I guess I can paint the images myself (in a handler for the
    OnPaintPanel event), but that seems a little clumsy, particularly as
    that event doesn't tell me the coordinates of the panel that wants to
    be painted, so I'd have to calculate that from the row/column of the
    panel, and so if a future version of the VCL changes the sizes of the
    gutters between panels, my images would be drawn in the wrong places.
    
    Is this (replicating DBImage controls within a DBCtrlGrid) supported
    under Delphi 3?  If so, I'll wait until my upgrade arrives.  If not, is
    there any way to do this other than painting the images myself?
    
    John
28.54262::WRAYJohn Wray, Distributed Processing EngineeringWed May 28 1997 15:095
    I guess procrastination is sometimes worthwhile - Delphi 3 supports
    replicated DBImage controls on a DBCtrlGrid just fine.  So I guess I
    can get away without having to paint my own panels.
    
    John