English
Forum

Images (Icons)

 

H.Brill
Hi,
have time a Question Images or. Icons.
there it Icons How sand on the sea gives, have I
me time one Program written, the a
Ordner with icons einliest and these then as
Bilderliste (Toolbar) in a .bmp save.
target ought to his, that I me The work with a
Malprogramm save.

Herausgekommen is that here :
Declare lever btn1, btn2, lb
Declare Long end, String File, ordner
end = 0
File = $PROGDIR + "\Images.bmp"
Window 600, 400
btn1 = Create("Button", %HWnd, "Ordner", 10, 10, 60, 25)
btn2 = Create("Button", %HWnd, "Ende",   80, 10, 60, 25)
lb   = Create("Listbox", %HWnd, 0, 10, 50, 450, 200)

WhileNot end

    WaitInput

    If Clicked(btn1)

        ordner = $ ChooseDir(%HWnd, "Ordner wählen", "C:\", 3, "")

        If ordner <> ""

            CHDIR ordner
            ClearList
            AddFiles "*.ico"

            If %GetCount > 0

                ClearList lb
                Move("ListToHandle", lb, ordner)
                InsertImages(lb)

            EndIf

        Else

            MessageBox("No Ordner select !", "Error !", 0)

        EndIf

    ElseIf Clicked(btn2)

        end = 1

    EndIf

    Case %Key = 2 : end = 1

EndWhile

Proc InsertImages

    Parameters lever list, String way
    Declare Long x, y, g
    x = 1
    y = 1
    g = GetCount(list) * 32
    Mcls g, 32
    StartPaint -1

    WhileLoop 0, GetCount(list) - 1

        DrawPic way + GetString$(list, &LOOP), x, y; 0
        Inc x, 32

    EndWhile

    EndPaint
    StartPaint -1
    SaveBmp ordner + "Images.bmp", 0, 0 - g, 32
    EndPaint
    MessageBox("Datei : " + ordner + "images.bmp \ngespeichert !", "Info !", 0)

ENDPROC

End

the functions too so wonderful. mere, if I The
Bitmap with the Reshacker import, get The
individual Bildchen a pink Teint and go too so
subsequently in my Program displayed.I show tappt im dunkeln
as Toolbar on. load I The Bitmap one Malprogramm,
go The Bildchen integrally normal displayed.

Why could the lying ?
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/21/17  
 




Jörg
Sellmeyer
could you the pink in the Reshacker as Transparenzfarbe define? alternatively can you Yes in Profan The Transparenzfarbe take on. optional the left downstairs Pixel or a spare wählbare Colornummer.
 
XProfan X3
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/21/17  
 




ByteAttack
look time: [...] 

Latest Version in the attachment!

Download


1.161 kB
Bezeichnung:Toolbar Maker Beta
Hochgeladen:08/21/17
Downloadcounter109
Download
 
Website:  [...] 
Facebook:  [...] 
08/21/17  
 




H.Brill
it has on the Save lain.
The Bitmap watts in 24bit stored.
Have tappt im dunkeln now in Paint in 256 colours
stored.
PS:
byte-Attack :
The with your Toolbarmaker gespeicherte
Bitmap becomes too pink in the ResHacker
displayed.

the only, what helps, is How said
in Paint loading and as 256 colours-Bitmap
again Save.
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
08/22/17  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.282 Views

Untitledvor 0 min.
Langer01/01/22
iF10/31/20
Jörg Sellmeyer05/28/20
Uwe ''Pascal'' Niemeier05/12/19
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie