| |
|
|
- Page 1 - |
|
Christian Schneider | Hi,
if I one 16x16 large Icon by hicon in a Iconbutton load becomes the Icon independent of the Buttongröße vergrößert.
knows someone for a Solution? (Verwende 11Sub12)
example in the attachment |
|
|
| |
|
|
|
| |
|
- Page 1 - |
|
Jac de Lad | I Have time in the MSDN nachgeschaut and the whole with APIs nachgebildet: Gleiches Result. i'm no commands noticed, with which the To to fix goes... |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/14/08 ▲ |
|
|
|
|
Christian Schneider | then werd ichs over The Bmp make, before I yet long rumfrickel. thanks for your trouble |
|
|
| |
|
|
|
| The problem could LR_DEFAULTSIZE [...] his: Uses the width or height specified by the system metric values for cursors or icons, if the cxDesired or cyDesired values are set to zero. If this flag is hardship specified and cxDesired and cyDesired are set to zero, the function uses the actual resource size. If the resource contains multiple images, the function uses the size of the first image. |
|
|
| |
|
|
|
Jac de Lad | but to the loading is the Icon still 16*16 (nachweisbar with DrawPic). it'll first stretched, if it on the Button comes. |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/15/08 ▲ |
|
|
|
|
Andreas Miethe
| CompileMarkSeparation $H windows.ph
$H shellapi.ph
Declare LargeIcon&,SmallIcon&
CLS
~ExtractIconEx(IconXP32.dll,7,Addr(LargeIcon&),Addr(SmallIcon&),1)
Create(IconButton,%hwnd,LargeIcon&,1,1,50,50)
Create(IconButton,%hwnd,SmallIcon&,1,71,50,50)
Waitinput
~DestroyIcon(LargeIcon&)
~DestroyIcon(SmallIcon&)
Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...] | 01/15/08 ▲ | |
|
|
|
|
Jac de Lad | I see, interestingly. Womit The thing clarified would. |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/15/08 ▲ |
|
|
|
|
| and so Have I me the now zurecht gewurstelt CompileMarkSeparation $H windows.ph
$H shellapi.ph
Declare largeicon&,smallicon&
DECLARE txt%,font0%,b%,h%
font0%=CREATE(FONT,ARIAL,16,6,0,0,0)
-----------------------------------------------------
PROC SMALL_BUTTON
b%=25:h%=25
PARAMETERS icon%,X%,Y%,text$
~ExtractIconEx(shell32.dll,icon%,Addr(LargeIcon&),Addr(SmallIcon&),1)
Create(IconButton,%hwnd,SmallIcon&,X%,Y%,b%,h%)
txt%=CREATE(TEXT,%HWnd,text$,(x%+(b%+2)),(y%+(h%/4)),80,20)
SetFont txt%,font0%
ENDPROC
-------------------------------------------------
PROC LARGE_BUTTON
b%=40:h%=40
PARAMETERS icon%,X%,Y%,text$
~ExtractIconEx(shell32.dll,icon%,Addr(LargeIcon&),Addr(SmallIcon&),1)
Create(IconButton,%hwnd,LargeIcon&,X%,Y%,b%,h%)
txt%=CREATE(TEXT,%HWnd,text$,(x%+(b%+2)),(y%+(h%/3)),80,20)
SetFont txt%,font0%
ENDPROC
-------------------------------------------------
CLS RGB(235,235,220)
SMALL_BUTTON 23,10,10,Hilfe F1
SMALL_BUTTON 38,100,10,Öffnen
LARGE_BUTTON 16,190,10,Drucken
Waitinput
~DestroyIcon(SmallIcon&)
~DestroyIcon(LargeIcon&)
End
|
|
|
| |
|
|
|
Andreas Miethe
| another Solution ! CompileMarkSeparation $H windows.ph
Declare Dll&,ModulHandle&,LargeIcon&,SmallIcon&,Icon&
CLS
Dll& = UseDll(IconXP32.dll)
ModulHandle& = ~GetModuleHandle(IconXP32.dll)
Icon& = ~LoadImage(ModulHandle&,#8,~IMAGE_ICON,16,16,0)
Create(IconButton,%hwnd,Icon&,1,11,50,50)
Waitinput
~DestroyIcon(Icon&)
FreeDll Dll&
Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...] | 01/15/08 ▲ | |
|
|
|
|
Jac de Lad | comic, I had it too with LoadImage probiert, having but none success (the image was again To big). |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/15/08 ▲ |
|
|
|
|
Andreas Miethe
| Parameter 4 and 5 give The Size to . so can You The Icons in eachone beliebigen Size loading, power though little sense, if The Icons in 16 X 16 Pixeln exist. |
|
|
| Gruss Andreas ________ ________ ________ ________ _ Profan 3.3 - XProfanX2 Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher Homepage : [...] | 01/15/08 ▲ |
|
|
|
|
Jac de Lad | Jaja, I know, I make the a good many times so. before Rolands Imagelist-command came have I the always with LoadImage made. only wars by me komsicherweise nevertheless vergrößert. Well, alike, there lying the Error sure again elsewhere. Hauptsache It's all right now.
Jac |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/15/08 ▲ |
|
|
|
| |
|
- Page 2 - |
|
|
Christian Schneider | thanks people! Habs of course in the meantime by .bmp resolved, but at next proposition come I gladly on it back. |
|
|
| |
|
|