PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: mwmeeks on April 26, 2004, 02:18:44 PM

Title: Paid Help With ActiveX Control w/FF
Post by: mwmeeks on April 26, 2004, 02:18:44 PM
Hi,

Please read - No need to respond - unless you want to accept the project!

I have a custom ActiveX (written by me - Delphi7.x), that integrates with FF just fine.  The problem I am having is accessing the properties of the control within FF.  Just not understanding the requirements for settting the properties.

For example in VB - I would use:

MyControl.PageSize = 500
MyControl.PageWidth = 1440

Willing to pay anyone who is willing to create a simple example in FF - using the control - and setting the following properties:

1)  PageSize
2)  PageWidth
3)  Height
4)  Width
5)  Size
6)  PageOffset

Coder gets to keep the copy of the control and unlimited use.

Thanks
Mike
Title: Paid Help With ActiveX Control w/FF
Post by: Jose Roca on April 26, 2004, 02:26:05 PM
If in VB you're using

MyControl.PageSize = 500
MyControl.PageWidth = 1440

Then in PB you have to use

DIM vVar as Variant
vVar = 500
Object Let MyControl.PageSize = vVar
vVar = 1440
Object Let MyControl.PageWidth = vVar
Title: Paid Help With ActiveX Control w/FF
Post by: mwmeeks on April 26, 2004, 02:38:07 PM
Hi Jose,

Thanks for the response!

Tried that -  I Get Error: 533 when I attempt to Compile.  Racking my brains on this issue since yesterday.

Regards
Mike
Title: Paid Help With ActiveX Control w/FF
Post by: Jose Roca on April 26, 2004, 02:52:25 PM
You get error 533 because MyControl is not declared. Use the dispatch variable assigned by FireFly. If it is the first OCX control in the main form it should be DISPATCH_FORM1_OCXCONTROL1, so change MyControl with DISPATCH_FORM1_OCXCONTROL1.
Title: Paid Help With ActiveX Control w/FF
Post by: mwmeeks on April 26, 2004, 05:44:55 PM
Jose - owe you a case of beer!

DISPATCH_FORM1_MYCONTROL1  works!

Thanks... and let me know where to send the beer!

Mike
Title: I hope that upgrade PB OOP
Post by: Anonymous on April 26, 2004, 06:17:27 PM
<Removed by Administrator: Totally off-topic. Please post this type of message to the General forum>
Title: Paid Help With ActiveX Control w/FF
Post by: Jose Roca on April 26, 2004, 10:18:27 PM
Hi Michael,

I live in Valencia, Spain, so the freight will cost you a fortune. Better drink you the beer to my health, but only a bottle every day :)

May I know what does your control? Just curious.
Title: Paid Help With ActiveX Control w/FF
Post by: mwmeeks on April 27, 2004, 03:12:22 PM
Jose

On your WebSite - add a PayPal Button - "Make a donaction" - and I'll be the first to donate!  (Not sure if you have a web-site) 0 but the offer still applies!

Appreciate your assitance!  Using ActiveX with FF - requires patience and alot of testing... but if the control is honestly-needed - then the option to use it - is within reach!

Regards
Mike