This is a migrated thread and some comments may be shown as answers.

radtitlebar issue

10 Answers 194 Views
TitleBar
This is a migrated thread and some comments may be shown as answers.
Mateo
Top achievements
Rank 1
Mateo asked on 29 Aug 2007, 06:54 PM
I'm developing a mdi application and use shapedForm for child form with a radtitlebar inside it.

The problem is when i drag, minimize or close a child form it drag, minimize and close the parent form?

What is the correct way to use radtitlebar?

Thanks

10 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 30 Aug 2007, 10:53 AM
This issue with the current version of RadTitleBar has been fixed. You can download the new, updated version from here.

Note that this is a trial version. If you are a customer, please open a support ticket and request the Dev version.

 
Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Atle
Top achievements
Rank 1
answered on 14 Dec 2007, 11:03 AM
I'm using Q2_2007_SP1_trial_setup and also have a problem with drag, minimize and close with a RadTitleBar. I have a Shapedform with a RadTitleBar that is added to a panel inside my main application. I'm not using MDI since I want several tabbed panels to contain Child-forms. TopLevel is set to false on the ShapedForms. When I try to drag or minimize the ShapedForm with the RadTitleBar, the parentform is dragged and minimized instead. Wasn't this issue solved already?
If I remove the RadTitleBar and set the FormBorderStyle to sizable on the ShapedForm, I can drag it inside my application, without dragging the main application itself.
0
Jack
Telerik team
answered on 14 Dec 2007, 05:48 PM
Hello Atle,

Thank you for writing.

Yes, we fixed the issue with the RadTitleBar when used in MDI scenarios. RadTitleBar uses the FindForm method in order to find the top level window, which needs resizing or minimizing. We made this in order to enable placing RadTitleBar inside panels and keeping the possibility to resize the main form. In your case you are using a Form with the TopLevel property set to false, which is a new scenario for us. We found a solution and it will be available in our upcoming release next week. We are sorry for not being able to help you right away.

Don't hesitate to contact us if you have other questions.

 
All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Atle
Top achievements
Rank 1
answered on 03 Jan 2008, 12:54 PM
The RadTitleBar now works on forms with TopLevel set to False, except when I try to Maximize. It does NOT maximize to the size of it's parent (panel) but to the size that the application would maximize to...

Another thing I noticed is that when I minimize and the form is a ShapedForm with e.g RoundRectShape(10), the minimized form is blank. Otherwise it contains the title as it should.
I can work around this by catching the minimize event and doing "this.Shape = null;".
0
Atle
Top achievements
Rank 1
answered on 03 Jan 2008, 01:17 PM
Another thing. The RadTitleBar has a ContextMenu. Do I have to implement it's behavior myself? Nothing happens when I rightclick and choose Minimize, Maximize, Move etc...
0
Kiril
Telerik team
answered on 03 Jan 2008, 05:34 PM
Hello Atle,

Thank you for bringing this issue to our attention.

For the time being, this functionality is not completely implemented. You can subscribe to the Click events of the items in the context menu to implement your custom behaviors. This functionality will be available in Service Pack 1, which will be released next month.

Please contact us with any other questions you might have.

Kind regards,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Doga
Top achievements
Rank 1
answered on 23 Jan 2008, 01:20 PM
Hi,

I am having trouble when i set  Form's border style to NONE and Dock my radTitleBar to topmost on my form.The problem is altough form border style is set to none radTitleBar allows me to resize the form.

Thanks.
0
Jack
Telerik team
answered on 24 Jan 2008, 01:12 PM
Hi Doga,

Thank you for writing.

Unfortunately, there is an issue with the ShapedForm. We will address it in our upcoming release Q1 2008. You can place the following code inside your Form in order to workaround the issue:

protected override int GetHitTest(Point point) 
     return 2; 

Don't hesitate to contact us if you have other questions.

Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Atle
Top achievements
Rank 1
answered on 04 Jun 2008, 07:53 AM
I posted two posts on january 3, but I never got a respone to my first post only my second....

Could you please respond to this:
The RadTitleBar now works on forms with TopLevel set to False, except when I try to Maximize. It does NOT maximize to the size of it's parent (panel) but to the size that the application would maximize to...

Another thing I noticed is that when I minimize and the form is a ShapedForm with e.g RoundRectShape(10), the minimized form is blank. Otherwise it contains the title as it should.
I can work around this by catching the minimize event and doing "this.Shape = null;".
0
Jack
Telerik team
answered on 04 Jun 2008, 04:15 PM
Hello Atle,

Thank you for getting back to us.

RadTitleBar is designed to work with top-level windows. There may be different side effects when it is used with forms that are not top-level. Actually, you are the first customer who expects this functionality. If other customers need the same behavior, we will consider implementing it in one of our upcoming releases.

If you need further assistance do not hesitate to write.

All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TitleBar
Asked by
Mateo
Top achievements
Rank 1
Answers by
Jack
Telerik team
Atle
Top achievements
Rank 1
Kiril
Telerik team
Doga
Top achievements
Rank 1
Share this question
or