Search found 30 matches

by 5mware
Mon Nov 12, 2018 12:03 pm
Forum: General Discussion
Topic: CanvasGadget-based alternative to Scintilla
Replies: 9
Views: 2453

Re: CanvasGadget-based alternative to Scintilla

That part

Code: Select all

p = MemorySize(*this\org) - 5
under editor_dataset_add, has to be changed to

Code: Select all

p = MemorySize(*this\org) - 3
i have no idea why mac doesnt fire the same error. it would be make it easer to find such problems earlier.
by 5mware
Mon Nov 12, 2018 10:13 am
Forum: General Discussion
Topic: CanvasGadget-based alternative to Scintilla
Replies: 9
Views: 2453

Re: CanvasGadget-based alternative to Scintilla

now available on github

https://github.com/5m-ware/syntax-highlighting-tool-for-PureBasic


i tested it on windows xp in virtualbox, no problems, it is working. maybe it has todo with the 64bit windows release. please check the code, because i am not running windows 64bit based release. mainly i am ...
by 5mware
Sun Nov 11, 2018 3:09 pm
Forum: General Discussion
Topic: CanvasGadget-based alternative to Scintilla
Replies: 9
Views: 2453

Re: CanvasGadget-based alternative to Scintilla

; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
; Threadspezifisch, leert den Rest einer Zeile
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;

Procedure clear_current_line(*daten.struct_pure_multiline_code_editor)
Protected p.i ...
by 5mware
Sun Nov 11, 2018 3:08 pm
Forum: General Discussion
Topic: CanvasGadget-based alternative to Scintilla
Replies: 9
Views: 2453

Re: CanvasGadget-based alternative to Scintilla


; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
; Daten des Editors
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;

Structure struct_intellisence
; Das sind die CommandKeys, die zum Aufklappen der
; Intellisence-Box erkannt ...
by 5mware
Sun Nov 11, 2018 3:08 pm
Forum: General Discussion
Topic: CanvasGadget-based alternative to Scintilla
Replies: 9
Views: 2453

Re: CanvasGadget-based alternative to Scintilla


; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
; Der editor_dataset-Objekt wird verwendet, um String-Arrays zu realisieren
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;

Interface editor_dataset
add( value.s, intvalue.i = 0 ...
by 5mware
Sun Nov 11, 2018 3:07 pm
Forum: General Discussion
Topic: CanvasGadget-based alternative to Scintilla
Replies: 9
Views: 2453

Re: CanvasGadget-based alternative to Scintilla


; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
; Keyboard
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;

CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Windows
Enumeration
#pure_keycode_down = 40
#pure_keycode_up = 38 ...
by 5mware
Sun Nov 11, 2018 3:07 pm
Forum: General Discussion
Topic: CanvasGadget-based alternative to Scintilla
Replies: 9
Views: 2453

CanvasGadget-based alternative to Scintilla

Hi guys,

this is a project that is running since a while. i have openned the original thread in the german forum

http://forums.purebasic.com/german/viewtopic.php?f=3&t=31170&p=349822&sid=1a7f318c67b61d2c5bab54d58d933408#p349822

but link the same content also here.

its about the essential thing ...
by 5mware
Fri Sep 21, 2018 5:38 pm
Forum: General Discussion
Topic: Memory Allocation Question
Replies: 1
Views: 1492

Memory Allocation Question

Hi guys,

is it possible in C++ to allocate a memory-space like in PureBasic and write and read peaces of data like in PureBasic similar to the Peek* and Poke* functions?

I mean that you can write and read in the same memory block also with for sample PeekA and PeekL and PeekD and PokeB, PokeF ...
by 5mware
Fri Sep 21, 2018 5:05 pm
Forum: General Discussion
Topic: userlib on mac and linux
Replies: 5
Views: 1998

Re: userlib on mac and linux

Hi NichTheQuick,

Thank you very much for your sample. Now it's working very well.

On Linux:
gcc -c -Wall -Werror -fpic SOURCECODE.c >> Standard Output or 64Bit
gcc -m32 -c -Wall -Werror -fpic SOURCECODE.c >> 32Bit

On Mac:
gcc -dynamiclib -o LIBNAME.dylib SOURCECODE.c >> Standard Output or 64Bit ...
by 5mware
Thu Sep 20, 2018 4:01 pm
Forum: General Discussion
Topic: userlib on mac and linux
Replies: 5
Views: 1998

Re: userlib on mac and linux

hi guys,

did i asked something impossible?

)-:
by 5mware
Wed Sep 19, 2018 4:08 pm
Forum: General Discussion
Topic: Working on own alternative CodeEditorGadget like Scintilla
Replies: 8
Views: 2418

Re: Working on own alternative CodeEditorGadget like Scintil

maybe we could work together to create that control :-)

two brains could it solve maybe in shorter time!

what do you think?
by 5mware
Tue Sep 18, 2018 10:53 pm
Forum: General Discussion
Topic: Working on own alternative CodeEditorGadget like Scintilla
Replies: 8
Views: 2418

Re: Working on own alternative CodeEditorGadget like Scintil

your scrollbar is very nice :-) and really useful

the editor is interessting, but works only on windows. i try to create a control that works cross-platform.

i tested on windows, its ok, but i am not sure if it matchs my need. my control is able to detect keywords and make them automaticallly ...
by 5mware
Tue Sep 18, 2018 8:41 pm
Forum: General Discussion
Topic: Working on own alternative CodeEditorGadget like Scintilla
Replies: 8
Views: 2418

Re: Working on own alternative CodeEditorGadget like Scintil

i know that i need to optimize the thread-stuff. but this is not my main issue right now.

for the first time i need to draw the current code-line correctly also if i leave a line and enter another one.

)-:
by 5mware
Tue Sep 18, 2018 7:41 pm
Forum: General Discussion
Topic: userlib on mac and linux
Replies: 5
Views: 1998

userlib on mac and linux

hi guys,

i need a simple and clear description, maybe a small test-code, on how to create in c-language an user-lib for mac and linux.

how can i make this here to a userlib:


int getInt()
{
return 25;
}
int getAdd( int a, int b )
{
return a + b;
}


I want to test in in PB like this simple ...
by 5mware
Tue Sep 18, 2018 6:54 pm
Forum: General Discussion
Topic: Working on own alternative CodeEditorGadget like Scintilla
Replies: 8
Views: 2418

Working on own alternative CodeEditorGadget like Scintilla

hi guys,

i am working since a while on an own alternative gadget to scintilla. there is a problem on redrawing the input code while press on enter or move to the previous or next line. i need some help. i know it is a bit large code, but i think that other people would also take advantage about it ...