April 18, 2024, 01:49:31 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Mouse Over Control made easier - Version 4

Started by Andy, October 30, 2016, 07:37:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

October 30, 2016, 07:37:35 AM Last Edit: November 01, 2016, 12:56:23 AM by Andy
With Fasecero's help, I've made the MouseOverControl commands much easier to use.

The MouseOverControl command now only needs two parameters:
e.g. MouseOverControl(win,button_1)

The type of control is registered when the mouse moves over it, so that removes one parameter.

To remove the window's description name parameter, I now use this command:
SetWindowName(win,"win")

It is used once only, just after an OPENWIDOW command.

Also, there was several commands that seemed to get "lost" - don't know how, but they are now back in this version, they are:

WindowHasFocus(win)
WindowMinimised(win) or WindowMinimized(win)
WindowMaximised(win) or WindowMaximized(win)
WindowMoved(win)

Also,

StartTracking(win)
StopTracking(win)

Simplified commands:

TrackWindow(win)
MouseOver(win,static_1)
MouseMovedOff(win,static_1)

I've gone to great lengths to document the help file, the new buttontest.iwb, and the new include file.

I hope you find this easy to use - and if you have any suggestions for more commands, please let me know.

Sorry if you've just downloaded version 2, please download this latest version (version 4) and overwrite any existing files.

P.S. Version 3 does not exist!

Enjoy!

Andy.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.