I'm trying to do the following...

I have 4 edit boxes in a dialog which require you to fill out a mIRC color index number. I have added an icon with the mIRC color palette as image and would like people to be able to click on the image and the corresponding number will be filled out in the last selected edit box.

I can capture the selected number fine by looking at the mouse position during the sclick on the icon id. However, I can't seem to trigger an on DIALOG event when first clicking in an edit box (which I'd later refer to with the icon sclick). From the looks of it (also the help file) edit boxes do not support a sclick event. The same occurs - or rather, does not - when I use a combo edit box.

What is my best option here? Should I rely on my mouse position when selecting an edit box first or am I missing something?

I could of course use a dropdown menu with all 15 numbers, but that's not really the point of this exercise.