May 09, 2024, 01:02:10 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


XP themes

Started by Brian, December 22, 2006, 11:26:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

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

Ionic Wind Support Team

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.
Ionic Wind Support Team

Brian

Thanks, Paul - fitted and working now

Brian