1. Is there an AutoHide code in Euphoria?

Hello, Selgor here. Just wondering if there is a programme or code in winLIB to autohide ?

Cheers. Selgor.

new topic     » topic index » view message » categorize

2. Re: Is there an AutoHide code in Euphoria?

Selgor said...

Hello, Selgor here. Just wondering if there is a programme or code in winLIB to autohide ?

Cheers. Selgor.

What do you mean by "autohide"?

new topic     » goto parent     » topic index » view message » categorize

3. Re: Is there an AutoHide code in Euphoria?

Hello Derek. If I have a "toolbar strip" containing icons , each icon , when clicked , will launch a programme . The "strip" then moves to the edge of the screen , on icon click , either to left,right,top,bottom, and "hides'. If the mouse moves to the position , the edge, the strip "appears". e.g. ButtonBar, Launch on the Fly, Stat Bar , Nexus, Aqua Dock, Rocket Dock are a few of the commercial programmes that have the autohide feature. And Microsoft Office toolbar also has an autohide feature. I was wondering how it would be coded. But if Euphoria does not have it then O.K. .

Cheers, Selgor.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Is there an AutoHide code in Euphoria?

Selgor said...

Hello Derek. If I have a "toolbar strip" containing icons , each icon , when clicked , will launch a programme . The "strip" then moves to the edge of the screen , on icon click , either to left,right,top,bottom, and "hides'. If the mouse moves to the position , the edge, the strip "appears".

Ok, I understand what you are after now.

This has not been coded into Win32lib yet, but shouldn't be too hard to do.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Is there an AutoHide code in Euphoria?

Derek. Can you direct me to a starting piece of code . Maybe Hover.exw. ? Just a starting point is all that I require. Cheers. Selgor.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Is there an AutoHide code in Euphoria?

Selgor said...

Derek. Can you direct me to a starting piece of code . Maybe Hover.exw. ? Just a starting point is all that I require. Cheers. Selgor.

Start what? What do you mean by autohide? You need to provide a description of what you want to see.

Matt

new topic     » goto parent     » topic index » view message » categorize

7. Re: Is there an AutoHide code in Euphoria?

Hello Mat. I already have a "toolbar strip of icons". Each icon launches a programme. When the icon is clicked, the programme is launched. The strip is autoclosed. I asked Derek how to "hide" the strip to the edge of the screen. That is "hide" it. And when the mouse moves to the edge the "strip" reappears. It just saves mouse clicks I suppose. Cheers. Selgor

new topic     » goto parent     » topic index » view message » categorize

8. Re: Is there an AutoHide code in Euphoria?

Hello, Selgor here. These are my thoughts of actions to take .Maybe try the following : set visible window to zero.Then if ,mouse is moved to a screen position ,activate the window with set visible 1. I assume the window is still "active", though not visible. Just a start. Cheers, Selgor.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Is there an AutoHide code in Euphoria?

Selgor said...

Hello, Selgor here. These are my thoughts of actions to take .Maybe try the following : set visible window to zero.Then if ,mouse is moved to a screen position ,activate the window with set visible 1. I assume the window is still "active", though not visible. Just a start. Cheers, Selgor.

One of the first things you will need to do, when you create your Tool strip window, is to set the extended class info with the WS_EX_TOPMOST flag. This will ensure that the window will always remain ontop of other windows, this way, mouse events can occur on the window. As if any other window is on the screen, can overlap your window, and therefore, won't get any events. The next thing you need to do, is to make sure the window remains visible, but take and have it resize down to like 1 pixel in size, wherever you have the tool strip docked at, top, bottom, or sides of the screen. This way, it won't show over over windows, and get in the way.

The next part, is two events, onMouseEnter, and onMouseLeave, these events will happen even if the Application doesn't have focus, I believe. I could be wrong though. It has been a while since I've messed with Win32lib. Basically, when you get an onMouseEvent event, you would resize your tool strip window back to the original size, and when you receive the onMouseLeave, you can either set a timer to delay the resizing of the window back to 1 pixel, or immediately resize back to 1 pixel. Up to you.

hth,

Mario

new topic     » goto parent     » topic index » view message » categorize

10. Re: Is there an AutoHide code in Euphoria?

Hello Mario. Thank you for answering my post.It makes a lot of sense.I can only give it a try. Cheers, Selgor.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu