Subject Re: Checkmark in a IB_Grid
Author radevojvodic
I just installed IBO 4.5B so i haven't tested it jet. But as far as I
can remember the only real problem was to process hover state of
checkbox in Grid. So, if you have time to spend on this issue it would
be great.

Normally when you drag mouse over checkbox it has yellow rectangle
inside but i could not get that effect if checkbox is in a grid.

Rade.

--- In IBObjects@yahoogroups.com, "opg_medico" <opg_medico@y...> wrote:
>
> 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:
> > 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
> >
> > --- 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
>