Hello everyone,
Version: 25.2.6.2 (X86_64) / LibreOffice Community
Build ID: 729c5bfe710f5eb71ed3bbde9e06a6065e9c6c5d
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26200); UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: threaded
Long story short, my objective is to be able to control position of the cursor within a textbox created on a Base form. Is it possible, and if so, how?
I have a function invoked by a key released event assigned to a textbox on a form. This textbox is acting as a filter, and the function is meant to compare the typed in text to the current resultset, and if the newly typed letter renders no results left, the letter is to be erased. Problem is that when the textbox value gets reset back to previous state, the cursor sits at the very beginning of the string, not the end. I’ve spent several hours trying to control this with no luck.
It would seam that it should be the com.sun.star.text.XTextViewCoursor that would be responsible for this, but I cannot seem to understand as to how to associate it with the particular textbox control or model. Any help would be greatly appreciated.