Subject Re: [IBO] Re: TIB_Edit Height problem again
Author Paul Hope
Ramil


> Hi Marco,
> I agree with you what it related to the VCL part (ancestors).

I'm not sure this is true - since it works for TDBEdit and TEdit.

>
> About height = 35 for TDBEdit and TEdit - try same with AutoSize=False...
> We can control it!
> I need stylish, compact form. User must see more information at once.
> Grids with 'Tahoma' font and DefaultRowHeight=15 looks great,
> but large Edits don't harmonize with that style.
> Font(Tahoma,8), Ctrl3D(False),Heigth(15) is much better.
> It only my opinion and maybe someone else.

I use Ctrl3d=False and height=17 with MS Sans Serif 8. For me, 3D is too
much visual clutter. So if I need Edits I actually use TEdit and load/save
them manually just to get a control matching in appearance. Which is a
little absurd when the IBO controls are among the best around.

I also regard it as a bug since the control can be sized in the designer but
reverts to full height on run.

> I look at the code in depth but is not fully successfully while.
> I find that problem hiding in property assignment sequence in ancestors
> tree.
> Height changed by TCustomEdit.AdjustHeight in StdCtrls.pas.
> AdjustHeight don't called when AutoSize=False, but AutoSize assigned
> later when Height and between it something entail AdjustHeight calling,
Font
> assignment for example.
> Simple obvious solve I find, it is assignment AutoSize to False by default
> in
> TIB_Edit sources, it prevent automatic Height calculation.
> For me it more than enough, but backward compatibility lost for others...
>
I've just tried that - and it works - so I'm happy for now. But it would
be nice to find somewhere to put an 'if AutoSize then . . ' and have an
official fix.

Regards
Paul


>
> ---"Marco Menardi" <mmenaz@...> wrote in message
> > I've had a look at the code, but seems something related to the VCL
> > part (ancestors). Since the VCL TDBEdit and TEdit has the same
> > behaviour (try height = 35, for instance), I suppose it's something by
> > design that can't be changed without impacting TIB_Edit in a
> > unreasonable manner.
> > TIB_Edit is a "onle line only" edit control, so it's height adjusts
> > based upon font size or other "environmental" factors. For me, it
> > works very well as is.
> > regards
> > Marco Menardi
> >
> >
> > --- In IBObjects@yahoogroups.com, "Paul Hope" <paulhope@a...> wrote:
> > > Ramil
> > >
> > > I had a reply from Jason - saying that he wasn't sure how to solve
> > it - so
> > > as far as I know it is towards the bottom of a pile of things to do
;-/
> > >
> > > I had a quick look at the source but couldn't quite follow it. It
> > appeared
> > > to me that it always does a get metrics and resizes the control
> > according to
> > > the font with no facility to override this if it has been set
manually.
> > >
> > > Maybe someone else feels brave enough to have a look ;-)
> > >
> > > Regards
> > > Paul
> > >
> > > > Hi All,
> > > > Anyone have decision of inveteracy problem of TIB_Edit?
> > > > I'm talk about TIB_Edit Height problem.
> > > > Here extract from old messages of IB Objects support list:
> > > > "...
> > > > look at the problem with
> > > > the changing height of TIB_Edit (and other controls)
> > > > during runtime vs edit time?
> > > > (Set to 18 height at desingtime and switches to
> > > > 20 during runtime. Even when constraints set in design)
> > > > ...." by Steve Fields, Jul 18, 2001
> > > >
> > > > "...
> > > > I set my IB_Edit height to 17 and Autosize to false. They stay
like
> > > that
> > > > in
> > > > the IDE but appear as 19 high when the app runs? Is this a bug
> > or can I
> > > > control it?
> > > > ..." by Paul Hope, Aug 6, 2002
> > > >
> > > > Or I miss something and this explicit problem was fixed?
> > > > Any help appreciated.
> > > >
> > > > With best regards,
> > > > Ramil Khabibullin
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
>
___________________________________________________________________________
> > > > 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 !
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> >
> >
> >
> >
>
___________________________________________________________________________
> > 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 !
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
>
>
>
>
>
___________________________________________________________________________
> 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 !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>