Simple color fills and rectangles

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
TodayIsTheDay
Posts: 56
Joined: Sat Jun 20, 2009 2:41 pm

Simple color fills and rectangles

Post by TodayIsTheDay » Mon Sep 07, 2009 4:27 pm

I'm sorry for the sill question but for the life of me....I'm stuck on something that seems so simple but I can't get it to work.

I have several rectangles on a card... I want them to look like this:
http://screencast.com/t/7swwZxLc

Gold border, slight green background then the white scrolling field....

The gold border is no problem but nothing I do will fill the boxes in??

I've got another question on Geometry I'll post in a sec...

Thanks!

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Post by Dixie » Mon Sep 07, 2009 5:38 pm

Good Afternoon...

Select the fill colour you want from 'colours & patterns' in the graphic's object inspector.
Make sure 'opaque' is selected in the graphic's object inspector.

be well

TodayIsTheDay
Posts: 56
Joined: Sat Jun 20, 2009 2:41 pm

Post by TodayIsTheDay » Mon Sep 07, 2009 6:08 pm

Thank you. I had it all right except the opaque part... :? Got it now!

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Mon Sep 07, 2009 9:59 pm

TodayIsTheDay,

if you are using version 4 of RunRev, the prerelease version, then you could make a field with the fancy graphic effects.
make a field "myField" and a button, set the script of the button to

Code: Select all

on mouseUp
   put "" into myOuterGlowArray
   put "normal" into myOuterGlowArray["blendmode"]
   put "204,255,102" into myOuterGlowArray["color"]
   put "gaussian" into myOuterGlowArray["filter"]
   put "255" into myOuterGlowArray["opacity"]
   put "255" into myOuterGlowArray["range"]
   put "22" into myOuterGlowArray["size"]
   put "255" into myOuterGlowArray["spread"]
   set the outerglow of field "myField" to myOuterGlowArray
   
   put "" into myDropShadowArray
   put "319" into myDropShadowArray["angle"]
   put "normal" into myDropShadowArray["blendmode"]
   put "255,204,102" into myDropShadowArray["color"]
   put "0" into myDropShadowArray["distance"]
   put "gaussian" into myDropShadowArray["filter"]
   put "true" into myDropShadowArray["knockout"]
   put "255" into myDropShadowArray["opacity"]
   put "31" into myDropShadowArray["size"]
   put "255" into myDropShadowArray["spread"]
   set the dropShadow of field "myField" to myDropshadowArray
end mouseUp
I am just playing around with the new toys.
regards
Bernd

Post Reply