Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 MAR 1998 03:45:24PM Don Bakke wrote:

Many applications will display the serial number and the registered user's name in their splash page.

Does anyone know of a way of doing this type of thing? I'm guessing that OI would have to edit the BMP file in some way, presumably right after the software was registered, but I haven't a clue as to how to do modify a BMP structure this way.

Any ideas would be appreciated, thanks.

dbakke@srpcs.com

SRP Computer Solutions


At 04 MAR 1998 04:11AM Oystein reigem wrote:

Don,

What about doing it in Delphi, and let OI call the Delphi program?

The Delphi program must be able to

(1) read a BMP file

(2) get hold of a string or two (serial no and user name), e.g from its command line parameters

(3) somehow write the strings on the bitmap

(4) and write the BMP to a file (the same file or a different file).

If I had to do this I would let the Delphi program have a form (window) with a TImage for the bitmap. (1) I'd run TImage's Picture.LoadfromFile method from the form's OnCreate event to read the BMP file into the TImage bitmap. (2) Then I'd get hold of the command line parameters with ParamCount and ParamStr. (3) Then I'd write the strings to the bitmap with TextOut. (4) Finally I'd write the BMP back with SaveToFile. If I had to hide the process from the user I'd make the form invisible or something.

- Oystein -


At 04 MAR 1998 09:23AM Don Bakke wrote:

What about doing it in Delphi, and let OI call the Delphi program?

I take it then that you already know Delphi is capable of doing this sort of thing? If that's what it would take then it probably isn't worth it to me. However, if this is doable in Delphi, then it should be doable in OI and I'd like to see how it can be done - although I'm willing to accept that the investment of time for this rather small request is just too prohibitive.

Thanks,

dbakke@srpcs.com

SRP Computer Solutions


At 05 MAR 1998 04:17AM Oystein Reigem wrote:

Don,

I *have* done something similar in Delphi, i.e I once wrote a program that also needed to open, modify and write back images. You see I got so tired of handcrafting images for OI buttons (PUSHBMPs) that I wrote a Delphi program that could combine images of blank buttons with images for the button top. The program does things like cropping the "top" image to fit the button and puts that image on each of the button images except the inactive one, offsets the image somewhat for the depressed button, etc. I never *quite* finished that program, though. The ideal version should e.g be able to make buttons of any size, put a dotted line around the "top" image for the "focus" button, etc.

I think what you need is much simpler. I think I even could write the program for you. But if you foresee changes, I would prefer that you had the responsibility to maintain it. Do you program in Delphi? Have you got Delphi?

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/909d0523eeb712c9852565bc0072055b.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1