malloc
New member
Hey everyone,
I recently got myself a copy of VS 2005, and started playing around looking at the changes which was made since VS 6.
Unfortunately, like with most programs, the controls which comes bundled with VS 2005 (at least they come bundled), although good, are purely plain blunt.
Yeah, I know, so why not make my own *laugh*. Well that is why I am here.
I have not worked a lot with making custom Windows Library Controls, though I do know how to sit down, and create my own control, etc. There are still a few things I am trying to figure out:
a) Each control has a list of properties, now I know how to give a new control such properties, override existing properties, but how do you remove property which is predefined, for example when you create a control which Inherits it’s properties from a label, etc.
b) Also, how does one disable a certain property depending on what other properties have been set to? For example, let’s say I have a label which can be either a normal label or a hyperlink label, thus you would choose the type by setting the property.
1. when the label is a hyperlink label, there should be properties for ForeColorNormal, ForeColorHover, ForeColorMouseDown, ForeColorClicked, but;
2. when the label is a normal label, none of those four should be enabled, but there would be the normal ForeColor property.
c) Lastly, about properties, you see some controls which has (let’s call them) property groups, for example the font. There you would be able to choose the font name, size, style, etc. How is this achieved?
That is about it.
Kind regards,
MalloC
I recently got myself a copy of VS 2005, and started playing around looking at the changes which was made since VS 6.
Unfortunately, like with most programs, the controls which comes bundled with VS 2005 (at least they come bundled), although good, are purely plain blunt.
Yeah, I know, so why not make my own *laugh*. Well that is why I am here.
I have not worked a lot with making custom Windows Library Controls, though I do know how to sit down, and create my own control, etc. There are still a few things I am trying to figure out:
a) Each control has a list of properties, now I know how to give a new control such properties, override existing properties, but how do you remove property which is predefined, for example when you create a control which Inherits it’s properties from a label, etc.
b) Also, how does one disable a certain property depending on what other properties have been set to? For example, let’s say I have a label which can be either a normal label or a hyperlink label, thus you would choose the type by setting the property.
1. when the label is a hyperlink label, there should be properties for ForeColorNormal, ForeColorHover, ForeColorMouseDown, ForeColorClicked, but;
2. when the label is a normal label, none of those four should be enabled, but there would be the normal ForeColor property.
c) Lastly, about properties, you see some controls which has (let’s call them) property groups, for example the font. There you would be able to choose the font name, size, style, etc. How is this achieved?
That is about it.
Kind regards,
MalloC