Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Will anyone help me make a syntax command?

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 4th Aug 2007 18:16
Okay I know the question I am asking will probably get flamed and I will end up not getting anyone to help me, but it is worth a try.
Will anyone help me make a DLL in Dev C++ that is called,



Basically it highlights the word that is in the word string.

Anyone that will help it is deeply appreciated.

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 4th Aug 2007 18:37
If I my offer some advice. You really need to write more in depth and coherent posts to get help from people.

Quote: "Basically it highlights the word that is in the word string. "


This does not make any sense.

I imagine you mean that there should be 2 arguments, the whole sentence and the word that you need highlighting?

Syntax(wordToFind$, wholeSentence$)

But now, what happens? Internally the dll has done it's own thing, but what do you want back?

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 4th Aug 2007 18:49
Well you know how people want DBP to do Syntax Highlighting for text boxes? Well that is what I want. I want DBP to highlight the word that you type here,

Syntax(word$)

is that good?

Don't let him fool you, this avatar is constipated.....
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th Aug 2007 19:04
Not really. Maybe you can show us how you expect to use this command in a piece of code that already does everything you want except 'highlight' - we may understand what you are trying to do then.

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 4th Aug 2007 21:32
Okay here,



Don't let him fool you, this avatar is constipated.....
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 4th Aug 2007 22:09
ahhh, did you mention the fact that you were using blue gui anywhere?

You don't need a dll to accomplish highlighting. If you look up a vb example that uses a rich edit/rich textbox then it should be pretty simple to convert it over to DBP. From that I remember you have to modify the selection start and end values to highlight the word, and then change it's colour etc.

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 4th Aug 2007 22:47
I get it now.

Don't let him fool you, this avatar is constipated.....
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 5th Aug 2007 18:19 Edited at: 5th Aug 2007 18:43
Heres an old project of mine using blue...

It loads all DarkBasic's Keyword files so it knows the commands, (may help), it was never completed as it was a little slow at updating

It operated through 2 Functions
Gadget = AddSyntaxEdit(x,y,w,h,LanguagesFile$) LanguagesFile$ = This has a list of languages and links to the relivent keywords folder
UpdateSyntaxEdit()
Update the Syntax HighLighting in the RichEdit

You may be able to strip this down if you wanted, but it was all done in DarkBasic





Everyone Be Cool, You, Be Cool.

Login to post a reply

Server time is: 2024-11-22 22:44:32
Your offset time is: 2024-11-22 22:44:32