Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 12 total
Thread Popup Menus Demo
Mon, Nov 9 2015 10:27 AMPermanent Link

Uli Becker

I create a little project to realize a menu that is hidden when no item
is clicked and the mouse leaves the menu. Not much code needed.

http://www.beckersoft-online.de/demos/menutest.html

Uli

Mon, Nov 9 2015 11:56 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< I create a little project to realize a menu that is hidden when no item is clicked and the mouse leaves the menu. Not much code needed.

http://www.beckersoft-online.de/demos/menutest.html >>

Beautiful. Smile I especially like the animation on the mouse-over.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Nov 9 2015 12:05 PMPermanent Link

Matthew Jones

Uli Becker wrote:

> I create a little project to realize a menu that is hidden when no
> item is clicked and the mouse leaves the menu. Not much code needed.

Me want! 8-)

--

Matthew Jones
Mon, Nov 9 2015 12:46 PMPermanent Link

Uli Becker

Matthew,

> Me want! 8-)

Here it is.

Uli




Attachments: Test Menus.zip
Tue, Nov 10 2015 4:00 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> Here it is.

You are a gentleman sir. Thank you.

--

Matthew Jones
Tue, Nov 10 2015 8:13 AMPermanent Link

Raul

Team Elevate Team Elevate

On 11/9/2015 10:27 AM, Uli Becker wrote:
> I create a little project to realize a menu that is hidden when no item
> is clicked and the mouse leaves the menu. Not much code needed.


Nicely done - this looks great!

And thanks for posting the code.

Raul
Wed, Nov 11 2015 12:20 PMPermanent Link

Matthew Jones

Uli Becker wrote:

> I create a little project to realize a menu that is hidden when no
> item is clicked and the mouse leaves the menu. Not much code needed.
>
> http://www.beckersoft-online.de/demos/menutest.html

I've now had a chance to look into this, and it is nicely done.
Changing the line in FormCreate to:
     Background.Fill.Color := clRed; // clTransparent;
allows you to see how it is all done (the smoke and mirrors are
visible). You also don't seem to do anything with VisibleUnderline.
That seems to have been replaced by the HideMenus and that allows more
than one to be shrinking at the same time.

But very nice, and easily adaptable I think - it would be good to be
able to keep the menus on a different form and re-parent them, but then
the events would be in the wrong place. I think this could also easily
be made more generic, so that it doesn't need a set number of menus,
but can try MenuCaption1, 2, etc, and when it gets to no component of
that name, it stops. Basically it works it out.

But really impressed at the result - nice stuff. (Also EWB2 of course,
which provides the animations and the like.)

--

Matthew Jones
Wed, Nov 11 2015 12:50 PMPermanent Link

Uli Becker

Matthew,

> But really impressed at the result - nice stuff. (Also EWB2 of course,
> which provides the animations and the like.)

Thank you very much - glad you like it. And YES: EWB2 makes it possible!

> You also don't seem to do anything with VisibleUnderline.

Yes, I forgot to take it out.

In my first approaches I tried to use the MouseMove events to check if
the cursor has left the currently visible menu, but too many hassles
with storing the bounds of the active menu, getting the "ClientToScreen"
coordinates etc.... And much too much code.

It took me some time to realize that a transparent panel as parent for
the menus would do the trick. SmileOff course the necessary code can be
improved and nearly everything can be created at runtime.

Uli



Wed, Apr 20 2016 12:15 PMPermanent Link

Trinione

Just saw this... Very nice!
Wed, Apr 20 2016 6:35 PMPermanent Link

kamran

Hi Uli

Just seen it.

Great work.


Kamran
Page 1 of 2Next Page »
Jump to Page:  1 2
Image