Style Selector Question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37882
    TAZ
    Participant

    Is there a way to have the TsSkinSelector dropdown its list using code?

    I tried imitating the behaviour of a combobox (CB_SHOWDROPDOWN) but it does not work.

    Also not sure what Show/Hide does.

    #58106
    Support
    Keymaster

    Hello

    Try this code:

    Code:
    sSkinSelector1.Perform(WM_LBUTTONDOWN, 0, 0)

    Show and Hide methods are inherited from TControl and just shows/hides the entire control.

    #58109
    TAZ
    Participant
    'Support' wrote:

    Hello

    Try this code:

    Code:
    sSkinSelector1.Perform(WM_LBUTTONDOWN, 0, 0)

    Show and Hide methods are inherited from TControl and just shows/hides the entire control.

    The code you suggested worked fine when skin selector does not have focus.

    If skin selector has focus, I am still not able to cause the dropdown to open.

    Any more suggestions.

    #58110
    TAZ
    Participant
    'TAZ' wrote:

    The code you suggested worked fine when skin selector does not have focus.

    If skin selector has focus, I am still not able to cause the dropdown to open.

    Any more suggestions.

    Never mind about the previous statement.

    On one application I am calling it from FormKeydown. On another application it is called from an action list. The one with the action list opens the skin selector when the skin selector has focus.

    Small things.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.