- Jun 6, 2020
- 11,559
- 4,422
Hello, this library seems to be very useful.
I tried to use it to develop custom controls which led me directly to a problem:
I am looking for a way to read the XY cursor position in (rte As SMMRichEditor)
Something similar to the GetXYCursor function:
- it would allow me to scroll the edit field (rte) in programming, so that the view of the virtual keyboard
does not cover the cursor when entering the field edit mode (rte).
Expected: x and y coordinates, view in pixels, cursor in SMMRichEditor.
I tried to use it to develop custom controls which led me directly to a problem:
I am looking for a way to read the XY cursor position in (rte As SMMRichEditor)
Something similar to the GetXYCursor function:
- it would allow me to scroll the edit field (rte) in programming, so that the view of the virtual keyboard
does not cover the cursor when entering the field edit mode (rte).
Expected: x and y coordinates, view in pixels, cursor in SMMRichEditor.
Private Sub GetXYCursor(edt As B4XFloatTextField) As Int()
Private joEditText, joLayout As JavaObject
Private xy(4) As Int
#Region NEW CHANGES in the project -----------
joEditText = edt.TextField
PaddingLeft = joEditText.RunMethod("getPaddingLeft", Null)
PaddingTop = joEditText.RunMethod("getPaddingTop", Null)
ScrollY = joEditText.RunMethod("getScrollY", Null)
Pos = joEditText.RunMethod("getSelectionStart", Null)
joLayout =...
Click to expand...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید