Add a border to either a textbox or label

fdx12345

Active Member
Licensed User
Longtime User
I am trying to make a grid using the Designer. For colum headers, I am using a seperate panel at the top of the panel on wihch I am constructing the grid. The problem is I can not make either a label, textbox, or anything else show up with a solid rectange line around the label, textbox or ect so as to have it look like a cell in a spreadsheet.

Any ideas? I can change the color of the background and text by not instruct the object to show a boarder.

Bill
 

lagore

Active Member
Licensed User
Longtime User
If you put your label or textbox on a panel that is few pixels bigger and a different colour it shows up like a border, make sure the corner radius match on both. You can stack up as many panels as you like for different effects.
 
Upvote 0

fdx12345

Active Member
Licensed User
Longtime User
Sizeable?

If I do seperate panels under panels to get the border look, will the result be sizeable to run on different phone screen sizes or fixed for the screen size for which it was orginally designed under?

Bill
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
It will adjust as long as you code it properly, for instance:

Panel1.width = Edittext.width + 5dip

This way the panels width is always adjusted to the actual edittext width plus whatever difference you want
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…