![]() |
TabControlitem Caption not work |
Post Reply
|
| Author | |
MatNgoc
Newbie
Joined: 07 July 2005 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: TabControlitem Caption not workPosted: 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)
Quote Reply
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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
ijwelch
Senior Member
Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
Quote Reply
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. ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
ijwelch
Senior Member
Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 December 2007 at 2:57am |
|
Ok, thanks.
|
|
![]() |
|
gaudetm
Senior Member
Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 December 2007 at 11:15am |
|
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)
Quote Reply
Posted: 11 May 2008 at 11:19pm |
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)
Quote Reply
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 |
|
![]() |
|
enjay
Senior Member
Joined: 31 March 2008 Status: Offline Points: 109 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 May 2008 at 12:00am |
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)
Quote Reply
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? |
|
![]() |
|
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 |