richedit

How to get text with RTF format from Rich Edit Win API?

北城以北 提交于 2019-11-30 15:51:49
问题 (Sorry for my crazy English) I want to get all the text in Rich Edit with RTF format, not plain text to a variable. I tried SendMessage() with EM_STREAMOUT to write directly Rich Edit to file, but I can't save the content to specific variables, for example LPWSTR. Please remember, only Win API, not MFC. Thanks for you help! 回答1: You can pass your variable to the EM_STREAMOUT callback so it can be updated as needed, eg: DWORD CALLBACK EditStreamOutCallback(DWORD_PTR dwCookie, LPBYTE pbBuff,

Detect click on URL in RichEdit

谁说我不能喝 提交于 2019-11-30 14:52:49
I am trying to update RichEdit so that it detects URL and enables clicking on it to open in the browser. Detecting URL is easy, I just use the following code from http://www.scalabium.com/faq/dct0146.htm mask := SendMessage(MNote.Handle, EM_GETEVENTMASK, 0, 0); SendMessage(MNote.Handle, EM_SETEVENTMASK, 0, mask or ENM_LINK); SendMessage(MNote.Handle, EM_AUTOURLDETECT, Integer(True), 0); but the second part doesn't work for me. They give the following code to capture EN_LINK message and processing it: type TForm1 = class(TForm) protected procedure WndProc(var Message: TMessage); override; end;

Detect click on URL in RichEdit

本小妞迷上赌 提交于 2019-11-29 22:13:32
问题 I am trying to update RichEdit so that it detects URL and enables clicking on it to open in the browser. Detecting URL is easy, I just use the following code from http://www.scalabium.com/faq/dct0146.htm mask := SendMessage(MNote.Handle, EM_GETEVENTMASK, 0, 0); SendMessage(MNote.Handle, EM_SETEVENTMASK, 0, mask or ENM_LINK); SendMessage(MNote.Handle, EM_AUTOURLDETECT, Integer(True), 0); but the second part doesn't work for me. They give the following code to capture EN_LINK message and

Iterate Over Struct; Easily Display Struct Fields And Values In a RichEdit Box

让人想犯罪 __ 提交于 2019-11-28 18:55:27
Is there an easier way to display the struct fields and their corresponding values in RichEdit control? This is what I am doing now: AnsiString s; s = IntToStr(wfc.fontColor); RichEdit1->Lines->Append(s); etc... Is there an easier way than having to individually call each one? I want to read a binary file and then display the corresponding structure in a RichEdit control for a small utility I am building and have found no other way. I know how to read binary files and read the values into the struct already. BOOST_FUSION_ADAPT_STRUCT seems to fit well here. For example: // Your existing struct

DevExpress v18.1新版亮点——WPF篇(四)

做~自己de王妃 提交于 2019-11-27 13:55:46
用户界面套包DevExpress v18.1日前终于正式发布,本站将以连载的形式为大家介绍各版本新增内容。本文将介绍了DevExpress WPF v18.1 的新功能,快来下载试用新版本! 点击下载>> MVVM Framework 全新的Expression Evaluation Engine 在此版本中,DXBinding,DXEvent和DXCommand扩展默认使用新的expression evaluation engine。现在,表达式的初始化速度提高了2倍。新的Expression Evaluation Engine提供了以下功能: 动态输入 比较或返回值不需要转换 能使用'new'运算符创建对象 能使用DXCommand和DXEvent中的equals(=)运算符分配值 Pivot Grid Control 性能增强 新版本继续改进Pivot Grid的内存数据处理。现在,Optimized Mode中的pivot grid处理以下功能: Drill-Down 无约束表达式 轻量级模板 在新版本中,DevExpress WPF Pivot Grid默认使用单元格和标题的轻量级模板。轻量级模板简化了Pivot Grid的可视化树,从而改善了网格的加载、滚动等。 Ribbon and Toolbars Ribbon Control - 简化标记

DevExpress v18.1新版亮点——WinForms篇(六)

为君一笑 提交于 2019-11-27 13:55:37
用户界面套包DevExpress v18.1日前终于正式发布,本站将以连载的形式为大家介绍各版本新增内容。本文将介绍了DevExpress WinForms v18.1 的新功能,快来下载试用新版本! 点击下载>> Rich Text Editor Microsoft Word Inspired Formatting and Layout 新版本投入了大量的资源改进用于WinForms、WPF和Word Processing文件API的DevExpress Rich Edit控件呈现文档的方式。在显示、打印和导出文档时,增强了布局和格式的准确性,DPI设置也不再是问题。 Checkbox Form Fields 通过新版本,WinForms和WPF Rich Text Editors可以使用复选框加载文档。 最终用户可以切换复选框状态、保存、打印或导出结果。 其他增强功能 自动文档格式识别 在新版本中,如果文档是通过编程方式从文件或流中加载的,DevExpress RichEditControl将根据其内容自动识别文档的格式。 Print API WinForms RichEditControl现在包含'Print'方法,允许您使用默认或自定义打印机设置打印文档。 Scheduler Control 新的存储机制

Are there any good TDD tools or resources for VB6?

本秂侑毒 提交于 2019-11-27 07:41:59
Yea i know i'm way behind times but what i've got here is a antique VB6 editor app which i believe that no one will be upgrading to .NET soon. It uses a couple of third party DLLs tools and as it's still using the good old RichEdit control i basically can raise my own Bug farm with just this tool alone. So enough is enough and i'm trying to see if i can use TDD so i can start writing unit test for each behavior/feature that i need to fix, so sooner or later i can have a complete regression test suite for this tool. And even in the future if we do upgrade to .NET i think most of the tests that

Are there any good TDD tools or resources for VB6?

爷,独闯天下 提交于 2019-11-27 03:59:46
问题 Yea i know i'm way behind times but what i've got here is a antique VB6 editor app which i believe that no one will be upgrading to .NET soon. It uses a couple of third party DLLs tools and as it's still using the good old RichEdit control i basically can raise my own Bug farm with just this tool alone. So enough is enough and i'm trying to see if i can use TDD so i can start writing unit test for each behavior/feature that i need to fix, so sooner or later i can have a complete regression

Implementing a rich text editor in Android?

强颜欢笑 提交于 2019-11-26 19:32:32
I am wondering if there are any good options to implement a rich text editor in Android. Please note I am talking about a rich text editor that can be used in an Android application, not the one embedded in a web page using HTML and Javascript. My requirements are: Basic formatting (color, fonts, highlight, bold, italic, underline, etc.) Hyperlinks Inline images Bullet lists and numbered lists Inline table (only the contents inside a cell is editable, not the table structure) As you can see, this is pretty much something quite similar to a typical RichEdit control on Windows. Here are some

Implementing a rich text editor in Android?

安稳与你 提交于 2019-11-26 06:59:46
问题 I am wondering if there are any good options to implement a rich text editor in Android. Please note I am talking about a rich text editor that can be used in an Android application, not the one embedded in a web page using HTML and Javascript. My requirements are: Basic formatting (color, fonts, highlight, bold, italic, underline, etc.) Hyperlinks Inline images Bullet lists and numbered lists Inline table (only the contents inside a cell is editable, not the table structure) As you can see,