Telerik Forums
UI for WinForms Forum
0 answers
194 views

 

I have been attempting to work around a known issue and limitation of the RadDock control when displaying images assigned to tool windows on tab strips. My understanding, please correct me if this is not the case, is that images assigned to tool windows are rotated by 180 degrees when shown on a tab strip and are not shown at all when in auto hide mode.

In the application I am writing I am attempting to produce a user interface similar to that of visual studio. I am therefore looking to show the image of my tool windows followed by there names whenever they are shown on tab strips. I have contacted Telerik support who provided me with the basis for the below code. The code shown is my implementation of an event handler for the TransactionCommitted event of a RadDock control which I believe achieves my goal.

I was wondering if others have come across this problem and how they went about solving it.

Note: The event handler will need to be added to the RadDock control before adding any tool windows. If your adding tool windows before your event handlers you will need to rotate the images of your tool windows by 180 degrees.

        private void TransactionCommitted(object sender, RadDockTransactionEventArgs e)  
        {  
            foreach (DockWindow window in e.Transaction.AssociatedWindows)  
            {  
                if ((e.Transaction.TransactionType == DockTransactionType.AutoHide) && (e.Transaction.TargetState == DockState.AutoHide))  
                {  
                    PropertyInfo propInfo = typeof(ToolWindow).GetProperty("AutoHideTab", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);  
                    TabStripItem tabStripItem = (TabStripItem)propInfo.GetValue((ToolWindow)window, null);  
 
                    tabStripItem.Image = window.Image;  
 
                    foreach (TabStripItem item in tabStripItem.ParentTabStrip.Items)  
                    {  
                        switch (((AutoHideTransaction)e.Transaction).Position)  
                        {  
                            case AutoHidePosition.Right:  
                            case AutoHidePosition.Top:  
                                item.ImagePrimitive.AngleTransform = 180;  
                                item.TextImageRelation = TextImageRelation.TextBeforeImage;  
                                break;  
 
                            default:  
                                item.ImagePrimitive.AngleTransform = 0;  
                                item.TextImageRelation = TextImageRelation.ImageBeforeText;  
                                break;  
                        }  
                    }  
                }  
                else if ((e.Transaction.TargetState == DockState.Docked) || (e.Transaction.TargetState == DockState.Floating))  
                {  
                    ((ToolWindow)window).TabStripItem.ImagePrimitive.AngleTransform = 180;  
                }  
            }  
        } 

 

 

Phil
Top achievements
Rank 1
 asked on 17 Feb 2010
3 answers
147 views
Hello,

Several months ago I had problems with recurring events where someone changed a specific occurance, thus causing an exception to be generated. It was explained to me that there were problems with Exception binding, but these were supposedly fixed in Q3 2009. I've now installed this new Telerik Version, and I've attempted to set the appointmentMappingInfo appropriately, but I still cannot get the databinding for exceptions to work correctly. In addition, I have not gotten several other columns to save to SQL, such as MasterEventId, Duration, and a few others. After looking through the documentation, I feel that nowhere is it explicitly stated what the datatypes for these columns must be, and the proper method to ensure databinding for ALL data points around appointments, especially the Exceptions field. At this point I am pretty lost about how I can get these things taken care of. Can I get some help here?

Thanks!
Jeremy
Dobry Zranchev
Telerik team
 answered on 17 Feb 2010
1 answer
172 views
I have added a combobox column that is based on a user selection.  The first time through the column appears and works correctly.  The second time through the combobox column is already within my grid so I don't have to create it again but I need to know how to change it's source when a users changes a different combobox within my form.  Do I have to remove the added column and re add it?

Thank You
Nikolay
Telerik team
 answered on 17 Feb 2010
1 answer
159 views
How would I implement the RadContol Spy that allows the user to add custom summary items like in the demo.
When I try to view my code it just takes me to the code behind vb page.
Jack
Telerik team
 answered on 17 Feb 2010
1 answer
114 views
How do I create a summary item to do a custom calc?
I need to calc PV so I need the ((SUM(Sales)-SUM(Costs))/SUM(Sales)) done in a summary item.
How would I do that in VB?
Jack
Telerik team
 answered on 17 Feb 2010
1 answer
112 views
I would like to make a request regarding the ribbon bar.

I have been playing with the Office 2010 beta and besides the background "file" tab , I absolutely do NOT like the Ribbon bar. It looks like I imagine the Ribbon would have looked while it was still in development , a bland strip of grey with buttons and labels on top.
It looks like the Telerik control would look if it had no border or fill primitives - Ie : flat boring and bland.

Now I know Telerik always moves forward with the new trends but please , should you implement the new office 2010 ribbon style , please allow us to be able to select between the 2010 and 2007 styles .

Even the background "File" tab which is really useful for huge nested config windows like print etc , they are only useful for that .
For simple application menus on simple apps the old office button style is far more efficient and certainly far less intrusive.

Moaning mostly at Microsoft here , but also pleading to the Telerik team for consideration to the future of the Telerik ribbon control development.

Deyan
Telerik team
 answered on 17 Feb 2010
1 answer
199 views
Hi,

Using Q3 2009 SP1 version of your control.  I would like to add a screen tip to a multi-column combo box .  I would howver like to customize the contents of the screen tip and I am not able to add or remove elements in the designer.  I am wondering if I'm 'doing it wrong'. 
Additionally could you point me to some documentation that outlines how to do this.
Nikolay
Telerik team
 answered on 16 Feb 2010
4 answers
203 views
Is there anyway that the animate speed of a toolwindow can be altered?

Right now, out of the box, the hide/show is pretty fast.

Some users have been "surprised" (their words) when they saw a demo of our app and were clicking/hovering around.

I believe there is a timer behnd the scenes but it might be inaccessable.

Any ideas?
C Bates
Top achievements
Rank 1
 answered on 16 Feb 2010
3 answers
188 views
Hi,

Setting the Tool Tip Text property for a Tool Window seems to do nothing.. I was expecting a Tool Tip to appear when I hover over the controls title area. Is there a problem with this feature?

Thanks,
Brad
Nikolay
Telerik team
 answered on 16 Feb 2010
3 answers
230 views
Hi,

I don't know if this is possible with the current control set, but I would like to be able to handle items being dragged onto my treeview in a much more robust manner than currently. Basically, if I drag something onto a tree, I'd like to be able to see the positioning lines and node highlighting that you get if you're dragging a node from one tree to another. I currently have a radGridView and a Listbox that I want to be able to drag from into the tree view.

I've read in a few posts that Telerik was working on a framework for dragging between controls? Is this complete or still planned? If it is where might I find information about it?

If it's yet to be developed, I just need a pointer on how to handle the entry of the mouse into the treeview control in order to get it to think it's getting a node from another tree. If I convert the data in the drag event into a radtreenode perhaps..?

A second question I'd like to know is how to make my cursor look like the treeview's node-dragging cursor?!
Victor
Telerik team
 answered on 16 Feb 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?