Showing only one border?
Posted: Mon Feb 23, 2015 4:14 pm
Is there a way to only show one border on an object; specifically the top border of a field? In HTML you can control which border is shown, is Livecode capable? I've searched and found nothing, surely this has come up before.
I tried to do just a straight horizontal black line, but when I test in the simulator the line slants down on the right side; presumably the pixel upscaling is running from the top left pixel to the bottom right, thus causing the line to slant ever so noticeably and creating artifacts in the line. (Is that a bug, btw--that I cannot get a straight line to stay straight? I'm using NativeGeometry, not sure if that is causing anything to go wrong.)
My current solution is to have a black background graphic under the field, with its top property about 5 pixels less than the field, thus coming above the field and creating an apparent black line. But it would be so much easier if we could control which borders to display.
Thanks.
I tried to do just a straight horizontal black line, but when I test in the simulator the line slants down on the right side; presumably the pixel upscaling is running from the top left pixel to the bottom right, thus causing the line to slant ever so noticeably and creating artifacts in the line. (Is that a bug, btw--that I cannot get a straight line to stay straight? I'm using NativeGeometry, not sure if that is causing anything to go wrong.)
My current solution is to have a black background graphic under the field, with its top property about 5 pixels less than the field, thus coming above the field and creating an apparent black line. But it would be so much easier if we could control which borders to display.
Thanks.