Defining the custom rich text editor control.
定义定制的富文本编辑器控件。
Create the control file in a text editor by modifying the template in Listing 1.
通过修改清单1中的模板,在文本编辑器中创建控制文件。
Figure 6 shows use of this control to add select, cut, copy, and paste functions to the text editor of Figure 5.
图6显示了如何使用此控件将选择、剪切、复制和粘贴功能添加到图5的文本编辑器中。
If you choose a color in this control, the text in the Editor applet appears in that color.
如果您在控件中选择了颜色,Editorapplet中的文本会显示所选的颜色。
Finally, press Control-O followed by Control-X. That will save the file and exit the text editor.
最后,按下Control - o,其次是Control - X.文件会被保存且会推出编辑器。
Adds the message handler to the selected class or object, and then opens the text editor to the new function so you can add the control notification handler code.
向选定的类或对象添加消息处理程序,然后以新函数打开文本编辑器,以便可以添加控件通知处理程序代码。
Adds the message handler to the selected class or object, and then opens the text editor to the new function so you can add the control notification handler code.
向选定的类或对象添加消息处理程序,然后以新函数打开文本编辑器,以便可以添加控件通知处理程序代码。
应用推荐