Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - TabControlitem Caption not work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControlitem Caption not work

 Post Reply Post Reply
Author
Message
MatNgoc View Drop Down
Newbie
Newbie


Joined: 07 July 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote MatNgoc Quote  Post ReplyReply Direct Link To This Post Topic: TabControlitem Caption not work
    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
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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.



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2007 at 2:57am
Ok, thanks.
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2007 at 11:15am
think in the end of February only.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
enjay View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 March 2008
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote enjay Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
enjay View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 March 2008
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote enjay Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2008 at 12:00am
I have this on Win2K:
 
 
but on WinXP everything is fine  
SuitePro ActiveX User
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.