English
Bugs and vermeintliche

MenuIcons - X3.1

 

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:
CLS
'Set("MenuIconSize", 16)
Declare ico&
ico& = Create("hIcon","a")
PopUp "&Datei"
AppendMenu 100,"&Laden",-ico&

While 1

    Waitinput

EndWhile

deleteobject ico&



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
 
XProfan X3
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

04/13/16  
 




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
 
XProfan X3
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

04/14/16  
 




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 X3
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/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
 
XProfan X3
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

04/14/16  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.298 Views

Untitledvor 0 min.
HofK03/31/18
rquindt10/17/16
Wilfried05/22/16
Torsten Rümker05/10/16
More...

Themeninformationen

this Topic has 2 subscriber:

Georg Teles (3x)
RGH (2x)


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