Page 1 of 1

Posted: Mon Sep 02, 2002 1:13 am
by BackupUser
Restored from previous forum. Originally posted by DeeCee.

Hello,
I just registered Pure Basic today and have been working through (playing/altering)some of the sample code to get a feel for how everything works.

I ran across an interesting problem...I cannot seem to set or change the overall length/width of a string gadget.

According to the help file:
StringGadget(#Gadget, x, y, Width, Heigth, Content$ [, Flags])

My sample:
StringGadget(4, 155, 5, 50, 20, "mystring")

Would the above sample not indicate that the StringGadget should only be 50 pixels in length/width?

Thanks in advance,
DeeCee

Posted: Mon Sep 02, 2002 1:28 am
by BackupUser
Restored from previous forum. Originally posted by Fangbeast.
Originally posted by DeeCee

Hello,
I just registered Pure Basic today and have been working through (playing/altering)some of the sample code to get a feel for how everything works.

I ran across an interesting problem...I cannot seem to set or change the overall length/width of a string gadget.

According to the help file:
StringGadget(#Gadget, x, y, Width, Heigth, Content$ [, Flags])

My sample:
StringGadget(4, 155, 5, 50, 20, "mystring")

Would the above sample not indicate that the StringGadget should only be 50 pixels in length/width?

Thanks in advance,
DeeCee
If you are talking about the length of the 'visible' gadget, then that is correct, it will be 50 pixels long approx (grin).

If you are mistaking it with the length of the actual string data it can contain, then that is different. The data can be (AFAIK) up to 64K and will scroll past the right hand edge of the gadget.

You can also make the gadget higher and behave in a multiline fashion if you need it to. Complete with auto-wrapping!

Fangles