Print Page | Close Window

DrawTextNoPrefix

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=9579
Printed Date: 04 July 2024 at 12:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DrawTextNoPrefix
Posted By: VDF1
Subject: DrawTextNoPrefix
Date Posted: 13 February 2008 at 2:38pm
The DockingPane TabPaintManager has a property called DrawTextNoPrefix. This works fine but since the text that is displayed comes from the Title property of the Pane object I miss this setting for the Pane object to get the same behaviour for the same text
 
So I set the Title for the Pane and see the same text being used for the TabButton Label but for the tabbutton label the "&" can be replaced for an underscore while that does not work for the captionbar of the pane. Is this an oversight or do I miss something.


-------------
Kind Regards,
Vincent Oorsprong
Data Access Europe B.V.
Lansinkesweg 4
7553 AE Hengelo
Netherlands
+31-74-2555609



Replies:
Posted By: Oleg
Date Posted: 14 February 2008 at 1:22am
Hello,
 
Do you mean you set caption to "A & B" and don't see "&" ? I tried with last version and it works for me. What version do you have?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: VDF1
Date Posted: 14 February 2008 at 1:35am

Oleg,

It is the opposite. I set the title to "Sales&Persons" and in the tabbutton label the "&" gets replaced by an underscore under "P" while the captionbar shows "Sales&Persons". The "&" was meant to indicate the underscore.
 
So why is there a DrawTextNoPrefix for the tabbutton label but not a similar thing for the pane caption or - since the same text value is used for caption and tabbutton label - why not applied to both text strings? And - as the documentation says - a double "&" makes it a real "&". So if I want "Sales & Persons" I write "Sales && Persons".
 
Using 11.2.1


-------------
Kind Regards,
Vincent Oorsprong
Data Access Europe B.V.
Lansinkesweg 4
7553 AE Hengelo
Netherlands
+31-74-2555609



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net