Formatting String in Text Gadget

Windows specific forum
cecilcheah
Enthusiast
Enthusiast
Posts: 168
Joined: Wed Jun 04, 2003 8:44 am
Location: Switzerland

Formatting String in Text Gadget

Post 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
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
cecilcheah
Enthusiast
Enthusiast
Posts: 168
Joined: Wed Jun 04, 2003 8:44 am
Location: Switzerland

Post by cecilcheah »

Where do i find this editor gadget? It is not in the manual

Cecil
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
cecilcheah
Enthusiast
Enthusiast
Posts: 168
Joined: Wed Jun 04, 2003 8:44 am
Location: Switzerland

Post 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
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Formatting String in Text Gadget

Post 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
cecilcheah
Enthusiast
Enthusiast
Posts: 168
Joined: Wed Jun 04, 2003 8:44 am
Location: Switzerland

Post 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
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

type EditorGadget() in e new soure
put the cursor in it, and press F1
you get the help opened on EditorGadget()
cecilcheah
Enthusiast
Enthusiast
Posts: 168
Joined: Wed Jun 04, 2003 8:44 am
Location: Switzerland

Post 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
cecilcheah
Enthusiast
Enthusiast
Posts: 168
Joined: Wed Jun 04, 2003 8:44 am
Location: Switzerland

Post 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.
Post Reply