ivanomonti Expert Licensed User Longtime User Apr 13, 2023 #1 how can i calculate height of text to be able to resize BCTextEngine and its parent? Thanks to whoever replies, it looks like this thing is hard to answer thank 1000
how can i calculate height of text to be able to resize BCTextEngine and its parent? Thanks to whoever replies, it looks like this thing is hard to answer thank 1000
omo Active Member Licensed User Longtime User Apr 13, 2023 #2 ivanomonti said: how can i calculate height of text to be able to resize BCTextEngine and its parent? Thanks to whoever replies, it looks like this thing is hard to answer thank 1000 Click to expand... Try to adapt this contentheight in link below to B4a if it can help you set BBCodeView height to match the content : [Solved] Center vertically text in BBCodeView I did many attemps to center vertically text in BBCodeView when paragraph height is not larger than the Base height (or the scrollview height) but no success. It's like text in BBLabel which is centered vertically but in a BBCodeView. I picked code from BBLabel (from the Redraw sub) but always... www.b4x.com Upvote 0
ivanomonti said: how can i calculate height of text to be able to resize BCTextEngine and its parent? Thanks to whoever replies, it looks like this thing is hard to answer thank 1000 Click to expand... Try to adapt this contentheight in link below to B4a if it can help you set BBCodeView height to match the content : [Solved] Center vertically text in BBCodeView I did many attemps to center vertically text in BBCodeView when paragraph height is not larger than the Base height (or the scrollview height) but no success. It's like text in BBLabel which is centered vertically but in a BBCodeView. I picked code from BBLabel (from the Redraw sub) but always... www.b4x.com
ivanomonti Expert Licensed User Longtime User Apr 13, 2023 #3 omo said: Try to adapt this contentheight in link below to B4a if it can help you set BBCodeView height to match the content : [Solved] Center vertically text in BBCodeView I did many attemps to center vertically text in BBCodeView when paragraph height is not larger than the Base height (or the scrollview height) but no success. It's like text in BBLabel which is centered vertically but in a BBCodeView. I picked code from BBLabel (from the Redraw sub) but always... www.b4x.com Click to expand... perfect, thank 1000000000000000000000 Upvote 0
omo said: Try to adapt this contentheight in link below to B4a if it can help you set BBCodeView height to match the content : [Solved] Center vertically text in BBCodeView I did many attemps to center vertically text in BBCodeView when paragraph height is not larger than the Base height (or the scrollview height) but no success. It's like text in BBLabel which is centered vertically but in a BBCodeView. I picked code from BBLabel (from the Redraw sub) but always... www.b4x.com Click to expand... perfect, thank 1000000000000000000000