Author Topic: A little brother of OxIde  (Read 28022 times)

0 Members and 2 Guests are viewing this topic.

Aurel

  • Guest
Re: A little brother of OxIde
« Reply #75 on: June 02, 2017, 09:45:57 AM »
aha ...so we can use VB,PowerBasic and some other syntax
that is fine but i prefer old way..
ok ..that is good for translation from let say VB to o2
Charles
i really dont have a clue why o2 react on this way on word basic under comment
it looks to me that words are not ignored after sign '
is that the problem ?

Charles Pegge

  • Guest
Re: A little brother of OxIde
« Reply #76 on: June 02, 2017, 10:03:47 AM »
My copy of AurelEdit does not have this problem with 'basic

The only circumstance where ' is not a comment

Code: [Select]
int a=43
select a
case '+' : print chr(a) 'print "+"
case '-' : print chr(a)
end select


« Last Edit: June 02, 2017, 12:48:22 PM by Charles Pegge »

Arnold

  • Guest
Re: A little brother of OxIde
« Reply #77 on: June 27, 2017, 08:40:04 AM »
The last two months I was incredibly lazy using my computer, but I got much distracted by the incidents which happen. During my working life I was not really aware of this extent of chaos in the world.

Version A43 introduced true=-1 / false=0. This makes some modifications necessary for O2HEdit.o2bas / O2HEdit.inc. I mentioned these changes in reply #44.

Although I have added some more features to my little editor project I will first of all adapt the code to the latest version of A43 and use some of the new advanced functions.

Roland

Aurel

  • Guest
Re: A little brother of OxIde
« Reply #78 on: June 30, 2017, 01:06:02 AM »
Quote
some of the new advanced functions.
which are ?...are they in log file ?
ok

hmm i have a lot of troubles and seems to me that I must do complete reconstruction
of awinh.inc
grrrr.....  >:(

 :D

Arnold

  • Guest
Re: A little brother of OxIde
« Reply #79 on: December 20, 2017, 08:15:27 AM »
Hello,

after a short break I added some small changes to the little editor project. I hopefully reduced the flickering when resizing the editor's window. Also added turning on/off wordwrap, line numbers and monospaced view.

The app should run anywhere on disk or usb stick. It depends on the special SciLexer.dll which is provided with Oxygenbasic otherwise syntax highlighting will not work. The app depends also on colorschemes.bin and keywordlists.bin which are two text files. Colorschemes.bin can be used to define own colorscheme 4 + 5. Keywordlists.bin contains the keywords for Oxygenbasic, WinApi and ASM keyords. Without this file syntax highlighting will not work. Most probably it must be adapted.

The attached zip file only contains the executable without source code because I think the code must be adapted after the forthcoming release of Oxygenbasic. I also would like to add some more items to the project.

Maybe I will get some feedback? Although I did some tests, I am still not sure if everything will work as expected.

Roland
« Last Edit: December 21, 2017, 04:05:04 PM by Arnold »

Arnold

  • Guest
Re: A little brother of OxIde
« Reply #80 on: December 21, 2017, 04:07:19 PM »
Wow! This is so embarrassing. When I edited the .rc resource file I deleted by mistake a ctrl mark in the accelerator table. This led to a mistake in the find / replace dialog and I did not realize this. Shame on me.

I attached the corrected executable. Find / Replace should work ok now. Replace All does not work in all cases but I have not yet found out the reason for this misbehaviour.

Roland

.

edcronos

  • Guest
Re: A little brother of OxIde
« Reply #81 on: June 04, 2018, 06:21:13 AM »
Hello
how is progress with your editor for O2 going?
Where can I download to test?

Arnold

  • Guest
Re: A little brother of OxIde
« Reply #82 on: June 08, 2018, 12:37:42 AM »
Hi Eduardo,

O2Hedit is experimental code and based on OxIde. OxIde has different and some more advanced features. There are some small bugs in O2Hedit which I need to fix. I will have to adapt the code to the latest version of O2 and would like to use some in-memory dialogs. But right now I am a bit lazy. I will do that later.

Roland
« Last Edit: June 08, 2018, 10:34:56 PM by Arnold »

JRS

  • Guest
Re: A little brother of OxIde
« Reply #83 on: June 08, 2018, 02:56:05 AM »
Don't forget about Aurel's O2 IDE efforts.

Aurel

  • Guest
Re: A little brother of OxIde
« Reply #84 on: June 10, 2018, 05:39:27 AM »
Yo John
I forgot that i must post latest code for Aurel Edit..
 ::)

