TIPHtmlPanel - problem manipulating nodes lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- strikelight · 2013-07-03 21:52 I read evoshroom's post about creating a RichChat based on IPHtmlPanel here. I'm able to modify his source with a standard edit box and displaying the typed text into the box. However, when I tried to incorporate it into my own project, every time I enter text, the htmlpanel completely resets... So, I whittled my project down piece by piece, trying to figure out what the difference was, why it works in his, but not in my own.  I finally ended up with something that looks essentially the same as his, yet still doesn't work.  Heh.. I think I need a pair of fresh eyes to tell me what I'm doing wrong? I realize there is a lzrichedit now, but I would rather get this working instead, to be more cross-platform friendly. I also realize that it would be easier to simply load text in repeatedly from string, but that would result in constanst flashing updates, and would be slower. I've attached a zip with the two projects, the one that Works, and the one that doesn't.. I'd really be appreciative if someone can clarify why the one doesn't work.. Thanks so much! (Using latest Lazarus/fpc.. Tried on both Windows and Ubuntu) ---------------------------------------------------------------------- Jurassic Pork · 2013-07-04 00:21 hello strikelight, i haven't found your problem, but have some trails (tracks, ways ? what is the right word in english ?) to find it : 1 - when you enter a long line (with many characters) all the lines which have been entered before -(but not seen) are displayed. 2 - then if you enter a line which has the same number of characters, the iphtmlpanel displays nothing. 3 - if you enter a line with number of characters + 1 , all the lines are displayed. Edit : Found the problem : TIpHtmlPanel doesn't like zero margins put other values than zero for marginWidth, marginHeight   IpHtlmPanel properties ex ( 1 , 1 ) Friendly, J.P ps : Aminer  look at this   i am a magician ---> i edit my messages. ---------------------------------------------------------------------- strikelight · 2013-07-04 01:08 Quote from: Jurassic Pork on July 04, 2013, 02:21:24 amEdit : Found the problem : TIpHtmlPanel doesn't like zero margins put other values than zero for marginWidth, marginHeight   IpHtlmPanel properties ex ( 1 , 1 ) Friendly, J.P ps : Aminer  look at this   i am a magician ---> i edit my messages. You are a rock star! That was exactly it.. I would never have come to that conclusion on my own.. Thank you so much, JP!