Author Topic: PB 9 Editor Addon - Example Source  (Read 6791 times)

0 Members and 1 Guest are viewing this topic.

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • User-Rate: +30/-4
    • it-berater
PB 9 Editor Addon - Example Source
« on: March 30, 2013, 07:46:15 PM »
This is meant as an example Source code for the used technology to change a running application on the fly.
This one works closely with the old PB 9 Editor.
« Last Edit: November 14, 2013, 06:57:28 PM by Theo Gottwald »

Offline Igor Dovgunyk

  • Newbie
  • *
  • Posts: 3
  • User-Rate: +0/-0
Re: PB 9 Editor Addon - Example Source
« Reply #1 on: November 14, 2013, 01:22:50 AM »
Hi Тhео. But in fact your archive incomplete.
I offer the latest version...

Yes, it is my work. As in PB10 Bob has refused from MDI, I have stopped this work.

Offline Gary Beene

  • JK-Mitglieder
  • Jr. Member
  • *
  • Posts: 96
  • User-Rate: +3/-0
Re: PB 9 Editor Addon - Example Source
« Reply #2 on: November 14, 2013, 03:17:23 AM »
Igor,
Thank you for the updates!

Before I try out the code, I want to understand a bit more about what it does.

Would you give a brief description of how it works?

And, can I test it without messing with my PBWin9 or PBWin10 installations?

In general, I might have guessed that over the years multiple folks would have posted ways to create addons to the PowerBASIC IDE - independent of whether PowerBASIC INC supported it or not.  But I've not seen any such string of addon applications.  Can you comment on why that is?

Offline Igor Dovgunyk

  • Newbie
  • *
  • Posts: 3
  • User-Rate: +0/-0
Re: PB 9 Editor Addon - Example Source
« Reply #3 on: November 14, 2013, 09:33:24 PM »
Gary,
The idea was to add in PBdit.exe (9. X; 8. X; 7. X or PBCC.exe) new functionalities or to modify existing. I was a lot of ideas and code has taken from the SED-editor.

For testing copy PrePbEd.dll, PrePbCm.dll and PbEdit9 +.exe in the catalogue of installation PBWin9. X (in a folder "bin") and start "PbEdit9 +.exe".

PbEdit9 +.exe - creates new process PBdit.exe and loads into his address space PrePbEd.dll and PrePbCm.dll.
PrePbCm.dll - a little bit modified postprocessor from Semen Matusovski.
PrePbEd.dll - performs all other work:
   - the expanded highlight of syntax PB, and also *.rc, *.odl, *.idl;
   - updating of windows of "Search" and "Replace" (preservation and restoration of a history) is started;
   - work with projects *.spf (SED editor);
   - and many other things...
There were many ideas. The some are completely realized, the some in part.
 
The idea is certainly - interesting, but the project is constructed rather chaotically. Simply I was not going to make its public and in any way did not assume, that the project will find at one small forum and will suggest as an example for the big community...

I not the professional programmer and the given employment simply one of my hobbies. It is obvious, that for me this process of the decision of a task is more important, than result :).
« Last Edit: November 14, 2013, 09:36:21 PM by Igor Dovgunyk »

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • User-Rate: +30/-4
    • it-berater
Re: PB 9 Editor Addon - Example Source
« Reply #4 on: November 15, 2013, 07:48:09 AM »
Igor, after i got your code as sample code from somebody, i took a look and said that its an interesting coding sample that should be shared with the coding community.

Welcome here in the Forum, Igor.
If possible provide us with more samples of what you are doing.
Don't worry. Your english - while not beeing perfect - is ok.
You are welcome.

Offline Igor Dovgunyk

  • Newbie
  • *
  • Posts: 3
  • User-Rate: +0/-0
Re: PB 9 Editor Addon - Example Source
« Reply #5 on: November 16, 2013, 02:39:36 AM »
Theo, thank for the invitation.

My English - is not my English. I never studied this language, and the program - translator which I use, unfortunately, is not capable to transform correctly the structure of speech accepted for concrete language.
 Should tell, I not bad understand the English texts, but very unusual way - I read them as if they are written in German.

What can I do, if people write so many letters, and then them do not utter, or utter, but something absolutely another :( :)?

Examples of a code? Yes. I have interesting (for me :)) examples, but all of them on PB9.
For example, "class ComCollection" on pure PB9? Seems, at forums such was not.
I shall think of it...

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1039
  • User-Rate: +30/-4
    • it-berater
Re: PB 9 Editor Addon - Example Source
« Reply #6 on: November 17, 2013, 01:25:03 PM »
If you have something interesting, jst share it and we start a discussion.
PB 9 ist still welcome. You can post here in my subforum.