TabControlitem Caption not work |
Post Reply |
Author | |
MatNgoc
Newbie Joined: 07 July 2005 Status: Offline Points: 5 |
Post Options
Thanks(0)
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
|
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
to set Unicode caption call
DefWindowProcW (hWnd, WM_SETTEXT, 0, StrPtr(UnicodeString))
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
Ok, thanks.
|
|
gaudetm
Senior Member Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
|
any ideal if version 12 would be before 2008 or after and if after then how many months to expect for the waiting? Marc
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
think in the end of February only.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
enjay
Senior Member Joined: 31 March 2008 Status: Offline Points: 109 |
Post Options
Thanks(0)
|
Is it really changed ? I'm having same issue like ijwelch in V12.0 now. |
|
SuitePro ActiveX User
|
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
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 |
|
enjay
Senior Member Joined: 31 March 2008 Status: Offline Points: 109 |
Post Options
Thanks(0)
|
I have this on Win2K:
but on WinXP everything is fine
|
|
SuitePro ActiveX User
|
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
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? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |