Page 1 of 1

Formatting String in Text Gadget

Posted: Wed Jun 11, 2003 10:59 pm
by cecilcheah
Hi

No sonner have i solved a problem, another pops up. This should be an easy one.

How can i format text like :

to handle blah|||request "Blah"|||end

to:

to handle blah

request "Blah"

end

I search the forum and heard about the RichEdit Gadget, is this the only way?

Also if i really use the richedit Gadget, when i distribute my programme, do i need to include any DLL or whatever? I really want to solve this in a native PB way.

Cecil

Posted: Wed Jun 11, 2003 11:05 pm
by freak
What about the new EditorGadget() ?
You can use AddGadgetItem() to add a new line, and SetGAdgetItemText()
to change existing lines. Sounds like an easy PB way to me.

This Gadget actually is a Richedit Control. but you don't need any dll, it is
included in windows.

Timo

Posted: Wed Jun 11, 2003 11:28 pm
by cecilcheah
Where do i find this editor gadget? It is not in the manual

Cecil

Posted: Wed Jun 11, 2003 11:40 pm
by freak
Do yyou have the 3.70 update? (there it is in the manual)
Or do you use the demo? (there this GAdget doesn't exist)

Timo

Posted: Thu Jun 12, 2003 12:03 am
by cecilcheah
I have v3.3 which i have recently bought from Amazon.de. It is not a demo.

Where can i find the v 3.7 update? In purebasic.com? And where can i download the new manual?

Cecil

Posted: Thu Jun 12, 2003 1:04 am
by freak
Ah, this version is the cheaper, not updateable version then.
The Version you can buy online is more expensive, but all later
updates are for free.

http://www.purebasic.com/german/ordering.php3

There you can get an "update" from your version to an "all-update-for-free" version for 39€.

Timo

Re: Formatting String in Text Gadget

Posted: Thu Jun 12, 2003 5:28 am
by PB
> How can i format text like :
> to handle blah|||request "Blah"|||end
> to:
> to handle blah
> request "Blah"

Look at the link for How do I get a multi-line string gadget at this post:

viewtopic.php?t=4876

Posted: Thu Jun 12, 2003 10:27 pm
by cecilcheah
Hi

I have now purchased the v3.6 and updated it to v3.7, but i cannot find the Editor Gadget. All i have is the String Gadget. The help file has nothing about #PB_String_Multiline as mentioned in this thread: "Word wrap" in multi-line StringGadgets?

Please help.

Cecil

Posted: Thu Jun 12, 2003 10:34 pm
by Berikco
type EditorGadget() in e new soure
put the cursor in it, and press F1
you get the help opened on EditorGadget()

Posted: Thu Jun 12, 2003 10:59 pm
by cecilcheah
No I get the help manual opened at the Reference Manual Link.

I search for EditorGadget() as well inside the help, but nothing.

Why is it always happening to me? Where can i download the new help file?

Cecil

Posted: Thu Jun 12, 2003 11:01 pm
by cecilcheah
My help file is still v3.62, i did click the update file and my PB is v7.0, wait v3.62.

I will try the update again.