Subject RE: [IBO] Checkbox states
Author Çağatay Tengiz
Thanks Luiz that solved my problem, anyway IMO setting columattributes
sholuld be enoug for achieving this as stated online FAQ databese.

Best Regards
Cagatay Tengiz

-----Original Message-----
From: Luiz Alves [mailto:cprmlao@...]
Sent: Thursday, January 17, 2002 1:25 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Checkbox states


Cagatay,
> Hi to list,
>
> I have problem with checkboxes. The problem is I can not prevent to enter
> checkbox to grayed (null) state. Let me explain my situation :
>
> First I declared a domain on my database as :
> CREATE DOMAIN DMN_BOOLEAN CHAR( 1 ) CHARACTER SET WIN1254
> DEFAULT 'F' CHECK (VALUE IN ('T', 'F')) COLLATE PXW_TURK
>
> and used it in many tables for boolean fields
>
> then in my delphi application in tib_query I defined my boolean fields in
> columnattirubutes property as (suppose that my field's name is
SBT_KUR_VAR)
> :
> SBT_KUR_VAR=BOOLEAN=T,F
>
> and bound a tib_grid to this tib_query. What I am expecting is the
checkbox
> which appears on grid must have only two states : Checked and not checked.
> But I get three sates checked, not checked and null (the grayed one) and
> this is confusing for my users cause they do not know what is the meaning
of
> null and they confuse it with checked state.
>


You can set Required Attribute for the column to True.

Luiz.



___________________________________________________________________________
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 !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


_________________________________________________________
Do You Yahoo!?
Get your free @... address at http://mail.yahoo.com