B4X FEED Undo Redo

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Undo Redo است. این موضوع تا کنون 17 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Undo Redo
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
17
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
I tried to implement two buttons with Undo Redo functionality to step backwards and forward in a textarea control.
As well as with the codearea library. By using jAWTRobot library v1.61 and setting focus to the control while performing

Works:
undoredo:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید

Undo works on my system (Windows 10 running on an Intel i7 CPU, but ctrl_y does not work in jAWTRobot library.
The default manual keys ctrl+z and ctrl+y works as it should in Windows 10. But my "hack" is not a preffered method.
That's why I am reaching out to get help with this, and perhaps Reflector library could be better for such tasks.

So to sum this up I want the users to be able to step back and forth between code using buttons that sets focus on the textarea and gets the job done.
Let me add that I have tried the solution below but that only highlighted where the cursor is from the default ctrl key on Windows 10.

Does not work:

hack:

txtAreaDocs.RequestFocus...



 

عقب
بالا