Aurel

  • Guest
Re: A little brother of OxIde
« Reply #85 on: November 04, 2018, 11:04:26 PM »
Hi Arnold
After all that mumbo -kumbo with find/replace/replace
Do you have working  version ?

Aurel

Aurel

  • Guest
Re: A little brother of OxIde
« Reply #86 on: April 20, 2019, 04:10:37 AM »
Hi Arnold / Roland 

What is the status of your editor?
Do u use it with o2 programming ...

Arnold

  • Guest
Re: A little brother of OxIde
« Reply #87 on: April 21, 2019, 08:12:23 AM »
Hi Zlatko,

in this project, I wanted to learn about the Scintilla edit control and its options, and I know I just touched the basics. I did not look at the code for some time now, Oxygenbasic has changed a little bit since then and I suppose the code would not compile correctly at the moment.

The idea was to create the controls of the app with a resource editor, create a .dll and work out the functions in the main code which would use the resources of the dll file. With a small modification the resources can also be linked directly with LinkRes2Exe (an indeed great app) to the final .exe file.

O2HEdit is based on Oxide, yet Oxide has still some more options. In fact I was interested to learn more about the brilliant ways which Charles applied for using macros and I tried to use the provided Oxygen / Oxide library functions as much as possible. In the meantime I think I could use even more functions.

For my projects I do not use O2HEdit. I am using PSPad, which I have set up to syntax highlight and run apps with Oxygen. But there are other editors which could be used for this purpose too like Scite, Notepad++, Notepad2 etc. These editors can achieve a lot more than my little O2HEdit project. There are also great IDEs like CSED, FBIde or FBEdit that could be customized for Oxygenbasic, if anyone would be interested and if this is allowed at all.

If you downloaded the code of O2HEdit and would like to apply some of the functions with your AsciEdit project, there is no problem; this is code derived from WinApi examples which I found at several places in Internet. I can upload the files of the O2HEdit project once again, but then I have to adapt it to the latest version of Oxygenbasic first. There are at least two problems which must also be examined: changing the config file does not always work correctly, I have to do this manually, and sometimes there is a problem with the "replace all" option.

Roland

Aurel

  • Guest
Re: A little brother of OxIde
« Reply #88 on: April 21, 2019, 08:34:38 AM »
Hi Arnold
Thanks for replay and explanation..
PSPad ..you say ..well ok if you are used to this one.
For start o2Hedit is not bad editor at all for such a small size.
And is written with Oxygen Basic...
some of editors you said about for FreeBasic are not written in FreeBasic...hmmm
Yes AsciEdit was old version of  AurelEdit which is completely written in o2 and win api + scintilla
i prefer to use editors i made and  so all my programming with Oxygen basic is with AurelEdit
and with my older OxyEdit
i know they are not advanced and can be improved but for my needs are fine. :)

Aurel

  • Guest
Re: A little brother of OxIde
« Reply #89 on: December 19, 2019, 09:13:55 AM »
hello Roland
I want to add config to my editor then i look into your again
and i found only LoadConfig() routine ..
It looks complex even i understand some parts( not easy to get it what is what in someone else code)
so you basically save config as string then parse this string...is that right?

but where is SaveConfig?

thanks
« Last Edit: December 20, 2019, 09:47:12 AM by Aurel »