Tenare Posted November 13, 2023 Share Posted November 13, 2023 Hello! How to turn off the display of line numbers in the UniSyntaxEdit component? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2023 Share Posted November 13, 2023 Hello @Tenare I will try to check. Quote Link to comment Share on other sites More sharing options...
55143681 Posted November 13, 2023 Share Posted November 13, 2023 2 hours ago, Sherzod said: Hello @Tenare I will try to check. what is the different between UniSyntaxEdit and UniEdit??? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2023 Share Posted November 13, 2023 4 hours ago, Tenare said: How to turn off the display of line numbers in the UniSyntaxEdit component? One possible solution: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniSyntaxEdit1.JSInterface.JSConfig('hideLineNumbers', [True]); UniSyntaxEdit1.JSInterface.JSAddListener('afterrender', 'function(me){Ext.defer(function(){if (me.codeEditor && me.hideLineNumbers) {me.codeEditor.setLineNumbers(!me.hideLineNumbers)}}, 500)}'); end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2023 Share Posted November 13, 2023 2 hours ago, 55143681 said: what is the different between UniSyntaxEdit and UniEdit??? UniSyntaxEdit is based on CodeMirror 0.8 UniSyntaxEditEx is based on CodeMirror 5.25 ... Quote Link to comment Share on other sites More sharing options...
Tenare Posted November 13, 2023 Author Share Posted November 13, 2023 2 hours ago, Sherzod said: One possible solution: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniSyntaxEdit1.JSInterface.JSConfig('hideLineNumbers', [True]); UniSyntaxEdit1.JSInterface.JSAddListener('afterrender', 'function(me){Ext.defer(function(){if (me.codeEditor && me.hideLineNumbers) {me.codeEditor.setLineNumbers(!me.hideLineNumbers)}}, 500)}'); end; Thank you, Sherzod Your solution works great. Quote Link to comment Share on other sites More sharing options...
Tenare Posted November 13, 2023 Author Share Posted November 13, 2023 Thank you, Sherzod Your solution works great. 1 Quote Link to comment Share on other sites More sharing options...
55143681 Posted November 14, 2023 Share Posted November 14, 2023 11 hours ago, Sherzod said: UniSyntaxEdit is based on CodeMirror 0.8 UniSyntaxEditEx is based on CodeMirror 5.25 ... I use UniEdit in all my project, I don't know what new in UniSyntaxEdit and UniSyntaxEditEx? Is there some new function with the *Syntax* controls? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 14, 2023 Share Posted November 14, 2023 8 hours ago, 55143681 said: I don't know what new in UniSyntaxEdit and UniSyntaxEditEx? Is there some new function with the *Syntax* controls? See this example: \FMSoft\Framework\uniGUI\Demos\Desktop\URLFrame(HTML) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.