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
Sizing String Gadget
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
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
If you are talking about the length of the 'visible' gadget, then that is correct, it will be 50 pixels long approx (grin).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 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