IonicWind Software

IWBasic => General Questions => Topic started by: Brian on December 22, 2006, 11:26:46 AM

Title: XP themes
Post by: Brian on December 22, 2006, 11:26:46 AM
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
Title: Re: XP themes
Post by: Ionic Wind Support Team on December 22, 2006, 11:42:49 AM
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.
Title: Re: XP themes
Post by: Brian on December 23, 2006, 06:45:00 AM
Thanks, Paul - fitted and working now

Brian