| View previous topic :: View next topic |
| Author |
Message |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jun 01, 2004 12:36 pm Post subject: |
|
|
Hi Andy
You need to declare the include statement only once.
In the script you posted it is at two places :
Line 1
Line 140.
This will add the DSU twice and then your script will have dupes
of all the labels within the DSU.
Remove the second one I think that should resolve it.
_________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Wed Jun 02, 2004 5:18 pm Post subject: |
|
|
Ahhhh ! I see, the dupe are in the DSU not my script bu=t becuase I call twice it treats as a duplicates. I think that will work I'll try it shortly. Thanks for getting back to so quickly CodeScript. Now I understand better the DSU role I'll not make that mistake again.
Regards
AndyF
| CodeScript wrote: | Hi Andy
You need to declare the include statement only once.
In the script you posted it is at two places :
Line 1
Line 140.
This will add the DSU twice and then your script will have dupes
of all the labels within the DSU.
Remove the second one I think that should resolve it. |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Wed Jun 02, 2004 7:52 pm Post subject: |
|
|
I was so hoping you were right on this one Codescript but I've checked the script and there is only one #INCLUDE **/**/Calelm.dsu call and
only one ***/***/Inet.dsu.
So we are back to the drawing board I guess.
Any other thoughts on this one.....
Could it be that there is a label in Inet.dsu that is also in Calelm.dsu
Regards
AndyF
| CodeScript wrote: | Hi Andy
You need to declare the include statement only once.
In the script you posted it is at two places :
Line 1
Line 140.
This will add the DSU twice and then your script will have dupes
of all the labels within the DSU.
Remove the second one I think that should resolve it. |
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu Jun 03, 2004 11:07 am Post subject: |
|
|
Thanks Code Script, I did think about this and took out the Inet.dsu to see whether this would resolve the situation but it did not.
Could it be that a label in my script is conflicting with the Label in the DSU
| CodeScript wrote: | Hi Andy
It is possible that inet.dsu has some similar label.
These are the labels within the calelm dsu.
I don't know about the labels in inet.dsu
My best guess can be that lablel severe is the culprit.
| Code: |
Calendar
Calendar_GetDate
Calendar_GetminReqRect
Calendar_Create
Calendar_SetDate
Calendar_SetColor
severe
|
Anyway I have attached a DSU without the Severe label. |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu Jun 03, 2004 10:30 pm Post subject: |
|
|
My previous reply to this message turned out to be the problem. I had a label which also ocurred in the calelm.dsu so this now sorted.
Many thanks for your help with this Codescript.
I can now get a calendar onto my dialog window but (there is always a but with me isn't there )
I do have a problem sitting it ontop of a TAB dialog element. This a problem that I have had with many internal VDS eliments and placing them on a TAB. Mostly I solve this by adding the elements on a particular order but can't seem to get this to work when adding the Windows Calendar. Any clues on this
Thanks
AndyF
| CodeScript wrote: | Hi Andy
It is possible that inet.dsu has some similar label.
These are the labels within the calelm dsu.
I don't know about the labels in inet.dsu
My best guess can be that lablel severe is the culprit.
| Code: |
Calendar
Calendar_GetDate
Calendar_GetminReqRect
Calendar_Create
Calendar_SetDate
Calendar_SetColor
severe
|
Anyway I have attached a DSU without the Severe label. |
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Fri Jun 04, 2004 7:01 pm Post subject: |
|
|
Just a thought...
Does it compile if you add double quotes around the path & filename?
Such as:
#INCLUDE "/Program Files/Visual DialogScript 5/Inet.dsu"
Hooligan
_________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sat Jun 05, 2004 8:48 am Post subject: |
|
|
Just checked - no
Vic
_________________ phpBB Development Team |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Sat Jun 05, 2004 3:13 pm Post subject: |
|
|
Hi codeScipt, everythiong working fine no, and the calendar looks great on my dialog.
Tried to close the calendar with the following command but did not work.
Window Close,"%"%%Calend
Any idea's on closing the calendar
Regards
AndyF
| CodeScript wrote: | Actually the dsu was not designed for placing on Tab elements.
I have revised the DSU to do so.
Just specify the Tab id as shown below with the new DSU.
| Code: | | %%Calend = @Calendar(Create,@winexists(~TAB1),40,10,auto,auto,WEEKNUMBERS) |
|
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu Jun 10, 2004 1:29 pm Post subject: Closing the calendar created from DSU |
|
|
Hi CodeScript, I did not here from you on this query, any reason why the command should not work.
Is it because we are using the DSU rather than a dll extension like when we close a rich text window created with the VDSUG.dll extension
Regards
AndyF
| Andy_Fletcher wrote: | Hi codeScipt, everythiong working fine no, and the calendar looks great on my dialog.
Tried to close the calendar with the following command but did not work.
Window Close,"%"%%Calend
Any idea's on closing the calendar
Regards
AndyF
| CodeScript wrote: | Actually the dsu was not designed for placing on Tab elements.
I have revised the DSU to do so.
Just specify the Tab id as shown below with the new DSU.
| Code: | | %%Calend = @Calendar(Create,@winexists(~TAB1),40,10,auto,auto,WEEKNUMBERS) |
|
|
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jun 22, 2004 10:56 am Post subject: |
|
|
Quick one here:
| Code: | %%WM_DESTROY = $2
%A = @SENDMSG("%"%%Calend,%%WM_DESTROY,0,0) |
_________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Tue Jun 22, 2004 12:28 pm Post subject: |
|
|
Many thanks once again CodeScript.
I take it $2 is some kind of command used by Windows API ore some such ?
Where can I get some basic command language knowledge to help me figure these things out for myself ?
No good me reading mountains of programming books as I'm really not that clever
Regards
Andy F
| CodeScript wrote: | Quick one here:
| Code: | %%WM_DESTROY = $2
%A = @SENDMSG("%"%%Calend,%%WM_DESTROY,0,0) |
|
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Tue Jun 22, 2004 12:53 pm Post subject: |
|
|
Tried this but it did not work. Thought it might be cause I have the Calendar on a TAB so used the solution on the original example script to see whether it would close the calendar, That did not work either.
I'm using XP home edition on a laptop can'think why that would make a difference but thought I'd through it in anyway.
Did you try it out your end ?
Regards
Andy F
| Andy_Fletcher wrote: | Many thanks once again CodeScript.
I take it $2 is some kind of command used by Windows API ore some such ?
Where can I get some basic command language knowledge to help me figure these things out for myself ?
No good me reading mountains of programming books as I'm really not that clever
Regards
Andy F
| CodeScript wrote: | Quick one here:
| Code: | %%WM_DESTROY = $2
%A = @SENDMSG("%"%%Calend,%%WM_DESTROY,0,0) |
|
|
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
|
| Back to top |
|
 |
|