#Visual Basic Look
3 messages in this thread
More and more Windows applications writen with or without VB have a
'sunken' 3-D effect, e.g Dupe v1.3, Norton Desktop, Contacts Manager etc.
In Visual Basic I can achieve the 'look' using the LINE command, e.g Sub
Form_Click ()
form1.line (100,101)-(201,101), &H808080
form1.line (99,101) – (99,200),&H808080
form1.line (100,201)-(202,201),&HFFFFFF
form1.line (201,102)-(201,201), &HFFFFFF etc ….
This has the effect of drawing a nice box with that 'sunken' 3-D effect.
What I am having difficulties in doing is to then put objects like text
boxes, list boxes etc. on top of this 'sunken' area. Has anybody done this
There is 1 Reply.
This is covered in the new VBTIPS that just appeared on DL1. Look for the
heading "Framing Controls (the NEXT Look):".
Alexis,
The easiest way to achieve this "NeXT" look is to creat a sub and pass it the
name of the control you wish to outline. Then in the sub you can reference
the controls top, left, width and height properties to control the outlining.
I have a couple of subs to do this I could send you if you'ld like and I
think there's a reference in VBTIPS available here somewhere.
– JwT