CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: 3D.

  1. #1
    Guest

    3D.

    Is it so hard drawing 3D usercontrols?? Anyone got a simple code??


  2. #2
    Join Date
    Jun 1999
    Location
    virginia
    Posts
    16

    Re: 3D.

    It's best to make the button as an activeX button that way it can be used on any program you write.
    Start with a lable and set it's allignment property to center. Using four line contrils place them around the label to form a rectangle. Set the border width to 2. On the left and top ones set their colors to white. You should now have what appears as a 3D button.Set the label mouse down event to change the 2 white lines to black and the two black lines to white. Then reset the colors on the mouse up event.
    Hope this helps.


  3. #3
    Guest

    Re: 3D.

    Thanks, but I've found an easiest way: there's a control in microsoft forms 2.0, owning special effects properties!!


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

Featured