19.12.2014 10:46, Martin Schreiber пишет: > On Friday 19 December 2014 09:06:35 amateur wrote: >> It is supported at runtime? > " > <grid>.insertwidget(<widget>,<position>); > " > > Martin
procedure tmainfo.on_ins_col(const sender: TObject); var my_btn : tcalendardatetimeedit; begin my_btn := tcalendardatetimeedit.create(self); with grid do begin insertwidget(my_btn);//work OK... end; end; {This code adds a new column...} /////////// procedure tmainfo.on_ins_widget(const sender: TObject); var my_btn : tcalendardatetimeedit; a_pos : pointty; begin my_btn := tcalendardatetimeedit.create(self); a_pos := grid.pos; ///I can`t correctly determine the position ///how to insert a widget in the right column???? ///sample: fixrows[-1] and col 2.... with grid.fixrows[-1] do begin insertwidget(my_btn, a_pos); ///not work.... end; end; ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk