Hallo,
wenn man die Ressourcen-Bitmap Toolbar32 vom Interpreter / Runtime benutzt,
um einzelne Icons, die man braucht, in einer ImageList zu speichern, ist man oft
am Abzählen, welche Icon-Nummer man braucht.
Den folgenden Code kann man compilieren und das Programm ins Benutzermenü
einbinden. So hat man die zugeordneten Nummern auf einen Blick.
Code
Declare Long anz, x, y, ende, Handle hBmp, hIL
WindowTitle "TOOLBAR - Nummern"
Window 800, 500
x = 5 : y = 5
ende = 0
hBmp = create("hPic", 0, "TOOLBAR32")
hIL = Create("ImageList", 32, 32, hBmp, rgb(192, 192, 192))
anz = GetCount(hIL)
WhileLoop 0, anz -1
If (&LOOP MOD 15) = 0
Inc y, 60
x = 5
EndIf
Inc x, 40
DrawText x + 5, y - 15, Str$(&LOOP)
DrawIcon hIL, &LOOP, x, Y
EndWhile
WhileNot ende
WaitInput
Case %Key = 2 : ende = 1
EndWhile
DeleteObject hIL, hBmp
End
Alles anzeigen