Results 1 to 4 of 4

Thread: 256 colors in containers

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    4
    Could anyone please help me with the following problem?

    The application I am building may be run on 256 color screens.
    To avoid dithering, I've put a 2 in the high order byte of the color properties.

    In 256 color screenmode, every control appears in the color I want it to....
    ...until I define a frame to be its container.

    In a container, the color appears differently, although the background color of
    the container is the same as the background color of the form.

    I have tried setting the palette and palettemode property to a bitmap
    (that also appears fine on screen), but no result.

    I hope there is another solution than to work around using container frames....

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well depending on what you're doing you may not need to use frames at all at all.
    Why you using them ?

    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    4
    I am using frames for several purposes:
    - The main interface area is actually a frame that does not cover the entire screen (form),
    the rest of the form covers the background. By placing the controls in the frame I can
    define left and top within the frame.
    - In some forms, part of it is now and then drastically changed. I created frames for those areas, so that I can make the frame invisible, update the controls inside of it and then make it visible again. (better than having the user see all the steps in updating).

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well the things you've said wouldnt necessarily warrant the use of frames.

    In relation to your first point, the fact that you want to be able to define left and right relative to another object, well you could try the picturebox control. That cna act as a container, and I would imagine its a little more graphics friendly.
    Though I myself would just position things absolutely.

    In relation to your second point, you again might be able to use a picturebox, or if you just hide all the controls, do the update, and then show them again that would ahve the same effect. It would be very handy if the controls were in a control array because then you could real quickly hide+do something+show them.

    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

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



Click Here to Expand Forum to Full Width