LEADTOOLS Support
General
General Questions
How change the API Dialog Caption using VB.net
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, November 12, 2008 1:56:59 AM(UTC)
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.
#2
Posted
:
Wednesday, November 12, 2008 6:32:03 AM(UTC)
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)
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)
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)
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)
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)
Groups: Registered
Posts: 53
thanks for your suggestion ..we have sloved that issue
LEADTOOLS Support
General
General Questions
How change the API Dialog Caption using VB.net
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.