Silverlight 3 Treeview - silverlight-3.0

Is there any way one can display the Silverlight 3 (Either toolkit version or the built-in Blend version) treeview horizontally?i.e. instead of top to bottom, I wan to go from left to right.

There is no inherit method of the treeview to accomplish this. However, you might be able to achieve this by changing the ItemsPanelTemplate and the ItemsTemplate.
This forum discusses it in more detail.

Related

What is the best component practice for creating non-ribbon visual menus on Delphi Forms?

I'm am revamping some menus to tidy them visually and streamline my use of third part libraries in favour of using Delphi components where possible (I was using the very flexible DevExpress TdxBar). I want to ditch this third party use and create a menu with layout similar to the following:
After some experiment I see that I can use a TCoolBar to host (at left) a TActionMainMenuBar which provides the File..Help menu items (using action categories) and then a TCoolBand to host buttons for the stuff to the right of 'Help'.
I've no need for user rearrangement of menu items or toolbar docking. All my menu item targets are actions. My question relates to whether this is in fact the easiest way of achieving a mix of a 'main menu' with tool buttons or whether there is a better way that I'm missing. Any suggestions must relate to Delphi built in components. I already know and have used, menu components from other third party libraries.
Thanks for any help.

Positioning controls in Delphi 5 so they fill the form client area when the form is resized in the same sort of proportions as they did initially

I have a DBGrid above a group box with some buttons and edit fields and another group box below that again with some buttons. I cannot fins a setting for the align and/or anchors for the DBGrid and the group boxes so they fill the form without overlapping or leaving blank bits of form.
I am using Delphi 5 on XP Pro with all updates installed.
If I remember, there is no built-in way to do this. When I did this in Delphi I implemented it manually in the event handler for the form resize event. You can recalculate the new positions for each control based on the size of the form and the proportions of the layout you want. You can simplify it by breaking the form in to panels and setting most of the controls to align to one or more edges of their parent panel. That way you mostly just have to resize a few panels. If you have a complex form you still might need to reposition some individual controls.
You might also find a third-party container control out there which makes this easier. I would search for combinations of "flow", "layout", "table", "container".
We've struggled with this as well, and I agree with Charles M that there is no built-in way to do this.
If you're looking for an outside solution, the ExpressLayout control from Developer Express allows you to fine-tune the positioning of controls on Delphi forms. They advertise "Screen Resolution Independence - Automatically Resizable Interfaces - Look & Feel Standardization...", so it might be worth looking into.
I've never used that particular control, but we use a lot of other Developer Express controls in our commercial projects. The controls and support are excellent.
See: http://www.devexpress.com/Products/VCL/ExLayoutControl/
They don't have a trial version, but do have a 60-day no-questions-asked money-back guarantee.

Browser problem with smartgwt drag & drop

I'm new to smartGWT. I've taken GWT components in a canvas that is draggable & added it into VStack. My code is working fine in IE but it is dissapearing on Firefox/Chrome. Any help is appreciable. Thanks in advance.
It sounds like you are trying to freely intermix SmartGWT and GWT components, which is something we don't recommend doing. See this item in the SmartGWT FAQ.
Specific patterns of mixing GWT components into SmartGWT (and vice versa) are supported (the above FAQ item explains this). If you think your usage falls into one of those patterns, post a standalone test case of what you're trying to do (to the SmartGWT Forums).

Where can I find a movable toolbar demo?

At the top of the Delphi IDE is a toolbar with buttons grouped together on little movable trays. I'm trying to implement something like that, but not having much success. I've found TToolbar, but I can't figure out how to set up the movable trays. Does anyone know where I could find a simple demo app that shows how it's done?
I believe the webbrows.dpr located in the cool stuff demo directory (and included in all installs of Delphi since around Delphi 6 or so) contains just the demo you are looking for. This gives you the effect your looking for using only CodeGear supplied components. You add multiple bands and set the fixed size to false for the bands you want to allow to be movable.
You can try the Toolbar2000 Component from Jordan Russell or the TBX package wich is an extension for Toolbar2000 components.
Toolbar2000 is a set of components for CodeGear Delphi and C++Builder designed to mimic the Office 2000 look and behavior. It includes draggable and dockable toolbars and menus.
alt text http://www.indasoftware.com/_files/img/fordev/office2003/small_classic.png
you can see these links.
Office2003 Theme for TBX
Mac OSX Theme for TBX
TBX themes
Bye.
You can put your toolbars in a standard VCL TCoolBar or TControlBar. AFAIR this can get a bit messy sometimes. For an example, have a look at the CoolStuff demo, as skamradt suggested.

Dynamic Splitter Panes

How would I go about implementing dynamic/docking splitter panes in a vb.net app similar to visual studio?
Check out the following demo at ZettaCube, their WebDock component seems to have functionalities close to VS.NET, especially docking and auto-hide.
http://www.zettacube.com/
DockPanel is one painless & open source way to do it.
DockPanel is for WinForms only. Seems that the WebDock from zettacube above is the only solution for now.
Not easily is the short answer.
A high level idea would be to define some regions using divs or a table and using your js framework of choice make these elements resizeable. that gets you the splitter aspect.
The docking will have to use absoluting positioned elements that you can drag and drop and if you are currently over a docking element, reposition the element to be docked to inside the docking element and change it's position back to normal. When you want to drag it out you will change it's positioning back to absolute
Also, this is not easy to do and will take a long time and still probably not work correctly. Sorry to sound pessimistic though.
I would say use some of the already available controls out there.
I use the control library from Janus Controls, but there are dozens out there to choose from.
http://www.janusys.com/controls/
Agree with Nick, this is not something you just throw together yourself.

Resources