Field shape
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Field shape
Does anybody knows if it is possible to change the shape of a text field ?
Like having a rounded corner text field ?
Trevix
Like having a rounded corner text field ?
Trevix
trevix,
you can set the label of a graphic, if the show name of the graphic is true then you will see the label instead of the name.
but I think a group of field without border and a rounded graphic are more suitable.
regards
Bernd
you can set the label of a graphic, if the show name of the graphic is true then you will see the label instead of the name.
Code: Select all
on mouseUp
set the label of graphic 1 to "this is the first line" & cr & "this is the second line" & cr & "and another one"
end mouseUp
regards
Bernd
You can also play about with the text formatting on the graphic, to set left/centre/right alignment, etc - but also in particular you can set the margins.
By default you get one value in the margin box, which will be used for the same margin all the way round. You can set individual left, top, right and bottom margins (in that order) as in 8,8,20,40 which will give a margin of 8 left and top, 20 on the right and 40 at the bottom. If you know your field height will stay the same you can fiddle with the margin to push the text up inside the graphic with a higher bottom margin (say).
You wouldn't be able to have the text autowrap as the field changed width though. You would definitely be better off (IMHO) with a rounded rectangle set to opaque with the background colour set to the same as your field, and a slightly smaller field inside it. If you set them to resize in the same way, they should move and expand together to keep the look consistent. I can't think of a better way to handle it anyway.
By default you get one value in the margin box, which will be used for the same margin all the way round. You can set individual left, top, right and bottom margins (in that order) as in 8,8,20,40 which will give a margin of 8 left and top, 20 on the right and 40 at the bottom. If you know your field height will stay the same you can fiddle with the margin to push the text up inside the graphic with a higher bottom margin (say).
You wouldn't be able to have the text autowrap as the field changed width though. You would definitely be better off (IMHO) with a rounded rectangle set to opaque with the background colour set to the same as your field, and a slightly smaller field inside it. If you set them to resize in the same way, they should move and expand together to keep the look consistent. I can't think of a better way to handle it anyway.