Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, November 12, 2008 1:56:59 AM(UTC)
Gunasekaran

Groups: Registered
Posts: 53


Hi I am using licensed version of Leadtools 15. Iam calling some API dialog in my application.How could I change the Dialog Caption  .?

I want to change the caption for L_DlgRemapHue() , I called  L_DlgSetString (1,"My Dialog")  so that the dialog caption is changed into "My Dialog" instead of default caption name but could nt get the right solution.

Please guide me to solve this issue.



 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, November 12, 2008 6:32:03 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You must not pass the value 1 in the first parameter, but instead use the value of DLG_REMAPHUE_IDSTR_CAPTION, which is 533.
 
#3 Posted : Wednesday, November 12, 2008 6:36:22 PM(UTC)
Gunasekaran

Groups: Registered
Posts: 53


I have used the following code to call the API dialog.....
And used            "      Dim ret As Integer = L_DlgSetString(533, "MyDilaog")"
to change the dlg caption into "MyDilaog"  But its not working ,

****************************************************************
               Dim hobj As New REMAPHUEDLGPARAMS()
                hobj.pBitmap = ptr
                hobj.uStructSize = Marshal.SizeOf(hobj)
                Dim hobj_ptr As IntPtr = Marshal.AllocHGlobal(Marshal.SizeOf(hobj))
                Marshal.StructureToPtr(hobj, hobj_ptr, False)
                Dim nRet As Integer = L_DlgInit(1)                             
                Dim ret As Integer = L_DlgSetString(533, "CyPacs")
                Dim nnRet As Integer = L_DlgRemapHue(hwnd_intptr, hobj_ptr)
**************************************************************************          
Please correct me if I went wrong somwhere in my code


 
#4 Posted : Thursday, November 13, 2008 7:17:39 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Guna,
I want to try to reproduce the problem here, please try to isolate this issue in a very small test project (not your full application)  and send it to me in a ZIP or RAR file.

 
#5 Posted : Thursday, November 13, 2008 9:17:31 PM(UTC)
Gunasekaran

Groups: Registered
Posts: 53


How do I find the DlgCaption ID for all API i.e as you mentioned 533 for Remaphue .I want the index for all the API dilaog ...please help me out
 
#6 Posted : Sunday, November 16, 2008 3:46:01 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You can write a simple C++ program that prints all the values. For example, the following code shows the value I gave you last time:

char szMessage[1024];
wsprintf(szMessage, "The value of DLG_REMAPHUE_IDSTR_CAPTION is %d", DLG_REMAPHUE_IDSTR_CAPTION);
MessageBox(0, szMessage, "test program", MB_OK);

The output of these lines is a message box:
---------------------------
test program
---------------------------
The value of DLG_REMAPHUE_IDSTR_CAPTION is 533
---------------------------
OK   
---------------------------
 
#7 Posted : Sunday, November 16, 2008 6:31:10 PM(UTC)
Gunasekaran

Groups: Registered
Posts: 53


thanks for your suggestion ..we have sloved that issue

 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.073 seconds.