Subject RE: [IBO] Password column in TIB_GRID
Author Dmitry Beloshistov
Hello.



Hmm. I`m make column in this case as ReadOnly and process edit in separated modal form... But you also can use OnGetEditText() event...



From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf Of Alexandre Pires
Sent: Monday, August 16, 2010 5:26 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Password column in TIB_GRID





Dmitry, thank for you help, I made this only to test:

procedure TForm1.IB_Grid1GetDisplayText(Sender: TObject; ACol,
ARow: Integer; var AString: String);
begin
if ACol=2 then AString:='*';
end;

but when I select the cell to edit, the password is shown

----- Original Message -----
From: "Dmitry Beloshistov" <torin@...<mailto:torin%40scm.com.ua>>
To: <IBObjects@yahoogroups.com<mailto:IBObjects%40yahoogroups.com>>
Sent: Monday, August 16, 2010 9:26 AM
Subject: RE: [IBO] Password column in TIB_GRID

> Hello!
>
>
>
> One of solution:
>
> In OnGetText() event handler you can return string '************' instead
> actual password.
>
> If your want use Vista like password chars - return 'llllll' string and
> change font to Windings in OnGetCellProps() event handler for draw.
>
>
>
> From: IBObjects@yahoogroups.com<mailto:IBObjects%40yahoogroups.com> [mailto:IBObjects@yahoogroups.com<mailto:IBObjects%40yahoogroups.com>] On
> Behalf Of Alexandre Pires
> Sent: Monday, August 16, 2010 3:14 PM
> To: IBObjects@yahoogroups.com<mailto:IBObjects%40yahoogroups.com>
> Subject: [IBO] Password column in TIB_GRID
>
>
>
>
>
> Hi Guys,
>
> I am using a TIB_GRID with TIB_QUERY, in my grid I have 2 columns, one of
> these columns is used for passwords, how set this column to appear as
> ***** instead of the password ?
>
> Thanks
> Alexandre
> Brazil
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 5369 (20100816) __________
>
>
>
> The message was checked by ESET NOD32 Antivirus.
>
>
>
> http://www.esetnod32.ru/.ml
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> __________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
> InterBase
> without the need for BDE, ODBC or any other layer.
> __________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
> papers,
> keyword-searchable FAQ, community code contributions and more !
> Yahoo! Groups Links
>
>
>





__________ Information from ESET NOD32 Antivirus, version of virus signature database 5370 (20100816) __________



The message was checked by ESET NOD32 Antivirus.



http://www.esetnod32.ru/.ml



[Non-text portions of this message have been removed]