123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|583|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz Max -> Toggle styles on / off?

Sun, 31 Jan 2010, 13:18
crovean
Hey!

Is there a simple way to toggle text area_WORDWRAP on and off? Could someone please post an example for me? :/
Sun, 31 Jan 2010, 14:10
Phoenix
Which technology are you referring to?
Sun, 31 Jan 2010, 14:22
crovean
Local text area:TGadget = Createtext area(0, 0, ClientWidth(mainWindow), ClientHeight(mainWindow), mainWindow, text area_WORDWRAP)

I would like to toggle wordwrapping on and off through a menu, but I don't know how...

The solutions I know of is to create a var and some If Then statements, but I'm wondering if there's a command to use for this instead to make it simple?
Sun, 31 Jan 2010, 14:42
Phoenix
I assume that you're using MaxGUI. I have not used it, but from looking at the documentation and from former experience with Blitz+, I can say that it is a very limited GUI library which doesn't provide any way to do what you want. You can of course cheat and recreate the text area with new settings and restore the text which was there before.
Sun, 31 Jan 2010, 15:18
Jayenkai
Because, as silly as it would be to hack yourself, it is possible, by placing </text area> into a codebox and then editing your post.
So, rather than trying to figure out every possibility, I just shoved a space into the middle.

-=-=-
''Load, Next List!''