Results 1 to 5 of 5

Thread: Raised and sunken areas

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Arrow

    I was wondering how you create a raised or sunken panel type effect in VB, and if you can use it as a parent contol like a frame.

    Borland C++ builder has a contol that is just a square of the same colour as the form (by default) which you can set to raised or sunked, it doesn't really do anything it's just for the appearance of seperation.

    I suppose I could just draw it into a control...but, I was wondering if the there was a "Proper" way of doing it.

    Cheers
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi,

    I just used 4 line objects and resized them in the user controls resize event

    Also used a variable to detect the border style and set line color accordingly:

    Border - None
    all lines .visible=false

    Border - raised
    top line .bordercolor=vbhighlight
    left line .bordercolor=vbhightlight
    bottom line .bordercolor=vbshadow
    right line .bordercolor=vbshadow

    Border - inset
    top line .bordercolor=vbshadow
    left line .bordercolor=vbshadow
    bottom line .bordercolor=vbhighlight
    right line .bordercolor=vbhightlight


    Hope it helps

    DocZaf
    {;->

    NOTE:
    To use it as a container - set the user controls IsContainer property to true

    [Edited by Zaf Khan on 05-28-2000 at 10:18 PM]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Thanks,

    I'd never heard of vbShadow before!!

    Paul
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Sorry,
    Its just a variable - hmm maybe thats not the right word

    You know
    public const vbShadow = &HXXXXXXXXXXX

    DocZaf
    {;->

  5. #5
    Guest

    Thumbs up Have a look at the SS Panel control......

    Ok am using vb5 sp3....

    Look at the SS Panel control that ships with vb. Persumably this is the Sheridon control. Anyway can be used to place a raised panel on a vb form...vaguely remember, (we use another control for a specific requirement), that this control also allows a sunken effect...defaults to raised. :0

    Hope it Helps........

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