[Gambas-user] Editor Control (gb.qt4.ext) - Some questions.

Ian Roper ian.roper at ...1974...
Sun Feb 5 03:55:56 CET 2012


In the Editor control from  gb.qt4.ext

# Context
When reviewing text read from a file in an Editor Control.



# Highlighting
When MyEditorControl.Highlight attribute is set to 'Normal', the
'end-of-line' ( gb.crlf ) character is displayed as a musical note
symbol ?
I have tried various fonts but the symbol is the same for each font.
If you use another highlight value ( Gambas, SQL...) then the symbol is
NOT displayed.

Q: Is there any way to disable this symbol displaying in 'Normal' mode ?

# Select All
When you call the editor function to MyEditorControl.SelectAll in code,
it selects all the text lines but dose not highlight the code.
All the text is selected and you can copy to clipboard and paste as
required.
If you do this manually by using the mouse - this works ok - all text is
highlighted.
If you use the shortcut keys Ctrl-A - this works ok- all text is
highlighted.

Q: Is there a parameter I can set to highlight all the text when
'MyEditorControl.SelectAll' is actioned ?

# Wordwrap
There is no parameter I can set to 'word-wrap' text if there is no
embedded 'end-of-line' character.

Q: Is it possible to add this functionality as a standard control
parameter ?


# LineNumbering

The MyEditorControl.ShowLineNumbers functionality for Editor controls
cannot be accessed ( Read Only)
In the context Help is says: "Set this flag to display line numbers" but
it is read-only.

Q: How can you set this flag ?
Q: Is it possible to be able to set this to True/False to show line
numbers in the control ?


Regards,
Ian Roper
Perth - Western Australia.





More information about the User mailing list