Results 1 to 7 of 7

Thread: Trouble Displaying Wingdings...

  1. #1

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Question Trouble Displaying Wingdings...

    ... on Asian computers. I built a command button array of 4 buttons to show numeric characters. The caption toggles fonts between MS San Serif and Wingdings when any of them is pressed:
    Code:
    Private Sub Command1_Click(Index As Integer)
    If Command1(Index).FontName = "Wingdings" Then
        Command1(Index).FontName = "MS Sans Serif"
        Command1(Index).FontSize = 8
        Command1(Index).FontBold = True
        Command1(Index).Caption = Format$(Index + 1, "#")
    Else: Command1(Index).FontName = "Wingdings"
        Command1(Index).FontSize = 12
        Command1(Index).FontBold = False
        Command1(Index).Caption = Chr$(140 + Index)
    End If
    End Sub
    
    Private Sub Form_Load()
    For I = 0 To 3
        Command1(I).FontName = "MS Sans Serif"
        Command1(I).FontSize = 8
        Command1(I).FontBold = True
        Command1(I).Caption = Format$(I + 1, "#")
    Next
    End Sub
    It works flawlessly on USA machines. Asian computers display a blank rather than a number when pressed.
    (1) Is there a simple fix?
    (2) Is it possible that the font is not available on the Asian machines? No error is being reported.
    Doctor Ed

  2. #2

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Trouble Displaying Wingdings...

    Well, I asked the Asians to check for the existence of the WingDings font on their computers. It's there, so that rules out item (2) in Post #1.

    What about this statement in the code?
    Code:
    Command1(Index).Caption = Chr$(140 + Index)
    Note that 140 exceeds 128. Could that be the culprit?
    Doctor Ed

  3. #3
    Hyperactive Member
    Join Date
    Sep 2009
    Location
    Lost in thought
    Posts
    349

    Re: Trouble Displaying Wingdings...

    Chr$(140) = €
    Chr$(141) = €
    Chr$(142) = €
    Chr$(143) = €
    Chr$(48) = 0
    Chr$(49) = 1

  4. #4

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Trouble Displaying Wingdings...

    Quote Originally Posted by 5ms? View Post
    Chr$(140) = €
    Chr$(141) = €
    Chr$(142) = €
    Chr$(143) = €
    Chr$(48) = 0
    Chr$(49) = 1
    Explanation? Why did you post Chr$(48) and Chr$(49)? Just curious.

    RhinoBull at al., do you have a clue on this issue in Post #1?
    Last edited by Code Doc; Oct 11th, 2009 at 06:40 PM.
    Doctor Ed

  5. #5
    Hyperactive Member
    Join Date
    Sep 2009
    Location
    Lost in thought
    Posts
    349

    Re: Trouble Displaying Wingdings...

    Explanation? Why did you post Chr$(48) and Chr$(49)? Just curious
    In Post #1
    I built a command button array of 4 buttons to show numeric characters.
    Well, 0 and 1 are numeric characters, Yes?

  6. #6

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Trouble Displaying Wingdings...

    Quote Originally Posted by 5ms? View Post
    In Post #1

    Well, 0 and 1 are numeric characters, Yes?
    Chr$(48) and Chr$(49) are not going to display numeric characters in the Wingdings font. Try it.
    Doctor Ed

  7. #7
    Hyperactive Member
    Join Date
    Sep 2009
    Location
    Lost in thought
    Posts
    349

    Re: Trouble Displaying Wingdings...

    lol, It first time I've see the Wingdings font lol

Posting Permissions

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



Click Here to Expand Forum to Full Width