New topic: Background in a label
<http://forums.realsoftware.com/viewtopic.php?t=43890> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message dizco Post subject: Background in a labelPosted: Sat May 05, 2012 9:15 pm Joined: Sat May 05, 2012 8:59 pm Posts: 3 I was wondering if there was a way to set a background in a LABEL. For example, I have a calendar, in which I would like to highlight certain dates. What would the best option be? The only way I thought of was to put RECTANGLES behind them, but that doesn't seem very effective... :p All ideas are welcome!! Thanks Dizco Top DaveS Post subject: Re: Background in a labelPosted: Sat May 05, 2012 10:39 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 3653 Location: San Diego, CA use a canvas instead. Better yet... use a Canvas for the WHOLE calendar... that way you have have to deal with ONE object.. _________________ Dave Sisemore MacPro, OSX 10.7.3 RB2011r3 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top dizco Post subject: Re: Background in a labelPosted: Sat May 05, 2012 11:21 pm Joined: Sat May 05, 2012 8:59 pm Posts: 3 No... I already built my calendar with labels and group boxes, and I don't think a canvas could do everything I want it to do. I don't know much about canvas' but I think it's used for placing images, right? Therefore, my calendar can't be an image, due to each different possibility. Can we place text boxes IN canvas'? But wouldn't that circle back to placing a rectangle? Maybe there are some things I don't know about canvas'... Thanks a lot _________________ Just a normal guy who loves coding Top DaveS Post subject: Re: Background in a labelPosted: Sat May 05, 2012 11:31 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 3653 Location: San Diego, CA A canvas is a place to "draw" things. Text is a thing that can be drawn.... as well as lines, circles... etc. Look at the example shown here. I know for a fact that that is ONE canvas.... http://forums.realsoftware.com/viewtopic.php?f=1&t=42627&hilit=calendar Particularly since I just created a similar control for use in a project of my own (the reason I didn't use the one from that topic, is I needed display options above and beyond what he used... but the concept is identical) So yes... your Calendar IS an image.... an image that YOU draw, that YOU control... so yes it will do EVERYTHING and I mean EVERYTHING you want (not magically of course, but then you are wanting to be a applications developer I assume) The Canvas is possibly the most versatile control in your entire arsenal. _________________ Dave Sisemore MacPro, OSX 10.7.3 RB2011r3 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top timhare Post subject: Re: Background in a labelPosted: Sun May 06, 2012 2:52 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 11267 Location: Portland, OR USA dizco wrote:No... I already built my calendar with labels and group boxes Bad idea. Dave is absolutely right. Use a canvas. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
