StrataFrame Forum

ThemedLinkMenu Subitems - how to display them

http://forum.strataframe.net/Topic16662.aspx

By Keith Chisarik - 5/28/2008

I give, is there a trick to getting subitems to show? Just like Sub1 Sub2 in the sample for the menu item "Link Menu Styles"?

I have mine set like this as far as I can tell and the "parent" doesnt expand to show the sub items.

Thanks.

By Keith Chisarik - 5/28/2008

follow up:

How do you set what control "wins" the docking war? I have a panel that is docked left and it takes the whole left of the MDI form, my gradientheader is "top" but only until it hits the panel, looking quite silly Tongue

By Trent L. Taylor - 5/28/2008

I give, is there a trick to getting subitems to show? Just like Sub1 Sub2 in the sample for the menu item "Link Menu Styles"?

This will only appear when you are using the ClickAndStick behavior on the control...it will not work when using Standard links.

How do you set what control "wins" the docking war?

Send to back and bring to front will arrange the z-order of the docked controls.

By Keith Chisarik - 5/28/2008

Two easy fixes, awesome! My app is really starting to look nice Smile
By Trent L. Taylor - 5/28/2008

Sweeet....FYI, I fixed all of the rendering issues on the ThemedContainer that we ran into (and more)...and the scroll works smoothly now as well in addition to the snap. Smile  I basically reworked the way that the control renders to make it a little more "update to date" in regards to techniques.
By Keith Chisarik - 5/28/2008

Great!

How do I get a ThemedLinkMenu to scroll if there are more linkMenuItems than can be displayed?

I am using it to link error records (how original) and it wont happen often, but it will happen that there could be many.

None of the scrolling properties seem to work.

Down the road I will probably make that feature a grid to allow data entry to "fix" the errors but for now if I can get the menu to scroll I have it done.

Thanks!

By Trent L. Taylor - 5/29/2008

How do I get a ThemedLinkMenu to scroll if there are more linkMenuItems than can be displayed?

Actually, at the moment, you don't.  This is actaully something that we plan to add.  We use this control a lot within our medical application and to date...we have never ended up needing a scroll.  But I can see how this could come up and it is actually something we will add before long.

By Keith Chisarik - 5/30/2008

OK, if you add that at a later time cool, for the time being I just made the control auto-expand based on item height and count.

Is there a way to make a "Click and Stick" menu item (required for subitems) "unstick" after a short period of time? When you click an item you have to click something else for it to become clickable again. Also, are there any known issues with having blank items added just to preserve space for other controls? I have a linkmenu where one item requires to know an order number, so I added a balnk menu item and tossed a textbox control in its space, works just like I want and looks nice but I dont want to shoot myself in the foot.

By Trent L. Taylor - 5/30/2008

Is there a way to make a "Click and Stick" menu item (required for subitems) "unstick" after a short period of time?

I don't guess I totally got what you meant here...I suppose you could always have a timer that is started when clicked and then removes the selection when the timer fires...is that what you mean?

I have a linkmenu where one item requires to know an order number, so I added a balnk menu item and tossed a textbox control in its space, works just like I want and looks nice but I dont want to shoot myself in the foot.

I think that you should be fine if it is working for you.  As long as you keep the z-order stuff straight I don't think that you will have an issue...until one comes up Tongue

By Keith Chisarik - 6/2/2008

Handling when to call ClearActiveItem() on the linkmenu did the trick, thanks.