syntax highlighting weakness

Working on new editor enhancements?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eddy.

Add this in callback wincallback fuunction

Code: Select all

If *MSGFilter\msg = #WM_LBUTTONDOWN        
          Virtualkey = *MSGFilter\wParam         
                    
          If Virtualkey  = #MK_LBUTTON
            SyntaxHighlighting()
            UpdateProcedureList()           
          EndIf
Otherwise hightlighting does not work when you move your selection with mouse.

Armageddon command : Format All +S +Pain \now
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Thanks !

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> If Virtualkey = #MK_LBUTTON

Should this be #VK_LBUTTON instead of #MK_LBUTTON?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

It doenn't matter, they have both the same value.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eddy.

ARGHHH !!!
I've strange bug with syntaxhighlighting .... (text is scrolling when I click)
Perhaps because it change the selection....

Tell me if you have the same bug
I don't know how to debug


Armageddon command : Format All +S +Pain \now
Post Reply