Recent

Author Topic: I implemented the undo/redo functions of TMemo, and I'm happy to share it  (Read 16766 times)

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #15 on: November 28, 2017, 07:47:47 am »
Thank you Mr.Paul, yes, SynEdit can display Chinese, but can not enter Chinese, my input method can not be activated at all, can you input Chinese using the input method?
Of course! Below is a screenshot of my entry into Chinese at win10 to Lazarus.
The question you said "can not type Chinese," that was many years ago, I remember many years passed in Lazarus version 0.9. I am so sympathetic to you…… :-[
Tell me your operating system, Win10? MacOS?
(别哭哥们!好日子就要来啦!)
哇,太棒了,看到中文输入了,怎么做到的?只能在 Win10 中吗?我用的是 Linux Mint Mate 64-bit + Lazarus 1.8.0 RC4 GTK2,我试过仓颉输入法,也是一个不错的输入法,但是在 lazarus 中用不了,输入英文都成问题,会出现重字,在其它软件中可以正常使用,换成搜狗输入法可以正常输入英文,但无法输入中文。你能解决这个问题吗?如果可以,那真是太感谢了!

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #16 on: November 28, 2017, 07:55:23 am »
tomitomy, your work deserves a appropriated repo... like github.... why not?
I don't understand, what is appropriated repo ?

I have an account "TomiTomy" in Github, with a program I wrote in it.

My English is not good, I do not know how to use Github, I just simply upload and download in Github.

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #17 on: November 28, 2017, 09:08:32 am »
You should also put a link and some screenshot here:
http://wiki.freepascal.org/Lazarus_Application_Gallery

Your program is great, unfortunately I can't try it now because I do not use trunk. Hope Lazarus 1.8.0 will be release soon.

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #18 on: November 28, 2017, 09:38:36 am »
You should also put a link and some screenshot here:
http://wiki.freepascal.org/Lazarus_Application_Gallery

Your program is great, unfortunately I can't try it now because I do not use trunk. Hope Lazarus 1.8.0 will be release soon.

Good afternoon, Handoko, do you mean TomiNote? That's a good idea, but it's still in beta now, and I'm currently patching some bugs, I want to wait for the program is stable and then publish it. :)

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #19 on: November 28, 2017, 10:03:46 am »
Yes, TomiNote. It has a powerful undo/redo system. I like it.

I wrote myself SideNote - a trayicon program. It focuses on easy handling and managing notes, I have hundreds of notes. It's editor uses TSynEdit and working good so far. Unfortunately it only has very basic undo system. Yours is great, it inspires me to improve mine's undo/redo system.

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #20 on: November 28, 2017, 10:16:50 am »
Thank you, Handoko, your program is also great, small and practical, handy software is the best.

Mr.Paul

  • New Member
  • *
  • Posts: 29
  • 一次编写,到处编译
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #21 on: November 29, 2017, 03:56:13 am »
Thank you Mr.Paul, yes, SynEdit can display Chinese, but can not enter Chinese, my input method can not be activated at all, can you input Chinese using the input method?
哇,太棒了,看到中文输入了,怎么做到的?只能在 Win10 中吗?我用的是 Linux Mint Mate 64-bit + Lazarus 1.8.0 RC4 GTK2,我试过仓颉输入法,也是一个不错的输入法,但是在 lazarus 中用不了,输入英文都成问题,会出现重字,在其它软件中可以正常使用,换成搜狗输入法可以正常输入英文,但无法输入中文……
I guess the problem is not IME, but in Linux.
我现在手头没有Linux Mint Mate,甚至连一个Linux都没有,但可以给你提供一个成功的例子:ubuntu 12.04 + Lazarus deb (官网下载deb包,3个)。当时我编译的时候,中文环境是ubuntu默认的(LANG=zh_CN.UTF8  输入法是fcitx)。哥们别着急,理清思路,肯定能解决的。 :)

Mr.Paul

  • New Member
  • *
  • Posts: 29
  • 一次编写,到处编译
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #22 on: November 29, 2017, 04:03:31 am »
Excuse me, has your work SideNote been released?  I did not find in Lazarus_Application_Gallery ...
I wrote myself SideNote - a trayicon program. It focuses on easy handling and managing notes, I have hundreds of notes. It's editor uses TSynEdit and working good so far. Unfortunately it only has very basic undo system. Yours is great, it inspires me to improve mine's undo/redo system.

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #23 on: November 29, 2017, 06:35:27 am »
I guess the problem is not IME, but in Linux.

I think it is the problem of SynEdit, it does not accept Chinese input method, the other controls are accepted Chinese input method.

我感觉是 SynEdit 的问题,它不接受中文输入法,其它控件都接受中文输入法。


Mr.Paul

  • New Member
  • *
  • Posts: 29
  • 一次编写,到处编译
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #24 on: December 04, 2017, 12:24:44 pm »
I think it is the problem of SynEdit, it does not accept Chinese input method, the other controls are accepted Chinese input method.
我感觉是 SynEdit 的问题,它不接受中文输入法,其它控件都接受中文输入法。
I underestimated this issue, SynEdit can not call IME (input method) under Linux, this is a long history, a serious bug. >:D

These days, I set up two Linux distributions and installed Lazaurs, confirming what you said about SynEdit's inability to type Chinese. The environment is: ubuntu desktop 16.04.3, Dellpin Linux 15.5, both environments will fail to call the Fctix IME or ibus IME in the Lazaru Code Editor.

Since Lazarus uses SynEdit, his bug is Lazarus's bug, and the history of SynEdit can be found on the FPC official wiki.  http://wiki.freepascal.org/SynEdit
(我低估了这个问题,SynEdit在Linux下不能调用输入法,这是一个历史悠久的、严重bug。哥们别灰心,咱们再努力)

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #25 on: December 04, 2017, 12:50:55 pm »
Thank you for your test and help, I do not know what I can do, my ability is poor, I can not read SynEdit's code. :-[

Thaddy

  • Hero Member
  • *****
  • Posts: 14209
  • Probably until I exterminate Putin.
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #26 on: December 04, 2017, 04:09:07 pm »
If I understand correctly, we need simply an overlayed TEdit within Synedit to support IME input?
Specialize a type, not a var.

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #27 on: December 04, 2017, 04:24:42 pm »
If I understand correctly, we need simply an overlayed TEdit within Synedit to support IME input?

Thank you, Thaddy, can it be implemented? If can, that's really great! :)

tomitomy

  • Sr. Member
  • ****
  • Posts: 251
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #28 on: December 16, 2017, 08:35:17 am »
I modified the code and fixed some bugs, the demo is in the attachment.

Mr.Paul

  • New Member
  • *
  • Posts: 29
  • 一次编写,到处编译
Re: I implemented the undo/redo functions of TMemo, and I'm happy to share it
« Reply #29 on: January 09, 2018, 06:04:39 pm »
Good things, your comments write great!  :D(中文注释,哈哈)

I downloaded TomiNote v1.0 from github and compiled it successfully under win10-x64.

I modified the code and fixed some bugs, the demo is in the attachment.

 

TinyPortal © 2005-2018