| |
|
|
 Georg Teles | Nabend,
(Ohje having it in the bow-area the Forums posted to of/ one while, watts apparently not as New marked lol)
does me sorrow, I störe, but möglicherweise there here a ?
One Beispielcode:

if the Icon-lever positively transfer becomes, is the Result How expects (Menu in Image left To see).
But if I the Menu in standard-Style keep would like (windows standard) must I lt. Description the Icon-lever negative transfer. now there 2 Problems How one in the Image right sees: the Icon remaining in the Size of 32x32 Pixel, even if I Single-Icons with 16x16 px einsetze (the MenuIconSize helps neither).
the others trouble is the Backgroundcolor the Icons at Fokus, tappt im dunkeln remaining white.
bow or have I what überlesen ? 
Hello |
|
|
| |
|
|
|
 RGH | The Set("Menu..."...)-Funkltion remaining here without function, there it itself Yes now not for a User-Drawn-Menu deals. means becomes the Icon in the Size displayed, in the it vorliegt. The Standardgröße of Icons is now time 32 x 32 Pixel. If you to that example The interne Toolbar-Bitmap using, have You The 16 x 16 Pixel large Icons:
CLS
var hBmp& = create("HPIC", 0, "TOOLBAR")
var hIL& = Create("ImageList", 16, 16, hBmp&, rgb(192, 192, 192))
DeleteObject hBmp&
Declare ico&
ico& = ImageList("GetIcon", hIL&, 4)
PopUp "&Datei"
AppendMenu 100,"&Laden",-ico&
While 1
Waitinput
EndWhile
deleteobject ico&
The Backgroundcolor at Focus (sooner the highlight the chosen Menüpunktes) becomes Windows undertaken. there have I no stocks dran!
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 04/13/16 ▲ |
|
|
|
|
 Georg Teles | understand, with the Backgroundcolor can itself nothing dran Change - have only an example in Visual Basic seen, where it through Callback geregelt watts Stichworte MEASUREITEMSTRUCT [...] and DRAWITEMSTRUCT [...] means too nothing other as one Ownerdraw, then look I the accurate at times ...
with the Size wished aufzeigen, that the loaded Icon (Single-Icon 16x16 px) To 32x32 px skaliert becomes (with Übergabe negative on AppendMenu), the understand I do not 
Well well, then are The ImageListen dran, these have I never using 
Regards |
|
|
| |
|
|
|
 RGH | it'll with create("hIcon",...) with Iconnamen The windows-API LoadIcon using, The Icons fundamentally in the Standardgröße 32 x 32 loading.
with OwnerDrawn-Menüs (with positivem Iconhandle) scaliere I The Icons according the tuned Size. there are then too The Hintergrundfarben possible.
Greeting Roland |
|
|
| XProfan X3Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 04/14/16 ▲ |
|
|
|
|
 Georg Teles | Aaah many Thanks !
with Owner-Draw is everything clear, known not, that You with hIcon standardmäßig in the Size of 32 x 32 lädtst, this is now clear 
Regards |
|
|
| |
|
|