Results 1 to 4 of 4

Thread: OCX Container Problem

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Unhappy OCX Container Problem

    Hello... I am writing an OCX that has various containers (Other OCX I had built before) but I have two problems:

    1.- When I add the controls on the design time to the different containers they appear right, but as soon as I run the application the controls in every container are gone.

    2.- The controls aren't gone if I place them on run-time

    3.- When I resize this OCX "to the right" it won't paint completely the control inside it unless you resize it "to the left" (Weird, I know)

    4.- Also, it won't be transparent until I resize it or refresh the OCX.

    Thank you for your help... I am starting to run out of ideas here.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  2. #2

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Re: OCX Container Problem

    Any ideas? If someone is interested I can post my project group
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  3. #3

    Re: OCX Container Problem

    You might want to play with the auto redraw property of all controls involved (as in your last OCX and all other components of your OCX control. In the Paint event (and resize event too) you might want to make sure you have the same code in those two (it solved some resizing problems of mine to have the resize code in resize and paint both...not sure why but it did for me :-) )
    When they say it can't be done, THAT's when they call me ;-)

    MystikShadows
    JC-Hosting.net

  4. #4

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Re: OCX Container Problem

    Thank you for your reply MystikShadows. I did as you told me to... But the auto-redraw changed in my three OCX didn't do anything.

    However, I discovered that if the second OCX's BackStyle property is changed to "Opaque" instead of "Transparent" will not present the problem mentioned before... Yet it will present the problem that the other members of this control will be covered by the second OCX.

    Any ideas how to prevent this from happening? I need the three OCX to be transparent but it seems it is causing a problem when doing so...

    Thanks again!
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

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