That's too bad.
Another idea...
Work with the Scintilla Control and the Markers defined by PB....
You need to 'borrow' the functions from the IDE (github)
The implementation in the IDE is in the following files.
; Common.pb
; #MARKER_Marker = 22 ; line markers
;
; ScintillaHighlighting.pb ...
Search found 2251 matches: Scintilla
Searched query: +Scintilla
- Mon Sep 15, 2025 12:21 pm
- Forum: Coding Questions
- Topic: Send keystroke Ctrl+F2 to IDE
- Replies: 4
- Views: 288
- Sun Sep 07, 2025 9:38 am
- Forum: Coding Questions
- Topic: Mouse LeftClick Scintilla
- Replies: 9
- Views: 1091
Re: Mouse LeftClick Scintilla
Just what you need, thank you!
- Sun Sep 07, 2025 1:51 am
- Forum: Coding Questions
- Topic: Mouse LeftClick Scintilla
- Replies: 9
- Views: 1091
Re: Mouse LeftClick Scintilla
To turn off the default editing menu, you can set #SCI_USEPOPUP to #SC_POPUP_NEVER (or 0): https://scintilla.org/ScintillaDoc.html#SCI_USEPOPUP.
Code: Select all
ScintillaSendMessage(Gadget, #SCI_USEPOPUP, #SC_POPUP_NEVER)
- Sat Sep 06, 2025 7:55 pm
- Forum: Coding Questions
- Topic: Mouse LeftClick Scintilla
- Replies: 9
- Views: 1091
Re: Mouse LeftClick Scintilla
Everything works!
Thank's!
But when you right-click the menu comes out: cut, copy, paste, how can it be disabled in scintilla?
Thank's!
But when you right-click the menu comes out: cut, copy, paste, how can it be disabled in scintilla?
- Sat Sep 06, 2025 5:57 pm
- Forum: Coding Questions
- Topic: Mouse LeftClick Scintilla
- Replies: 9
- Views: 1091
Re: Mouse LeftClick Scintilla
macOS ...
#NSLeftMouseUp = 2
#NSRightMouseUp = 4
#NSMouseMoved = 5
#NSKeyDown = 10
#NSKeyUp = 11
#NSScrollWheel = 22
#NSAlphaShiftKeyMask = 1 << 16
#NSShiftKeyMask = 1 << 17
#NSControlKeyMask = 1 << 18
#NSAlternateKeyMask = 1 << 19
#NSCommandKeyMask = 1 << 20
EnableExplicit
Global ...
#NSLeftMouseUp = 2
#NSRightMouseUp = 4
#NSMouseMoved = 5
#NSKeyDown = 10
#NSKeyUp = 11
#NSScrollWheel = 22
#NSAlphaShiftKeyMask = 1 << 16
#NSShiftKeyMask = 1 << 17
#NSControlKeyMask = 1 << 18
#NSAlternateKeyMask = 1 << 19
#NSCommandKeyMask = 1 << 20
EnableExplicit
Global ...
- Fri Aug 29, 2025 5:22 pm
- Forum: Coding Questions
- Topic: Get a line of text using Scintilla
- Replies: 5
- Views: 565
Re: Get a line of text using Scintilla
https://azjio.narod.ru/PureBasic/pb_user/userfunctions/SCI_GETTEXT.htm
Procedure.s GetScintillaGadgetText()
Protected txtLen, *mem, text$
txtLen = ScintillaSendMessage(#SciGadget, #SCI_GETLENGTH) ; получает длину текста в байтах
*mem = AllocateMemory(txtLen + 2) ; Выделяем память на длину текста ...
Procedure.s GetScintillaGadgetText()
Protected txtLen, *mem, text$
txtLen = ScintillaSendMessage(#SciGadget, #SCI_GETLENGTH) ; получает длину текста в байтах
*mem = AllocateMemory(txtLen + 2) ; Выделяем память на длину текста ...
- Fri Aug 29, 2025 4:59 pm
- Forum: Coding Questions
- Topic: Get a line of text using Scintilla
- Replies: 5
- Views: 565
Re: Get a line of text using Scintilla
Thank you for the code on Get a line of text using Scintilla, it works fine.
- Thu Aug 28, 2025 3:30 pm
- Forum: Coding Questions
- Topic: Get a line of text using Scintilla
- Replies: 5
- Views: 565
Re: Get a line of text using Scintilla
If OpenWindow(0, 0, 0, 330, 120, "ScintillaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ScintillaGadget(0, 5, 5, 320, 80, 0)
*Text = UTF8("This is a simple ScintillaGadget with text..." + #LF$ + "More text" + #LF$ + "Even more text!")
ScintillaSendMessage(0, #SCI_SETTEXT, 0 ...
- Thu Aug 28, 2025 3:18 pm
- Forum: Coding Questions
- Topic: Get a line of text using Scintilla
- Replies: 5
- Views: 565
- Thu Aug 28, 2025 3:06 pm
- Forum: Coding Questions
- Topic: Get a line of text using Scintilla
- Replies: 5
- Views: 565
Re: Get a line of text using Scintilla
Could you please be more specific with your request?
Otherwise, the answer can only be yes.
Sorry, but maybe I just don't understand.
Otherwise, the answer can only be yes.
Sorry, but maybe I just don't understand.
- Thu Aug 28, 2025 1:48 pm
- Forum: Coding Questions
- Topic: Get a line of text using Scintilla
- Replies: 5
- Views: 565
Get a line of text using Scintilla
Is there a way to get a line of text at the cursor position within an edit window and put that line into a string using Scintilla. I would be grateful for any help.
- Fri Aug 15, 2025 4:28 pm
- Forum: The PureBasic Editor
- Topic: IDE External Tools and variables PB_TOOL_XXXXX [resolved]
- Replies: 5
- Views: 425
IDE External Tools and variables PB_TOOL_XXXXX [resolved]
... au mot-clef %WORD pour la ligne de commande
PB_TOOL_MainWindow - Identifiant système (Handle) de la fenêtre principale de l'IDE
PB_TOOL_Scintilla - Identifiant système (Handle) du composant d'édition de code Scintilla pour le source en cours
but I don't get any back by doing it
If ...
PB_TOOL_MainWindow - Identifiant système (Handle) de la fenêtre principale de l'IDE
PB_TOOL_Scintilla - Identifiant système (Handle) du composant d'édition de code Scintilla pour le source en cours
but I don't get any back by doing it
If ...
- Sun Aug 03, 2025 9:33 pm
- Forum: Coding Questions
- Topic: [SOLVED] Knowing When Text Changed
- Replies: 8
- Views: 345
- Fri Aug 01, 2025 6:40 pm
- Forum: The PureBasic Editor
- Topic: anyone using VsCode with Purebasic?
- Replies: 12
- Views: 1027
Re: anyone using VsCode with Purebasic?
... and highlighting lines with errors.
4. There are many tools written for the IDE, but they may not be compatible with your editor because they use Scintilla.
A javascript example for searching for an icon and the name of an exe file
function ExeFindSource(pFile, pExt) {
var pTmp = AkelPad.ReadFile ...
4. There are many tools written for the IDE, but they may not be compatible with your editor because they use Scintilla.
A javascript example for searching for an icon and the name of an exe file
function ExeFindSource(pFile, pExt) {
var pTmp = AkelPad.ReadFile ...
- Sun Jul 27, 2025 3:39 pm
- Forum: Applications - Feedback and Discussion
- Topic: GlobalAutoCompletion (Linux (?))
- Replies: 14
- Views: 12230
Re: GlobalAutoCompletion (Linux (?))
Talking about """autocompletion""":
In PB (scintilla) the best "text expander" is the one that lets you see the autocompletion popup after expanding text…
…but you can use another text editor like TextMate (as an IDE tool) for GREAT completions, and even get fuzzy completions directly in PB, if you ...
In PB (scintilla) the best "text expander" is the one that lets you see the autocompletion popup after expanding text…
…but you can use another text editor like TextMate (as an IDE tool) for GREAT completions, and even get fuzzy completions directly in PB, if you ...