|
-
May 28th, 2000, 08:51 AM
#1
Thread Starter
Fanatic Member
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!)
-
May 28th, 2000, 09:11 AM
#2
Fanatic Member
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]
-
May 28th, 2000, 09:17 AM
#3
Thread Starter
Fanatic Member
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!)
-
May 28th, 2000, 09:20 AM
#4
Fanatic Member
Sorry,
Its just a variable - hmm maybe thats not the right word
You know
public const vbShadow = &HXXXXXXXXXXX
DocZaf
{;->
-
May 28th, 2000, 10:30 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|