Diễn Đàn Tin Học

Hiển thị kết quả từ 1 đến 9 / 9

Chủ đề: Font tieng Viet

  1. #1
    Tham gia
    16-07-2002
    Location
    none
    Bài viết
    33
    Like
    0
    Thanked 0 Times in 0 Posts

    Câu hỏi, cần giúp đỡ Font tieng Viet

    Có bạn nào chỉ dùm cách đổi font hệ thống để đánh tiếng việt trên tiêu đề của form trong visual basic và visual fox không?
    Cảm ơn trước nhe!
    Quote Quote

  2. #2
    Tham gia
    16-07-2002
    Location
    Qui Nhon
    Bài viết
    139
    Like
    0
    Thanked 0 Times in 0 Posts
    chon properties ở màn hình bằng cách nhấn chuột phải vào màn hình, chọn tab appearance, chọn vào title bar chỉnh font việt ở mục font, nhấn apply, ok. Nhớ là font nào thì gõ theo bảng mã ấy.

  3. #3
    Tham gia
    24-08-2002
    Bài viết
    59
    Like
    0
    Thanked 0 Times in 0 Posts
    Gui Mail cho minh tai dia chi quatban@hotmail.com, minh se gui cho 1 doan ma nguon lam chuyen do(Tu dong setfont he thong khi chay chuong trinh)

  4. #4
    Tham gia
    27-09-2002
    Location
    Ho Chi Minh
    Bài viết
    43
    Like
    0
    Thanked 0 Times in 0 Posts
    sao bạn không add code đó lên mạng luôn cho mọi người cùng học hỏi mà phải viết thư riêng vậy?

  5. #5
    Tham gia
    10-09-2002
    Location
    The Hell
    Bài viết
    662
    Like
    0
    Thanked 1 Time in 1 Post
    cách của nnh nông dân wé.
    Hãy đến đây www.vb4u.dk3.com
    c ya !!!

  6. #6
    Tham gia
    16-07-2002
    Location
    Ha Noi
    Bài viết
    1,281
    Like
    0
    Thanked 0 Times in 0 Posts
    Sử dụng hàm SystemParametersInfo

  7. #7
    Tham gia
    27-09-2002
    Location
    Ho Chi Minh
    Bài viết
    43
    Like
    0
    Thanked 0 Times in 0 Posts
    Bạn có thể cho mình một ví dụ cụ thể được không?

    cám ơn

  8. #8
    Tham gia
    16-07-2002
    Location
    none
    Bài viết
    33
    Like
    0
    Thanked 0 Times in 0 Posts
    Hi White_Rose !
    Bạn có thể cho một ví dụ của ham SystemParametersInfo

  9. #9
    Tham gia
    16-07-2002
    Location
    Ha Noi
    Bài viết
    1,281
    Like
    0
    Thanked 0 Times in 0 Posts
    Private Type LOGFONT
    lfHeight As Long
    lfWidth As Long
    lfEscapement As Long
    lfOrientation As Long
    lfWeight As Long
    lfItalic As Byte
    lfUnderline As Byte
    lfStrikeOut As Byte
    lfCharSet As Byte
    lfOutPrecision As Byte
    lfClipPrecision As Byte
    lfQuality As Byte
    lfPitchAndFamily As Byte
    lfFaceName(1 To 32) As Byte
    End Type

    Private Type NONCLIENTMETRICS
    cbSize As Long
    iBorderWidth As Long
    iScrollWidth As Long
    iScrollHeight As Long
    iCaptionWidth As Long
    iCaptionHeight As Long
    lfCaptionFont As LOGFONT
    iSMCaptionWidth As Long
    iSMCaptionHeight As Long
    lfSMCaptionFont As LOGFONT
    iMenuWidth As Long
    iMenuHeight As Long
    lfMenuFont As LOGFONT
    lfStatusFont As LOGFONT
    lfMessageFont As LOGFONT
    End Type

    Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" _
    (ByVal uAction As Long, ByVal uParam As Long, lpvParam As NONCLIENTMETRICS, _
    ByVal fuWinIni As Long) As Long

    Sub ChangeTitleFont(fontname As String)
    Dim ncm As NONCLIENTMETRICS, oldncm As NONCLIENTMETRICS
    Dim i As Long
    'Lấy thông tin về font hiện tại
    ncm.cbSize = Len(ncm)
    i = SystemParametersInfo(41, 0, ncm, 0)
    'Lưu giữ font cũ và tạo thông tin về font mới
    oldncm = ncm
    For i = 1 To Len(fontname)
    ncm.lfMessageFont.lfFaceName(i) = Asc(Mid(fontname, i, 1))
    ncm.lfCaptionFont.lfFaceName(i) = Asc(Mid(fontname, i, 1))
    Next
    ncm.lfMessageFont.lfFaceName(i) = 0
    ncm.lfCaptionFont.lfFaceName(i) = 0
    'Thiết lập font mới
    i = SystemParametersInfo(42, 0, ncm, &H1 Or &H2)
    MsgBox "Setting new font is completed!"
    'Trả lại font ban đầu
    i = SystemParametersInfo(42, 0, oldcm, &H1 Or &H2)
    MsgBox "Example is completed!"
    End Sub

    Chi tiết hơn
    http://207.150.221.94/ws-ihatelov/vb...topic=8&id=336

Bookmarks

Quy định

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •