Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Declare an .ico file
#15
Alright. I broke down and added y0ur Icon utility mostly to cover my bases:

Code: (Select All)
' set title icon
Sub DisplayIcon
    Icon$ = UCase$(TitleBarIcon$)
    If Right$(Icon$, 4) = ".ICO" Then
        If _FileExists(Icon$) Then
            Icon& = LOADICON&(Icon$, 1)
            If Icon& < -1 Then
                _Icon Icon&
                _FreeImage Icon&
            End If
        End If
    Else
        Icon& = _LoadImage(TitleBarIcon$, 32)
        If Icon& < -1 Then
            _Icon Icon&
            _FreeImage Icon&
        End If
    End If
End Sub
Reply


Messages In This Thread
Declare an .ico file - by eoredson - 03-28-2023, 01:49 AM
RE: Declare an .ico file - by eoredson - 03-28-2023, 02:02 AM
RE: Declare an .ico file - by bplus - 03-28-2023, 02:10 AM
RE: Declare an .ico file - by eoredson - 03-28-2023, 02:19 AM
RE: Declare an .ico file - by dbox - 03-28-2023, 03:50 AM
RE: Declare an .ico file - by eoredson - 03-28-2023, 04:02 AM
RE: Declare an .ico file - by eoredson - 03-28-2023, 04:33 AM
RE: Declare an .ico file - by TempodiBasic - 03-28-2023, 01:51 PM
RE: Declare an .ico file - by Petr - 03-28-2023, 02:25 PM
RE: Declare an .ico file - by eoredson - 03-28-2023, 10:06 PM
RE: Declare an .ico file - by Petr - 03-29-2023, 09:46 AM
RE: Declare an .ico file - by eoredson - 03-28-2023, 11:34 PM
RE: Declare an .ico file - by mnrvovrfc - 03-29-2023, 11:25 AM
RE: Declare an .ico file - by eoredson - 03-30-2023, 02:05 AM
RE: Declare an .ico file - by eoredson - 03-30-2023, 05:23 AM
RE: Declare an .ico file - by eoredson - 02-26-2024, 05:02 AM
RE: Declare an .ico file - by bplus - 02-26-2024, 03:11 PM



Users browsing this thread: 1 Guest(s)