1
I am developing an application in Delphi xe5 and would like to make a menu open to the mouse "enter" in an area of my form.
It’s kind of complicated to explain, but I’ll try to ... The windows taskbar has this option, it is hidden and when you arrive with the mouse where it is (usually below) the bar appears.
I would like to know how I can implement this in Delhi.
Using this precedent, when initializing my form, the panel is already visible, and when losing the "focus" the idea was to make it hidden.
– Tiaurls
seven his Visible property for false in designTime or Form Create
– Caputo
Is already set to Visible false.
– Tiaurls
when it starts it is invisible, because the victim is false. If you approach it is visible. Now you want when the window loses focus it goes away too? That’s it?
– Caputo
Thanks to your idea, I was able to reach the following solution: if (Panelmenu.Visible=false) and (Mouse.CursorPos.X < Panelmenu.Width) then Panelmenu.Visible := true Else Panelmenu.Visible := false;
– Tiaurls
the panel is on the side? Then just change it. You just don’t need the IF.
PanelMenu.Visible := (Mouse.CursorPos.X < PanelMenu.Width)
– Caputo
Exactly, the idea is to make an application similar to the Design of Windows 8, with a side menu
– Tiaurls
I added the examples to lateral.
– Caputo