Subject | Re: Checkmark in a IB_Grid |
---|---|
Author | opg_medico |
Post date | 2005-10-06T10:37:22Z |
Great Rade!
I was stuck on the same problem, but I changed the IB_Grid
(IB40VRT_D2005) code and now it seems to work fine.
Only thing is that the "normal" IB_checkbox on a form looks
different in disabled state. On a form Jason draws them "normal"
even when they ought to be "disabled". I feel that this looks a wee
bit better (they do look a bit fuzzy and unclear; being grayed out)
so I implemented the code like this.
case indicator of
2, 5: BoxE := tbCheckBoxMixedNormal;
1, 4: BoxE := tbCheckBoxUncheckedNormal;
0, 3: BoxE := tbCheckBoxCheckedNormal;
end;
This way they allways draw as normal, even when they ought to be
disabled.
Cheers
Martijn Hoedeman
--- In IBObjects@yahoogroups.com, "radevojvodic" <rvojvodic@r...>
wrote:
I was stuck on the same problem, but I changed the IB_Grid
(IB40VRT_D2005) code and now it seems to work fine.
Only thing is that the "normal" IB_checkbox on a form looks
different in disabled state. On a form Jason draws them "normal"
even when they ought to be "disabled". I feel that this looks a wee
bit better (they do look a bit fuzzy and unclear; being grayed out)
so I implemented the code like this.
case indicator of
2, 5: BoxE := tbCheckBoxMixedNormal;
1, 4: BoxE := tbCheckBoxUncheckedNormal;
0, 3: BoxE := tbCheckBoxCheckedNormal;
end;
This way they allways draw as normal, even when they ought to be
disabled.
Cheers
Martijn Hoedeman
--- In IBObjects@yahoogroups.com, "radevojvodic" <rvojvodic@r...>
wrote:
> Hi all,checkbox
>
> if i got it right, when field is readnonly then indicator for
> drawing is incremented by 3. So, with XP themes there is only aslight
> change in IB_Grid.pas. Part of code starting as line 6603wrote:
>
> 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...>
> > Is IT the case only with readonly fields or in any case?<jwharton@i...> wrote:
> >
> > --- In IBObjects@yahoogroups.com, "Jason Wharton"
> > > Apparently this is a recent bug introduced in IBO. It probablyI'm not as
> > wouldn't be
> > > too hard to fix but these were changes that were donated so
> > > familiar with them as I'd like. Anyone feel brave enough togive it a
> > > whirl?[mailto:IBObjects@yahoogroups.com]On
> > >
> > > Jason Wharton
> > > www.ibojects.com
> > >
> > > > -----Original Message-----
> > > > From: IBObjects@yahoogroups.com
> > > > Behalf Of Antti Kurenniemisettings in
> > > > 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
> > > > 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