I often need to compare code of different projects.
To do this I open two instances of jaPBe.
If I'm not carefull I edit the wrong window.
Is it possible to add a 'ReadOnly' button to the toolbar of jaPBe to make this 'source' instance of jaPBe temporarily read only* and give it a different color. And, if possible, hide the menu + hide all toolbar buttons except the 'ReadOnly'.
Salut Gnozal, je commence en français, ce sera plus simple (sorry i start in french, will be more easy to explain, see english more down)
Plutôt qu'un long discourt le phénomène point par point, j'ai enfin trouvé le moyen de répéter ce bug.
- Tu ouvres jaPBe
- tu tapes i
- tu tapes f
- une liste déroulante te propose plein de truc pour l'autocomplétion
- tu tapes "Echap"
- tu attends un moment
- le if se mets en forme tout seul (pourquoi pas) mais le curseur qui était à la fin du if se retrouve au début du if, donc si je continue de taper mon texte, au lieu d'écrire "if x = 1", j'écris " x = 1if", bof quoi
J'ai ce problème régulièment quand je code, après un copier coller pour remplacer une partie d'une constante, quand j'écris sans utiliser l'autocomplétion, etc ...
C'est assez pénible car je commence une grosse ligne, et quand je relève la tête pour voir ce que j'ai tapé, c'est tout en vrac.
Merci
So, in english
to explain, just simulate this :
- open jaPBe
- push i
- push f
- autocompletion window opens
- push "escape"
- wait a little
- "if" take color but cursor change position, now cursor is before "if"
- so if i continue to write, for example, i want write "if x = 1", i obtain " x = 1if".
I have reported something similar to this before. I have had this happen to me as well but could not reproduce it reliably.
@Le Soldat Inconnu: From your example I can now reliably reproduce this. For me it involved using the delete key. Here are two ways to demonstrate this:
1. In a new document or on a new line of a document, press Delete once then type 'debug' without the quotes.
2. Start a new word by typing 'end' and then press Delete.
Not all functions / constants are supported by the context sensitive auto-completion (when you hit the '#' key) ; I add these functions by hand, mostly for the functions I use.
However, they should be listed by the 'standard' auto-completion feature (when some characters are already typed, depending on the 'Autocompletion minimum char' setting) if 'Load constants from residents' is enabled in Preferences : with 'standard' auto-completion, it get 9 #PB_2D_* constants listed when I type '#PB_2'.
#PB_Window_Tool is listed in build 817.
I have added DrawingMode() context sensitive auto-completion in build 818.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).