Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to show Property Page

beekhbeekh Member Posts: 3
In vb 6 one can make a property page for your custom OCX by the wizzard, its very easy to use, just richtclick on your control and select properties. The only problem is that this feature seems not availeble from inside the ocx it self. Does anybody know how to invoke the property page at runtime from within the OCX.

Thanks

Comments

  • ColdShineColdShine Member Posts: 597
    I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    _____________________________
    [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    http://www20.brinkster.com/coldshine[/size]

  • beekhbeekh Member Posts: 3
    : I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    : _____________________________
    : [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    : http://www20.brinkster.com/coldshine[/size]
    :
    :
    Thats no problem at all, but to show the property page from within the ocx with for example an public showparameter function i would be able to give an end user the possebillaty to change properties at runtime.
    This is the functionality i am looking for
  • KDivad LeahcimKDivad Leahcim Member Posts: 3,948
    : : I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    : : _____________________________
    : : [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    : : http://www20.brinkster.com/coldshine[/size]
    : :
    : :
    : Thats no problem at all, but to show the property page from within the ocx with for example an public showparameter function i would be able to give an end user the possebillaty to change properties at runtime.
    : This is the functionality i am looking for
    :

    I don't know of any method to do so, but you could create a form in your ocx project, set it up to look like the normal property page and then show it. It's overkill to include both, but if you have to...
  • beekhbeekh Member Posts: 3
    : : : I suggest you to create an EXE test project and insert it in a project group along with the OCX project. Then (in the EXE project) add a reference the OCX, add a form, draw a control on the form surface and do whatever you want (right click, etc.).
    : : : _____________________________
    : : : [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    : : : http://www20.brinkster.com/coldshine[/size]
    : : :
    : : :
    : : Thats no problem at all, but to show the property page from within the ocx with for example an public showparameter function i would be able to give an end user the possebillaty to change properties at runtime.
    : : This is the functionality i am looking for
    : :
    :
    : I don't know of any method to do so, but you could create a form in your ocx project, set it up to look like the normal property page and then show it. It's overkill to include both, but if you have to...
    :
    Thanks, thats what i did already, by the way do you know why the writeproperties event is not triggerd after a propertiechanged? VB OCX wizzard by default adds read and write property procedures but if i change my properties from any other place then the property page, i dont get an writeproperties event
  • KDivad LeahcimKDivad Leahcim Member Posts: 3,948
    : Thanks, thats what i did already, by the way do you know why the writeproperties event is not triggerd after a propertiechanged? VB OCX wizzard by default adds read and write property procedures but if i change my properties from any other place then the property page, i dont get an writeproperties event
    :

    I'm afraid not. I've fought with VB and OCXs for quite a while until I finally just gave up. I haven't written one in about a year now and don't recall much of what I did figure out.

    Good luck!
  • Andre YoungAndre Young USAMember Posts: 0

    ______ < http://forcoder.org /> free video tutorials and ebooks about | PHP, Assembly, Ruby, Delphi, PL/SQL, MATLAB, C++, Scratch, JavaScript, Go, C, Perl, Visual Basic .NET, Visual Basic, Python, C#, Java, R, Objective-C, Swift Lua, Apex, Dart, LabVIEW, F#, Awk, Ada, Bash, FoxPro, ML, Julia, Scala, Kotlin, SAS, Rust, Clojure, COBOL, Lisp, Prolog, Transact-SQL, D, Crystal, Hack, Logo, VBScript, Scheme, Erlang, ABAP, Alice, Fortran | __

Sign In or Register to comment.