trichview.support
Re: Switching out of Best Width mode |
Author |
Message |
Joe |
Posted: 02/19/2002 16:04:04 A simple code like this: FRVTable.BestWidth := 0; (Parent as TRichHtml).Format; must work, if FRVTable is not inside any other table. Otherwise you need to call table.Changed for table containing this table, table containing that table, and so on. The "official" (and the most efficient) method of modifying properties of tables is below: var ItemNo, Data: Integer // let's rve is an editor containing table (directly, i.e. if the table is inside a cell, this is must be a cell editor). // ItemNo must be an index of table in this editor; if it is not known, you can get it: // ItemNo := rve.GetItemNo(table); rve.BeginItemModify(ItemNo, Data); table.BestWidth := 0; rve.EndItemModify(ItemNo, Data); rve.Change; I.e. absolutely the same scheme as in demo of editor for operations on tables. > Sergey, > > >> Set it back to 0. > > I tried that and it doesn't seem to work. On the first attempt to resize the > table, after setting BestWidth to zero, the table jumps to an unpredictable > width. After this initial jump manual mode works OK. > > FRVTable.BestWidth := -FPercent; > (Parent as TRichHtml).Format; > (Parent as TRichHtml).Update; // force repaint to show change to any > inner tables > FRVTable.BestWidth := 0; // return to manual mode > > Should I set BestWidth to zero somewhere else? > > Thanks, > Joe. > > > ----- Original Message ----- > From: "Sergey Tkachenko" <svt@trichview.com> > Newsgroups: trichview.support > Sent: Friday, February 15, 2002 12:58 AM > Subject: Re: Switching out of Best Width mode > > > > > Once I have set the Best Width property how can I return to back to > > "manual" > > > mode? > > > > Set it back to 0. > > > > > "Sergey Tkachenko" <svt@trichview.com> wrote in message news:3c6cb8dc$1@support.torry.net... > > Once I have set the Best Width property how can I return to back to > "manual" > > mode? > > Set it back to 0. > > |
Powered by ABC Amber Outlook Express Converter