I'm using VSTUDIO2012, my problem seems simple but it's too hard for me,
EDIT: It's a "windows forms application"
I have a label and when i click at the label i want to show a little info in a "infotip" or "tooltip" or "ballontip", i want to show a message like for 5-10 seconds...
Someone can guide me about how to make this? or references on the web please?
EDIT2: I've tried this:
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
'MessageBox.Show("Use the 'Ctrl+C' hotkey to copy the" & vbNewLine & "mouse coordinates into the clipboard.", "Mouse XY by Elektro H#cker")
End Sub
Private Sub ToolTip1_Popup(sender As Object, e As PopupEventArgs) Handles ToolTip1.Popup
ToolTip1.Show("Tooltip text goes here", Label1)
End Sub
When you start your application, you should your form you're working on in the center of the screen.
On the left side of the screen you should see a panel labeled 'Toolbox' (it may be on different sides of the screen depending on how you arrange your panels. I think default is left though. If you don't see it you can show it by selecting 'Toolbox' from the view menu or by pressing "Ctrl + Alt + X".).
With the 'Toolbox' panel open, you should see several collapsible panels. Open either 'All Windows Forms' or 'Common Controls'. Near the bottom of each collapsible area is an element you can add labeled 'ToolTip'. Once its been added successfully, a light gray control panel appears with your new ToolTip control labeled 'ToolTip1'.
Once the control is added you simply right click on an element that you want to add a tooltip to such as a label. When the popup context menu appears choose 'Properties' (the very last option). This opens the Properties Panel.
When the Properties Panel opens, scroll to the bottom of the list. Right below the TextAlign Property should be a property called ToolTip on ToolTip1. Enter your tooltip text here. Now when a user hovers over your label, the text entered will appear in a standard yellowish popup tooltip.
Related
I am building an app in codenameone, and I am having issues with hamburger menu and overflow menu, they keep disappearing on some pages, sometimes they are there and sometimes they are gone
See attached image, these two menus keep going and coming sometimes in the app
Is there a way out?
I am using the Toolbar API to add commands
tb = new Toolbar();
tb.getStyle().setBgImage(new RR().getR().getImage("newmenuimage.png"));
tb.setLayout(new BorderLayout());
f.setToolbar(tb);
Add a theme Constant commandBehaviour if it doesn't already exist and set it to Side and make sure your sideMenuImage has a valid image name as a value. Do the same for menuImage which is for the overflow menu.
Customise TitleArea and set its border to Empty and Under color, uncheck Derive Transparency and set it to 255 and uncheck Derive Background and set it to the color of your choice (ensure there's contrast between this color and your menu images).
I have a Toolbar with buttons that have images just above their text. I want users to click the button and then drag. That should drag the image as long as the mouse button is held down. This should also work for touch screens (fingers).
I've been trying to use the code from this answer Mouse click and drag Event WPF. But it doesn't seem to do anything. I end up dragging the entire form.
Any suggestions on how I can start this or if it is even possible?
I want to create a button with a down arrow icon that displays a menu when clicked. I have found the following button type:
But this button can be pressed in two places (on the left of the vertical line and on the right of the vertical line), also I don't want the button to have a vertical line, I want it to be something like this:
Can this be done in Windows API?
What you are looking for can be done using either:
a standard COMBOBOX control with the CBS_DROPDOWNLIST window style:
(source: s-msft.com)
A Menu button:
(source: s-msft.com)
However, this is not a standard Win32 control. MFC has a CMFCMenuButton class for it, but in Win32 you have to owner-draw a standard BUTTON control to achieve the same effect:
Menu button arrow with raw Win32
When the button is pushed, you can display your pop-up menu as needed, using TrackPopupMenu() or equivalent.
I have a WinForm application that I would like to add a RadDoc like a popup menu on the left inside form main.
The user should be able to hover to the left side of the screen or click some tab on the left side of the screen and then the menu bar will appear.
The RadDock control itself does not have a auto hide.
I can hide the ToolWindow inside the RadDock but this leaves a blue background where the ToolWindow would show.
Also, when the ToolWindows are "AutoHide" they are tabbed at the bottom but they need to be tabbed vertically on the left.
The last thing is that I can't seem to set the "popup" size of the ToolWindows.
I would suggest that you go through the RadDock documentation.
Auto Hide article: http://www.telerik.com/help/winforms/dock-architecture-and-features-auto-hiding-windows.html
Arranging windows: http://www.telerik.com/help/winforms/dock-architecture-and-features-arranging-dockwindows.html
Modifying windows size: http://www.telerik.com/help/winforms/dock-object-model-example-building-an-advanced-layout-at-runtime.html
To make the whole control collapsible, you can use the RadCollapsiblePanel control: link.
I have a winform app. On the menu bar, far right, I placed a dropdown box on top of it. When I resize the form the dropdown box obviously stays in the same position (x,y location). How can I get it to move propotionally to the right when the form is resized. It basically stays on the same Y axis.
I can't use a layout control since it's placed on top of the menu.
You can use the Anchor property of the comboBox to do this. Simply set it to Right (probably Top and Right) through the designer.
Or to do it in code:
comboBox1.Anchor = AnchorStyles.Right;