1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Delphi Help plz!

Discussion in 'Software Development' started by IBM, Jan 14, 2002.

Thread Status:
Not open for further replies.
  1. IBM

    IBM Thread Starter

    Joined:
    Nov 13, 2000
    Messages:
    824
    Hi..
    Does anyone know how to reset font.style from underline back to normal(no underline)

    Mycode is like this:
    lbldisplay.Font.Size:=24;
    lbldisplay.Font.Style:=[Fsunderline];
    lbldisplay.Caption:='Hello'+' '+edtFname;

    That is for one button, the next button should reset the previous button to a font12, and no underline...
    I've tried fpDefault...Don't really know what it does!
    I've tried Fsnormal...Won't work...

    I just can't get it..any ideas?
     
  2. IBM

    IBM Thread Starter

    Joined:
    Nov 13, 2000
    Messages:
    824
    But I got it figured out!
     
  3. glamisman

    glamisman

    Joined:
    Sep 16, 2008
    Messages:
    1
    It is years later but I came across the same problem... set the Tfont.style to and empty set, i.e. printer.canvas.font.style := [] will reset the font to normal. It is odd that there is no fsnormal style for tfont.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/64879

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice