Hi,
I decided to be clever, 'cos I wanted my buttons to look posh, and copied Paul's ebdev.exe.manifest to my new test program's folder, and renamed it as per my new program
All I have on the window is 3 buttons, 1 static text and one edit box. Now when I run the program, it brings up a file open
dialog box four times, and I have to cancel to get back to the main window
Coincidentally, the first button is called "Load picture" - is that a clue?
What am I doing wrong? The style for the buttons is 0x5000000
Thanks for any clues,
Brian
You have to check @notifycode when writing a buttons handler.
select @class
case @idcontrol
select @controlid
case button1:
if @notifycode = 0
'the button was clicked
endif
When a button is themed it gets many more messages besides just a 'click' message. The button starts receiving notifications of highlight when the mouse hovers over it. So check the notification code for 0 and you'll be fine.
Paul.
Thanks, Paul - fitted and working now
Brian