Print Page | Close Window

TabControlitem Caption not work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2542
Printed Date: 07 October 2024 at 10:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControlitem Caption not work
Posted By: MatNgoc
Subject: TabControlitem Caption not work
Date Posted: 07 July 2005 at 9:29pm
My project like TabManager Sample.
And I want to change Caption of Tab different from Child Caption Form
(because Form Caption not allow Unicode)

Commandbars.TabWorkspace.Item(i).Caption="Vịt con xấu xí"

==>It is not work


-------------
to compare = to hurt



Replies:
Posted By: ijwelch
Date Posted: 16 December 2007 at 4:11am
BUMP!    

I'm having this problem and SetWindowTextW doesn't work when trying to set the form caption to a Unicode value.

The Workspace is updating tab caption to form caption every time.

Can this be changed so, for example, if the form caption is "" and tab caption is set then tab caption is not removed?


Posted By: Oleg
Date Posted: 16 December 2007 at 11:58am
Hi,
 
to set Unicode caption call
 
DefWindowProcW (hWnd, WM_SETTEXT, 0, StrPtr(UnicodeString))


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


Posted By: ijwelch
Date Posted: 16 December 2007 at 9:06pm
Ok,

I've been able to set the form caption but the Workspace tab still shows '????'. I've checked and is definitely unicode version of commandbars.





Posted By: Oleg
Date Posted: 17 December 2007 at 1:35am
Right :( TabWorkspace also use GetWindowTextW but not DefWindowProcW (hWnd, WM_GETTEXT)
 
Sorry, afraid there is no solution for now. We will change it for 12.0 release.


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


Posted By: ijwelch
Date Posted: 17 December 2007 at 2:57am
Ok, thanks.


Posted By: gaudetm
Date Posted: 18 December 2007 at 9:54pm

any ideal if version 12 would be before 2008 or after and if after then how many months to expect for the waiting?

Marc


Posted By: Oleg
Date Posted: 19 December 2007 at 11:15am
think in the end of February only.

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


Posted By: enjay
Date Posted: 11 May 2008 at 11:19pm
Originally posted by oleg oleg wrote:

Right :( TabWorkspace also use GetWindowTextW but not DefWindowProcW (hWnd, WM_GETTEXT)
 
Sorry, afraid there is no solution for now. We will change it for 12.0 release.
 
Is it really changed ? I'm having same issue like ijwelch in V12.0 now.


-------------
SuitePro ActiveX User


Posted By: ijwelch
Date Posted: 11 May 2008 at 11:58pm
Hi Enjay,

Yes this works now.

First make sure you have unicode version of controls registered, then set mdichild form caption like this:

Private Const WM_SETTEXT As Long = &HC

Private Declare Function DefWindowProcW _
                Lib "user32" (ByVal hWnd As Long, _
                              ByVal wMsg As Long, _
                              ByVal wParam As Long, _
                              ByVal lParam As Long) As Long
                             
Private Sub Form_Load()
    Dim sCaption As String
    'Thai
    sCaption = ChrW$(&HE01) & ChrW$(&HE32) & ChrW$(&HE23) & ChrW$(&HE15) & ChrW$(&HE49) & ChrW$(&HE2D) & ChrW$(&HE19) & ChrW$(&HE23) & ChrW$(&HE31) & ChrW$(&HE1A)
   
    DefWindowProcW Me.hWnd, WM_SETTEXT, &H0&, StrPtr(sCaption)

End Sub




Posted By: enjay
Date Posted: 12 May 2008 at 12:00am
I have this on Win2K:
 
 
but on WinXP everything is fine  


-------------
SuitePro ActiveX User


Posted By: ijwelch
Date Posted: 12 May 2008 at 4:13am
Looks like a problem then. I haven't tested on anything below xp.

Would be a lot easier if Codejock allowed setting workspace tab caption (and icon) directly. Anyone from CJ care to say if this can be added?



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