I have a dual-use EditControl - it is either in plain text mode or in full syntax highlighting mode. When in plain text mode I turn off syntax colouring by setting the above property to False. Works well. But going the other way does not reapply the colouring until I modify the contents of the control. Can I force a repaint/recolour? I could do this by having two controls and show/hide them but that''s more work and more controls.
ADAdministrator Syncfusion Team October 7, 2004 02:27 PM
You could do what you are seeking by modifying the SettingFile property of the Edit Control. For example in the EmbeddedIniFile sample that ships with Essential Edit you could use the following code snippet:
to toggle between the EditControl displaying KeyWords in colors specified and in plain text mode.