Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

How change the API Dialog Caption using VB.net
Started by Gunasekaran at 11-12-2008 7:01. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  11-12-2008, 7:01
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
How change the API Dialog Caption using VB.net
Reply Quote
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.




Thanks and Regards
Guna
   Report 
  11-12-2008, 11:37
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: How change the API Dialog Caption using VB.net
Reply Quote
You must not pass the value 1 in the first parameter, but instead use the value of DLG_REMAPHUE_IDSTR_CAPTION, which is 533.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  11-12-2008, 23:41
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
Re: How change the API Dialog Caption using VB.net
Reply Quote
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



Thanks and Regards
Guna
   Report 
  11-13-2008, 12:22
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: How change the API Dialog Caption using VB.net
Reply Quote
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.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  11-14-2008, 2:22
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
Re: How change the API Dialog Caption using VB.net
Reply Quote
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

Thanks and Regards
Guna
   Report 
  11-16-2008, 8:51
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: How change the API Dialog Caption using VB.net
Reply Quote
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   
---------------------------
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  11-16-2008, 23:36
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
Re: How change the API Dialog Caption using VB.net
Reply Quote
thanks for your suggestion ..we have sloved that issue


Thanks and Regards
Guna
   Report 
Post
LEAD Support Fo... » Developer » DICOM/Medical I... » How change the API Dialog Caption using VB.net

Powered by Community Server, by Telligent Systems