For my room planer I need a combobox to select the type of reservation and It would be a service to show the final color in the CBX, too.
You can select any color in the setup and it would be fine if I could create
a bitmap of the selection.
Does someone know how to do.
I thought to use TSBUTTON’s in the setup and to change the color of the buttons and
then with btn:hardcopy() . But I can’t find a way how to save the btn:hardcopy to disk.
Is there any other function?
Thanks in advance
Otto
How to create a bitmap and save to disk
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
Otto,
there is a method SaveToBmp () (from windows.prg) that should do the job.
there is a method SaveToBmp () (from windows.prg) that should do the job.
Code: Select all
oBtn:SaveToBmp("Button")
kind regards
Stefan
Stefan
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany