LB Booster
« LPRINT colored text »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:51am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: LPRINT colored text  (Read 307 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx LPRINT colored text
« Thread started on: Oct 19th, 2015, 1:00pm »

As the question has been asked elsewhere, here is how to LPRINT colored text in LBB:

Code:
    !printerDC = @prthdc%
    LPRINT "This is printed in black"
    CALLDLL #gdi32, "SetTextColor", printerDC as long, _
      hexdec("0000FF") as long, ret as long
    LPRINT "This is printed in red"
    CALLDLL #gdi32, "SetTextColor", printerDC as long, _
      hexdec("FF0000") as long, ret as long
    LPRINT "This is printed in blue"
    DUMP 

Richard.
User IP Logged

RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx Re: LPRINT colored text
« Reply #1 on: Oct 19th, 2015, 2:27pm »

Hi Richard

Thanks. That capability with LPRINT could be very useful.

Ray
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls