VB6 to Firefly. Using PB9, Win XPPro SP3

Started by Ian Bayly, October 02, 2008, 01:46:06 AM

Previous topic - Next topic

Ian Bayly

Hi
I am on 30 day trial to see if I can replicate some VB screens in FireFly (also very new to PB).
Looking good so far.  We used an OCX (CoolButtons: http://www.brewcitysoftware.com/) to provide VB6 buttons with both different text colour and different background colours.
I do not have the experience to use the OCX control in Firefly so I am experimenting with RRBUTTON and the standard button.
2 Questions:
What does the FF_Control_SetFont do, and where do I find what I can pass to it?  Can I just control the font name, or can I change the font colour/size?
Is it possible to get the black outline around an RRButton like the standard button has?

TIA

Ian Bayly

David Kenny

I have only played with the demo's for rrbutton, but I would encourage you to look at this file:
C:\Program Files\FireFly\CustomControls\Borje Hagsten\RRButton\rrbutton.inc 

Of course it could be somewhere else if you changed the default install directory when installing FireFly.  Borje did a pretty good job of documenting the control messages for RRBUTTON in there.

This should get you on the right track.

David

TechSupport

Yes, definitely look at the "rrbutton.inc" file. There A LOT of messages defined in that file for the RRButton and I imagine you should be able to do just about whatever you need with it.

Also, take a look at Jose's XPButton over on his forum (if you haven't signed up yet on his forum then do so... you won't be disappointed - there ia wealth of information over there!). http://www.jose.it-berater.org/smfforum/index.php?board=315.0  You need to be a registered member on Jose's forum in order to download the attachments.

I also came from VB (many years ago). Try to wean yourself off of the OCX controls. It will be better for you in the long run. :)


JR Heathcote

Ian,

You might want to take a look at PBForms for your conversion efforts too.  You can import a VB .FRM file and create a close copy of your VB dialog box.  Couple of caveats, (1) PBForms performs an approximate conversion of control locations and sizes due to the fact that VB 6.0 appears to store these same dimensions in Twips and converts them on the fly for display purposes, and (2) PBForms does not handle VB control containers (wished it did).

The approximate control location and sizes resulting from the PBForms conversion is also due to converting Twips to pixels so there may be slight control alignment errors in the resulting conversion, but nothing you can't handle.

Also, PBForms is a little weak in the source code generation portion of the conversion (IMO it could do more than what it does do), but it does a fairly decent job in the area of graphic conversion.  You should take a look at it.

JR