Help with custom properties in my own control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: André Nogueira (anog_at_netcabo.pt.NOSPAM)
Date: 07/21/04


Date: Wed, 21 Jul 2004 19:25:55 +0100

Hi there.
I have my own control and can add properties that are integers or strings or
icons or whatever.
But how can I make a property that only lets the user select a predefined
value?
Like in the Visible property you can't enter your own values, you can just
select True or False.
I'd like to have a property where the user can only select "Value A" "Value
B" or "Value C". I do not want it to be a boolean (as True and False are)
but my custom strings.
Can this be done? How?
Thank you in advance.

André Nogueira



Relevant Pages

  • Re: DDX problem: Is DDX even worth the trouble?
    ... control has a DDX string assignment on it, and each edit control has a ... handler for EN_CHANGE. ... information from the strings to the UI. ... unwanted reentrancy) is to set a bool member of your ...
    (microsoft.public.vc.mfc)
  • Re: Roland GK-3 Guitar Pickup
    ... I can have two different instruments on different strings and combine ... two patches for each instrument and then control the blend with the GR33 ... midi out if there is another synth to send to. ...
    (rec.music.makers.synth)
  • Re: Fast text insert into textbox
    ... red-lines my CPU and, even if I limit the TextBox to just 30KB of text, ... Or, rather, why is updating the control /so/ slow, compared to hacking ... Dim iLen As Integer = .Text.Length + sText.Length ... strings which ends with VBCRLF (probably automaticly because you retrieve ...
    (microsoft.public.dotnet.languages.vb)
  • Passing string pointers in a custom control-data structure == FAIL
    ... I have a weird problem with passing data to a custom window class on ... What's different about this particular control is that the control-data ... The main program allocates the strings (based on text loaded from ... for some reason all the string pointers ...
    (comp.os.os2.programmer.misc)
  • Re: MIDI box with orchestral instrument sounds
    ... want more strings when I mix strings and grand piano. ... to have some control over mixing two sounds together. ... ratio of the two - I'd love to be able to do that sort of thing. ... I have a P-85 and can tell you that it is possible to control the ...
    (rec.music.makers.piano)