B4X FEED SMMRichTextEditor

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: SMMRichTextEditor است. این موضوع تا کنون 73 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع SMMRichTextEditor
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
73
پسندها
0
آخرین ارسال توسط PracticalSoft
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.

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...



 

عقب
بالا