🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #3403

Re: creare icone

#3403
From: Toner
Date: Fri, 12 Jul 2002 13:29
57 lines
2325 bytes
Questo converte i bmp in ico




Option Explicit
' ****************
'
' ****************

Private Sub cmdBmp_Click()
    On Error Resume Next

    cdlg.ShowOpen

    If Err.Number = 0 Then
        txtBitmap = cdlg.FileName
    End If

End Sub

Private Sub cmdChiudi_Click()
    End
End Sub

Private Sub cmdGo_Click()
    Call SavePicture(picICO.Picture, txtIcona)
End Sub

Private Sub Form_Load()

End Sub

Private Sub picDisplayer_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
    If Button = 1 Then
        picICO.Cls
        picMask.BackColor = picDisplayer.Point(X, Y)
        ListICO.ListImages.Remove (1)
        ListICO.MaskColor = picMask.BackColor
        ListICO.UseMaskColor = True
        ListICO.ListImages.Add , , picDisplayer.Picture
        Set picICO.Picture = ListICO.ListImages(1).ExtractIcon
    End If
End Sub

Private Sub txtBitmap_Change()

    If Dir(txtBitmap.Text) <> "" And txtBitmap <> "" Then
        ListICO.ListImages.Clear
        Call ListICO.ListImages.Add(, , LoadPicture(txtBitmap))
        txtIcona = txtBitmap.Text
        txtIcona = Left(txtIcona, Len(txtIcona) - 4) & ".ico"
        picDisplayer.Cls
        picDisplayer.Picture = LoadPicture(txtBitmap)
    End If
End Sub
Technical Details
Message-ID: <4RAX8.72570$vm5.2635724@news2.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!skynet.be!skynet.be!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news2.tin.it.POSTED!not-for-mail
References: <MdLR8.1060$vm5.54661@news2.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94ee,e25e0dab2cd70c84
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2002-07-12 06:52:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!skynet.be!skynet.be!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news2.tin.it.POSTED!not-for-mail
From: "Toner" <black_toner@hotmail.it>
Newsgroups: free.it.visual-basic
References: <MdLR8.1060$vm5.54661@news2.tin.it>
Subject: Re: creare icone
Lines: 60
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <4RAX8.72570$vm5.2635724@news2.tin.it>
Date: Fri, 12 Jul 2002 13:29:36 GMT
NNTP-Posting-Host: 80.104.64.26
X-Complaints-To: newsmaster@tin.it
X-Trace: news2.tin.it 1026480576 80.104.64.26 (Fri, 12 Jul 2002 15:29:36 MET DST)
NNTP-Posting-Date: Fri, 12 Jul 2002 15:29:36 MET DST
Organization: TIN