Subject Re: [IBO] Checkmark in a IB_Grid
Author Antti Kurenniemi
The fix worked for me, in XP. And if you are in a fixin' mood, the
TIB_RadioGroup control doesn't really look like it belongs to Windows XP at
all, when using XP themes...


Antti Kurenniemi


----- Original Message -----
From: "Jason Wharton" <jwharton@...>
To: <IBObjects@yahoogroups.com>
Sent: Saturday, December 10, 2005 10:25 PM
Subject: RE: [IBO] Checkmark in a IB_Grid


> 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
>
>
>
>
> ___________________________________________________________________________
> 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 !
> Yahoo! Groups Links
>
>
>
>
>
>
>