Alpha Video Training
Results 1 to 5 of 5

Thread: More about background colors

  1. #1
    Member Martin's Avatar
    Real Name
    Martin Wolff
    Join Date
    Sep 2001
    Location
    England
    Posts
    376

    Default More about background colors

    Apologies for such a simple problem (I hope). I can't find an answer by searching the forum, though.

    I can't set the color of a tick box. I've tried using the object's properties, and I've tried using, e.g.

    topparent:objname.Fill.Forecolor = "Win3D"

    both these methods work fine with all other types of box.

    Any ideas? Thanks in advance.

  2. #2
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,173

    Default RE: More about background colors

    Martin

    I don't think you can change the color of a checkbox. The only properties available are forecolor and border properties. If you expand the size of the checkbox, you will see forecolor just changes the color of the area around the box, like a big border. About the best you can do is set the border style to single line, set the line width wide and change the color of that with

    topparent:objname.Border.Color = "whatever"

    Jerry

  3. #3
    Member Martin's Avatar
    Real Name
    Martin Wolff
    Join Date
    Sep 2001
    Location
    England
    Posts
    376

    Default RE: More about background colors

    OK, thanks, Jerry. There's no other way, I assume, of "greying out" a checkbox? I just want to show that, on this particular form, it can't be modified.

    Martin.

  4. #4
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,173

    Default RE: More about background colors

    Martin

    While you can't gray it out, you can hide it and replace it with a frame. Create a frame with the same border as the checkbox and approximately the same size. Overlay the frame over the checkbox (or under it). You can place code to hide the checkbox object and show the frame and vice versa, as conditions demand.

    Now if you want the checkbox to show checked, but "grayed" out, you have another option. Instead of a frame, make a bitmap of a checkbox and use that with a border.

    While it would be much easier to just gray out the checkbox, you can create a solution that looks the same and the user won't know the difference.

    Jerry

  5. #5
    Member Martin's Avatar
    Real Name
    Martin Wolff
    Join Date
    Sep 2001
    Location
    England
    Posts
    376

    Default RE: More about background colors

    Thanks Jerry,

    It's strange that I can show any color I like in the Form Editor, but it reverts to White when actually run.

    Thanks again.

Similar Threads

  1. Button Background Wish
    By davej in forum Archived Wishlist
    Replies: 0
    Last Post: 01-20-2005, 02:44 PM
  2. Background for %code%
    By CALocklin in forum Archived Wishlist
    Replies: 1
    Last Post: 01-04-2005, 04:13 AM
  3. Check Box Background
    By Robyne in forum Alpha Five Version 5
    Replies: 5
    Last Post: 06-25-2004, 02:52 PM
  4. Form background colors
    By Annita Merriweather in forum Upgrading to Alpha Five from Alpha Four
    Replies: 1
    Last Post: 12-26-2003, 07:08 PM
  5. Form Foreground/Background Colors
    By Phil Rolf in forum Alpha Five Version 5
    Replies: 2
    Last Post: 11-15-2002, 08:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •