473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

mdilist ownerdraw

Hi group,

I was wondering if anyone has ever done this before, I've got a working
ownerdrawn menu the only thing I can't get to work is to ownerdraw the items
the get automaticaly created in a mdilist. I thought if I'd handle the click
event of the menuItem with the mdilist property and then iterate true it's
collection of MenuItems and dynamicaly add the handlers used for my drawitem
and measueritem it "could" work but it doesn't otherwise I wouldn't be
posting this question. Has anyone done this before?

Thanks in advance

Greetz Peter

This is my code used in the clickevent (which even doesn't get fired when I
click the menuItem):
Dim obj As MenuItem
For Each obj In MnuSchermenOpen.MenuItems
obj.OwnerDraw = True
AddHandler obj.DrawItem, AddressOf MdiListDraw
AddHandler obj.MeasureItem, AddressOf MdiMeasure
Next
Nov 21 '05 #1
0 1060

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Massimo Zaccarin | last post by:
Hello, how can I exclude an MDI child Form from the list shown by a MenuItem with MDIList prop. set to True? Is there a way to do it? Thanks
0
by: pa.singer | last post by:
I have an MDIList menu item that I want to enumerate at run-time and possibly change the text shown for some of the MDI children included in that list. When I enumerate the collection for that...
4
by: pa.singer | last post by:
I have an MDIList menu item that I want to enumerate at run-time and possibly change the text shown for some of the MDI children included in that list. When I enumerate the collection for that...
3
by: andreas | last post by:
I have many childs forms in a parent form. And I use mdiList in menu/windows When I minimize all these childs with a menu command I want that the selected child in the mdiLIst should open but it...
1
by: andreas | last post by:
I have a MDI form with a MdiList in a MenuItem And also 3 different child types, one child is like a background with a picturebox in it. So this must be always as background and never hide the...
1
by: tmda | last post by:
I'm using OwnerDraw for some customization in my ListView - adding color to item backgrounds. I'm using the ListView specifically for it's OwnerDraw capability. I originally was using the...
3
by: Ricardo Maciel | last post by:
The How to page: http://msdn2.microsoft.com/en-us/library/7aw8zc76(VS.80).aspx walks through the creation of MDI child forms. It includes instructions to set the property MdiList to maintain a...
2
by: Fir5tSight | last post by:
Hi, I'm experimenting sample code created in Visual Studio 2002 (or 2003) in my Visual Studio 2005. However, I can't find the following in VS 2005: - MainMenu control in Toolbox; -...
0
by: JensB | last post by:
Hi I want to control the navigation between 7-8 childforms in my MDIparent form project with buttons instead of the build-in MdiList. I am able to show a Childform with this code:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.