| View previous topic :: View next topic |
| Author |
Message |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Wed Jun 23, 2004 10:09 am Post subject: |
|
|
Many thanks once again for your help CodeScript.
Take care now.
regards
Andy F
| CodeScript wrote: | 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. |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Wed Jun 23, 2004 10:23 am Post subject: |
|
|
Just tried the Close command with the DSU downloaded into the VDS Root directory but it did not work.
I noticed that the file was smaller than the latest one I had which you very kindly updated so I could use on a TAB dialog. Is it possible you have added the Close command to the older version that could not create the calendar on the TAB dialog
Regards
Andy F
| CodeScript wrote: | 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. |
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Jun 23, 2004 5:14 pm Post subject: |
|
|
I tested the very same DSU downloaded now on XP home (I have only that one here) and it works well on the TAB and closes too. So something wrong somewhere else I guess.
You need to use something like:
| Code: | | Calendar Close,%%Calend |
AND NOT
| Code: | | Calendar Close,"%"%%Calend |
_________________ 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: Thu Jun 24, 2004 11:47 am Post subject: |
|
|
These are the only two commands used for establishing the calendar and closing the Calendar:
#INCLUDE /REMS/Resources/Calelm.dsu
:CalcloseBUTTON
Calendar Close,%%Calend
Dialog Hide,Calclose
Goto Loop
:Calendar ONMenu
%%Calend = @Calendar(Create,@winexists(~TAB1),270,100,Auto,Auto,WEEKNUMBERS))
Dialog Show,Calclose
Goto Loop
The Calendar ONMenu works fine and Calendar is created. but the CloseBUTTON does not work.
The %%Calend variable is not used anywhere else in the script
Can you see any thing
What other issues could affect this
Regards
Andy F
| CodeScript wrote: | I tested the very same DSU downloaded now on XP home (I have only that one here) and it works well on the TAB and closes too. So something wrong somewhere else I guess.
You need to use something like:
| Code: | | Calendar Close,%%Calend |
AND NOT
| Code: | | Calendar Close,"%"%%Calend |
|
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu Jun 24, 2004 11:58 am Post subject: |
|
|
Can you set up the DSU for download again, maybe I have mixed up the new and old script. I only have one copy now on the system and will download to over write the one I am using.
Many Thanks
Andy F
| CodeScript wrote: | I tested the very same DSU downloaded now on XP home (I have only that one here) and it works well on the TAB and closes too. So something wrong somewhere else I guess.
You need to use something like:
| Code: | | Calendar Close,%%Calend |
AND NOT
| Code: | | Calendar Close,"%"%%Calend |
|
|
|
| Back to top |
|
 |
|