@NetMaestro,
Once again your divine intervention saved the day! Thank you very much.
You know, I kind of suspected that it had something to do with updating the GadgetList. I just couldn't pinpoint it. What threw me off was the fact that in 5.3 you no longer need to initialize it explicitly. So I ...
Search found 14 matches
- Thu Feb 12, 2015 6:15 pm
- Forum: Coding Questions
- Topic: Can't create a Scintilla gadget after opening a new window.
- Replies: 3
- Views: 1390
- Wed Feb 11, 2015 6:35 pm
- Forum: Coding Questions
- Topic: Can't create a Scintilla gadget after opening a new window.
- Replies: 3
- Views: 1390
Can't create a Scintilla gadget after opening a new window.
This forum might not be the right place to ask, since it'll probably be a Scintilla code problem, but begging you pardon...
I'm building a multieditor application (as many others already did) based on the Scintilla gadget. One thing I'd like to do is to open a secondary window where the user can ...
I'm building a multieditor application (as many others already did) based on the Scintilla gadget. One thing I'd like to do is to open a secondary window where the user can ...
- Wed Nov 26, 2014 3:59 pm
- Forum: Coding Questions
- Topic: parser text editor
- Replies: 11
- Views: 4440
Re: parser text editor
Have you considered using perl to handle the edits? It would be faster than trying to write a "text editor" from scratch. Or maybe a text editor like Notepad++? Some of its plugins (I'm thinking TextFx) are quite powerful.
Just a thought.
Just a thought.
- Wed Nov 26, 2014 12:43 pm
- Forum: Coding Questions
- Topic: Center a CanvasGadget point in a ScrollAreaGadget?
- Replies: 2
- Views: 1631
Re: Center a CanvasGadget point in a ScrollAreaGadget?
Hey TI,
Long time no see! I must have been... what, early 80's? :p
Thanks for the reply but that was not what I was looking for.
But it pointed out to the right solution! Times 2! I've fixed the NewObject procedure, by your suggestion and from it , I derived the answer I was looking for, in ...
Long time no see! I must have been... what, early 80's? :p
Thanks for the reply but that was not what I was looking for.
But it pointed out to the right solution! Times 2! I've fixed the NewObject procedure, by your suggestion and from it , I derived the answer I was looking for, in ...
- Tue Nov 25, 2014 10:22 pm
- Forum: Coding Questions
- Topic: Center a CanvasGadget point in a ScrollAreaGadget?
- Replies: 2
- Views: 1631
Center a CanvasGadget point in a ScrollAreaGadget?
I was playing around with a simple diagram editor and felt that it would be nice if I could have the objects being drawn in the canvas centered in the viewport window (scrollarea). After trying to understand the intrincacies of the scrollbar for a few days -- with no success, I decided to post this ...
- Sun Nov 09, 2014 2:08 pm
- Forum: Coding Questions
- Topic: Scintilla not changeable text area
- Replies: 9
- Views: 3814
Re: Scintilla not changeable text area
Eddy's solution worked fine in 64w7. Will try on UX next.
BTW, @vera, generally it's the other way around in my case: it has to work on Linux first and then on Windows
Thanks guys. The next round's on me.
Ricardo
BTW, @vera, generally it's the other way around in my case: it has to work on Linux first and then on Windows

Thanks guys. The next round's on me.
Ricardo
- Fri Nov 07, 2014 7:20 pm
- Forum: Coding Questions
- Topic: Scintilla not changeable text area
- Replies: 9
- Views: 3814
Re: Scintilla not changeable text area
Oh, yeah.
Be it known to one and all that in Scintilla we don't delete chars. We replace them! So, with a big thank you to srod for his GoSCI and tenaja for his suggestion to look it up, here's a revised version of the previous code:
EnableExplicit
InitScintilla()
#STYLE_PROTECTED = 30
Define ...
Be it known to one and all that in Scintilla we don't delete chars. We replace them! So, with a big thank you to srod for his GoSCI and tenaja for his suggestion to look it up, here's a revised version of the previous code:
EnableExplicit
InitScintilla()
#STYLE_PROTECTED = 30
Define ...
- Fri Nov 07, 2014 6:18 pm
- Forum: Coding Questions
- Topic: Scintilla not changeable text area
- Replies: 9
- Views: 3814
Re: Scintilla not changeable text area
@vacuumm
That's true. That can be done. But what about the challenge? Ultimately, this is an exercise on pushing the prosaic "envelope". And an excuse to go for more beer :)
@tenaja
Good call. That 'll be my next attempt. I don't know how to remove the CHARADDED character once it is in (couldn't ...
That's true. That can be done. But what about the challenge? Ultimately, this is an exercise on pushing the prosaic "envelope". And an excuse to go for more beer :)
@tenaja
Good call. That 'll be my next attempt. I don't know how to remove the CHARADDED character once it is in (couldn't ...
- Fri Nov 07, 2014 3:23 pm
- Forum: Coding Questions
- Topic: Scintilla not changeable text area
- Replies: 9
- Views: 3814
Scintilla not changeable text area
Hey
So I needed Scintilla to let me insert a read-only section at the start of text and lock it in place. This area would be filled later, progammatically. Maybe I could use this in a self-documenting feature or something. Or not.
Anyway, I took a peek at the #SCI_STYLESETCHANGEABLE message. In ...
So I needed Scintilla to let me insert a read-only section at the start of text and lock it in place. This area would be filled later, progammatically. Maybe I could use this in a self-documenting feature or something. Or not.
Anyway, I took a peek at the #SCI_STYLESETCHANGEABLE message. In ...
- Sun Nov 02, 2014 6:47 pm
- Forum: Coding Questions
- Topic: Cant find RightClick (TabBarGadget + Scintilla)
- Replies: 6
- Views: 2704
Re: Cant find RightClick (TabBarGadget + Scintilla)
You're right. Maybe because the inner BindGadgetEvent in UpdateTabs? Anyway, I've cleaned up the code and here is a working version of it:
XIncludeFile "TabBarGadget.pbi"
EnableExplicit
#main = 0
#tabs = 999
#sci = 1000
Procedure UpdateTabs()
Protected i, tabSel, sciNum
tabSel ...
XIncludeFile "TabBarGadget.pbi"
EnableExplicit
#main = 0
#tabs = 999
#sci = 1000
Procedure UpdateTabs()
Protected i, tabSel, sciNum
tabSel ...
- Sat Nov 01, 2014 10:27 pm
- Forum: Tricks 'n' Tips
- Topic: RSA cipher module
- Replies: 40
- Views: 23407
Re: RSA cipher module (WIP)
Interesting!
Will be following this.
Will be following this.
- Sat Nov 01, 2014 9:16 pm
- Forum: Coding Questions
- Topic: Cant find RightClick (TabBarGadget + Scintilla)
- Replies: 6
- Views: 2704
Re: Cant find RightClick (TabBarGadget + Scintilla)
@Mestnyi.
But tab events are already being trapped (right before main event loop) :
Procedure DoGadgetEvent()
Select EventType()
Case #TabBarGadget_EventType_Change
UpdateTabs()
Case #TabBarGadget_EventType_NewItem
CreateNewSci()
EndSelect
EndProcedure
OpenWindow(#main, 0, 0, 600, 700 ...
But tab events are already being trapped (right before main event loop) :
Procedure DoGadgetEvent()
Select EventType()
Case #TabBarGadget_EventType_Change
UpdateTabs()
Case #TabBarGadget_EventType_NewItem
CreateNewSci()
EndSelect
EndProcedure
OpenWindow(#main, 0, 0, 600, 700 ...
- Sat Nov 01, 2014 2:12 am
- Forum: Coding Questions
- Topic: Cant find RightClick (TabBarGadget + Scintilla)
- Replies: 6
- Views: 2704
Re: Cant find RightClick (TabBarGadget + Scintilla)
Wow!
Grazie Maestro, right on the money.
Ricardo
Grazie Maestro, right on the money.
Ricardo
- Fri Oct 31, 2014 8:32 pm
- Forum: Coding Questions
- Topic: Cant find RightClick (TabBarGadget + Scintilla)
- Replies: 6
- Views: 2704
Cant find RightClick (TabBarGadget + Scintilla)
Cheers!
I'm still trying to wrap my head around PB. So far, I am very pleased with it.
I seem to have hit a wall here though: In a multi-Scintilla scenario and a TabBarGadget as "switcher", where do I trap the RightClick event? In my app I use this event to start a spellcheck where the caret is ...
I'm still trying to wrap my head around PB. So far, I am very pleased with it.
I seem to have hit a wall here though: In a multi-Scintilla scenario and a TabBarGadget as "switcher", where do I trap the RightClick event? In my app I use this event to start a spellcheck where the caret is ...