Subject | Re: [IBO] Checkmark in a IB_Grid |
---|---|
Author | radevojvodic |
Post date | 2005-07-14T07:09:56Z |
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
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
--- In IBObjects@yahoogroups.com, "radevojvodic" <rvojvodic@r...> wrote:
> Is IT the case only with readonly fields or in any case?
>
> --- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...> wrote:
> > Apparently this is a recent bug introduced in IBO. It probably
> wouldn't be
> > too hard to fix but these were changes that were donated so I'm not as
> > familiar with them as I'd like. Anyone feel brave enough to give it a
> > whirl?
> >
> > Jason Wharton
> > www.ibojects.com
> >
> > > -----Original Message-----
> > > From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On
> > > 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