Subject RE: [IBO] Checkmark in a IB_Grid
Author Jason Wharton
I've merged in this change and would like some feedback from those who had
or were aware of this problem and did this entirely resolve the issue?

Thanks,
Jason Wharton

> -----Original Message-----
> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On
> Behalf Of radevojvodic
> Sent: Thursday, July 14, 2005 12:10 AM
> To: IBObjects@yahoogroups.com
> Subject: Re: [IBO] Checkmark in a IB_Grid
>
>
> Hi all,
>
> if i got it right, when field is readnonly then indicator for checkbox
> drawing is incremented by 3. So, with XP themes there is only a slight
> change in IB_Grid.pas. Part of code starting as line 6603
>
> case indicator of
> 2: BoxE := tbCheckBoxMixedNormal;
> 1: BoxE := tbCheckBoxUncheckedNormal;
> 0: BoxE := tbCheckBoxCheckedNormal;
> end;
>
> should be changed with
>
> case indicator of
> 2: BoxE := tbCheckBoxMixedNormal;
> 1: BoxE := tbCheckBoxUncheckedNormal;
> 0: BoxE := tbCheckBoxCheckedNormal;
> 5: BoxE := tbCheckBoxMixedDisabled;
> 4: BoxE := tbCheckBoxUncheckedDisabled;
> 3: BoxE := tbCheckBoxCheckedDisabled;
> end;
>
> this is the IB_grid.pas taken from IBO45_B_raw.zip
>
> Hope it wil work.
>
> Rade Vojvodic
>
> > > -----Original Message-----
> > > From: IBObjects@yahoogroups.com
> > > Behalf Of Antti Kurenniemi
> > > Sent: Wednesday, July 13, 2005 9:16 PM
> > > To: IBObjects@yahoogroups.com
> > > Subject: Re: [IBO] Checkmark in a IB_Grid
> > >
> > >
> > > I found out the "problem", it's the Windows XP Manifest. I
> > > made a sample app
> > > with the tutorial database (added a field ACCEPTED as
> > > SMALLINT), and without
> > > the XP manifest it works like a champ (with the same settings in
> > > ColumnAttributes and FieldsReadOnly), but if I drop the XP
> > > manifest on the
> > > tutorial form, then there will be only empty squares drawn in
> > > the place
> > > where the tick mark should be.
> > >
> > > Can we do anything about that, apart from not using the XP
> > > manifest? I can
> > > send the modified tutorial app to you if you want, just tell
> > > me where to
> > > send it.
> > >
> > > Antti Kurenniemi