17. How to define images for mouse over parent and children?
Menu has several properties that take in paths to images.
- ImageParent - Image to use for every parent.
- ImageParentOver - Image to use for a parent when the mouse cursor is over it.
- ImageParentSelected - Image to use for a parent that is selected.
- ImageChild - Image to use for every child.
- ImageChildOver - Image to use for a child when the mouse cursor is over it.
- ImageChildSelected - Image to use for a child that is selected.
All of these styles are optional.
Note: If you need to define a selected or over image, you need to define a regular image too (1px empty gif, for example).
18. How to add link to parent and open to frame?
1.
See FAQ #7
2. You can use the following trick to add a target to url:
C#:
osm.AddChild("c1", "click me", "http://www.obout.com\\\" target=\\\"mainframe", null);
Classic ASP:
osm.AddChild "c1", "click me", "http://www.obout.com\"" target=\""mainframe"
19. I installed the dll, but the menu does not show on the page.
Menu needs an external javascript file to run. Slidemenu.js is in folder slidemenu/smscript
By default, menu will look at the root of your server in /slidemenu/smscript, so simply put folder slidemenu at the root of your web server.
You can also put the javascript file anywhere you wish. But then, you have to change ScriptPath property to point to the right directory.
For example, if I put slidemenu.js in myscripts directory, then ScriptPath = "myscripts"
20. I see scrollbars in the menu and height does not change. I thought height is adjusted dynamically?
By default, Height is set to 100. To make it dynamic, set Height = -1
22. I don't have access to wwwroot\bin, where should I put the DLLs?
You must put the DLLs into your application bin folder.
You can also add the control to your Visual Studio toolbox and simply drag it on the form.
Another option is to add a reference to the DLL by right clicking on References in Solution Explorer in Visual Studio and selecting Add Reference.
23. How can I add another control to a menu child programmatically?
To add another control to a child with ID "myChild":
osm.MenuItems.GetItemById("myChild").Controls.Add(control_to_add);
You can also add a control to the last added menu item:
osm.MenuItems[osm.MenuItems.Count - 1].Controls.Add(control_to_add);
24. How to run examples? I am new to web programming.
First install the component. See
how to install.
Open IIS console.
Expand tree on left side down to your web site and see folder 'slidemenu/examples'.
On right side you will see list of example files.
Make right click on any file and select 'Browse' (not 'Open'!).
TIP: How to add reference to dll in Visual Studio project?
Go to toolbar menu Project > Add Reference > Click button 'Browse' >
> Find obout_SlideMenu3_Pro_Net.dll > Click 'Open' > Click OK
Note: You don't need to create VS project to run examples.
25. How to make all the slide menus display in an expanded state?
You can put several Slide Menus one under other.
Each menu should have only one parent.
They will look like one menu and you can have them all expanded.
26. How To delete trial version and install full version?
Search your hard drives for obout_slidemenu*.dll and delete all.
Make sure you are searching on the correct machine.
Then install the full version.
If you can't delete COM dll:
To unregister dll for ASP:
regsvr32 "C:\<your-path>\obout_SlideMenu3.dll" -u
If access is denied when you delete dll, do this:
1. Close InterDev and all other apps with references to dll.
2. Open IIS MMC. Open Properties for your web site.
3. Open tab 'Home Directory' and click button 'Unload'.
Now unregister and delete dll. If it doesn't help, reboot PC and delete file.
On Windows 2003 click Start > Run > type IISReset.exe > Press OK > After reset replace dll.
or
On Windows 2003 go to IIS > Application Pools > Restart DefaultAppPool > Replace dll.