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

Thread: DesignSurface

  1. #1
    Join Date
    Dec 2005
    Posts
    282

    DesignSurface

    Hello,
    I have a question. I want to make a small designer for my application. For that I use the DesignSurface class. this all works very fine, but now I have one small problem too. The standard view (surface.View) has as background another control and the real control which I design is not on (0,0) . For some reason I need the position of (0,0) for the control to design. Knows anyone a solution for this?

    Regards
    Hansjörg

  2. #2
    Join Date
    Mar 2004
    Location
    Ukraine
    Posts
    170

    Re: DesignSurface

    It`s quite easy if I get your idea right. You just need to put next code in your Initialization function:
    Code:
       surface.Top=0;
       surface.Left=0;
    Thats all your component will be in point 0,0
    God could improve essentially a
    human nature, but he
    was too anxious with compatibility
    with the monkey.
    (Eugeny Goldberg)

  3. #3
    Join Date
    Dec 2005
    Posts
    282

    Re: DesignSurface

    the surface class has no top and left member..

    Regards
    Hansjörg

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