forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Compiling scripts incorporating DSU Files.
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jun 01, 2004 12:36 pm    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Wed Jun 02, 2004 5:18 pm    Post subject: Reply with quote

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 Very Happy

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
View user's profile Send private message
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Wed Jun 02, 2004 7:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jun 03, 2004 10:44 am    Post subject: Reply with quote

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.



calelm.zip
 Description:

Download
 Filename:  calelm.zip
 Filesize:  3.39 KB
 Downloaded:  1396 Time(s)


_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Thu Jun 03, 2004 11:07 am    Post subject: Reply with quote

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 Question

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
View user's profile Send private message
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Thu Jun 03, 2004 10:30 pm    Post subject: Reply with quote

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 Laughing )
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 Question

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Jun 04, 2004 9:54 am    Post subject: Reply with quote

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)



calelm.dsu
 Description:
Tab Support

Download
 Filename:  calelm.dsu
 Filesize:  3.51 KB
 Downloaded:  1400 Time(s)


_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Fri Jun 04, 2004 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sat Jun 05, 2004 8:48 am    Post subject: Reply with quote

Just checked - no Smile

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Sat Jun 05, 2004 3:13 pm    Post subject: Reply with quote

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 Question

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
View user's profile Send private message
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Thu Jun 10, 2004 1:29 pm    Post subject: Closing the calendar created from DSU Reply with quote

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 Question

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 Question

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jun 22, 2004 10:56 am    Post subject: Reply with quote

Quick one here:

Code:
%%WM_DESTROY = $2
%A = @SENDMSG("%"%%Calend,%%WM_DESTROY,0,0)

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Tue Jun 22, 2004 12:28 pm    Post subject: Reply with quote

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 Sad

Regards
Andy F

CodeScript wrote:
Quick one here:

Code:
%%WM_DESTROY = $2
%A = @SENDMSG("%"%%Calend,%%WM_DESTROY,0,0)
Back to top
View user's profile Send private message
Andy_Fletcher
Contributor
Contributor


Joined: 10 Jun 2003
Posts: 90
Location: Somerset, United Kingdom

PostPosted: Tue Jun 22, 2004 12:53 pm    Post subject: Reply with quote

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 Sad

Regards
Andy F

CodeScript wrote:
Quick one here:

Code:
%%WM_DESTROY = $2
%A = @SENDMSG("%"%%Calend,%%WM_DESTROY,0,0)
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jun 22, 2004 7:47 pm    Post subject: Reply with quote

Sorry I didn't test the code- it doesn't work.
I have updated the DSU with a close command.
Code:
Calendar Close,%%Calend


You can take a look at the examples at http://codescript.vdsworld.com
as well as platform sdk availble for free download from Micro$oft. To get the values of the constants used U can try the API constants collection for VDS available at main site.



calelm.dsu
 Description:
Calendar DSU Now with Close command

Download
 Filename:  calelm.dsu
 Filesize:  3.65 KB
 Downloaded:  1446 Time(s)


_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group