Real Software Forums
http://forums.realsoftware.com/

Label with BackColor
http://forums.realsoftware.com/viewtopic.php?f=13&t=42738
Page 1 of 1

Author:  torrid [ Fri Feb 17, 2012 10:04 am ]
Post subject:  Label with BackColor

In VB6 labels have BackCOlor... and also can have a border that looks 3D.

So in RB what is the equivalent? Use a TextField? but if I disable it then it gives it a gray disabled look....

Author:  DaveS [ Fri Feb 17, 2012 10:12 am ]
Post subject:  Re: Label with BackColor

You could set it to read-only

but you'd also want to add some code to keep the focus away (in GETFOCUS... move to another control)

Personally.... I'd make my own out of a Canvas.... would look much nicer.

Author:  torrid [ Fri Feb 17, 2012 10:32 am ]
Post subject:  Re: Label with BackColor

Thanks DaveS

If I make my own out of a canvas... how do I make it look like it has a 3D like border?

Author:  DaveS [ Fri Feb 17, 2012 10:37 am ]
Post subject:  Re: Label with BackColor

Thats the beauty of a canvas..... draw anything you want.... make it look like you want it to look

elsewhere on this forum I just provided a free routine that makes toggle buttons that look identical to the iPhone for use with RealStudio. The whole thing was done with a canvas.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/