I've managed to insert a table into the editor gadget by translating the code from the following link: http://www.codeproject.com/docview/Tabl ... editor.asp
Procedure OnInsertTable(gadget, rows.l, cols.l)
tbl.settextex\flags = #ST_SELECTION
tbl.settextex\codepage = 1200
s.s = "{\rtf1";
sTable.s = s
sTable + "\ansi\ansicpg1252\deff0\deflang1033{\fonttbl"
sTable + "{\f0\froman\fprq2\fcharset0 Times New Roman;}"
sTable + "{\f1\fswiss\fcharset0 Arial;}}"
sTable + "{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1";
row.s = ""
row + "\trowd\trgaph108\trleft8\"
row + "trbrdrl\brdrs\brdrw10 \trbrdrt\"
row + "brdrs\brdrw10 \trbrdrr\brdrs\"
row + "brdrw10 \trbrdrb\brdrs\brdrw10 \"
row + "trpaddl108\trpaddr108\trpaddfl3\trpaddfr3";
col.s = ""
col + "\clbrdrl\brdrw10\brdrs\clbrdrt\brdrw10\brdrs\clbrdrr\"
col + "brdrw10\brdrs\clbrdrb\brdrw10\brdrs\cellx";
endcell.s = "\cell";
endrow.s = "\row";
width.l = 8748/cols;
;Loop For numbers of rows
For i = 0 To rows
sTable = sTable + row;
;Loop For number of columns
For j = 0 To cols
sTable = sTable + col;
sTable = sTable + Str(width * (j+1))
Next
sTable = sTable + "\pard\intbl";
For j = 0 To cols
sTable = sTable + endcell;
Next
sTable = sTable + endrow + Chr(10);
Next
sTable = sTable + "\par}";/
Debug sTable
SendMessage_(GadgetID(gadget), #EM_SETTEXTEX, @tbl, @sTable)
EndProcedure
so far so good, but when I use this code the table get's inserted but won't properly wrap and resize with the text inside the cells. also i'm not able to hide the borders with a 'Paraformat2' api function. after days of googling i'm quite sure that the PB editorgadget uses the windows riched20.dll instead of msftedit.dll wich has better functionality with rtf tables.... I hope i'm wrong...
Does anyone here have any idea on how to set up the editorgadget to properly view tables? (please don't tell me to buy a $500 rich edit control..

thanks in advance!
Bart