| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Apr 08, 2003 6:26 am Post subject: Dates / Calendar |
|
|
Hi,
I hope the personal problems in this community will get solved
soon - it's no solution to leave such a great and helpfull community.
I looked at many other communities here in germany - specially on
my industry (webhosting) - all communities I found are very agressive
and loud. Because of this I like every visit here in vdsworld. I am developing vds apps since some years and alway people from vdsworld helped me solving beginner-problems or getting ideas for bigger
projects.
I think most people on this board feel the same so I think there should be
a peacefull solution so we can all be happy again
But here's my vds-related question.
I need to design a small calendar-application for my project,
but I have no good idea.
First of all I think using the calendar-element from vds is good,
but I cannot make a day bold if he has a date in it, like outlook does.
And how is a good, easy and good-designd way to build the dates
in a list ? I thought about doing this with vdslists.dll but to do so there
should be a function to change the background color - so that I could change it for each second row (grey and white) to make it more readable.
Does somebody have an idea how to make a good calendar ?
Thank you all again for your help.
Bye, Fabian |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Apr 08, 2003 9:19 am Post subject: |
|
|
hi fabian,
what about using a button for each day so that you would have rows and columns of buttons...people would then click on the correct day/button to make an entry or edit an entry...
or perhaps even bitbuttons or something like that...
not too sure what you mean by building dates using lists...
Serge _________________
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Apr 08, 2003 9:34 am Post subject: Dates / Calendar |
|
|
Hi Serge,
i think building a all 31 days of a month with buttons is much of
code and does'nt looks good.
With datelist i mean the listing of all dates of one day like in outlook
(from 8 to 10, Breakfast .......
I could do this with lists but how does this look  |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Apr 08, 2003 9:49 am Post subject: |
|
|
you don't have to write the code to add each of the 31 buttons by hand, you can use a loop to do that...i did that with my program A BETTER CHARACTER MAP which you can find at http://forum.vdsworld.com/viewtopic.php?t=1065&start=0
here's the relevant part of the code
| Code: | rem === draws the buttons ===
%j = 2
%%y_position = 10
repeat
%i = 1
%%x_position = 185
repeat
%%x_position = @fadd(%%x_position,30)
%%button_index = @fadd(@fmul(%j,16),%i)
if @equal(%%start,no)
dialog remove, button%%button_index
end
DIALOG ADD,BUTTON,BUTTON%%button_index,%%y_position,%%x_position,30,30,@chr(@fadd(@fmul(%j,16),%i)),,style%%style_index
%i = @succ(%i)
until @equal(%i,17)
%%y_position = @fadd(%%y_position,30)
%j = @succ(%j)
until @equal(%j,16)
dialog set, button256,
dialog disable, button256
dialog set, button38, @chr(38)
if @equal(%%start,no)
rem dialog remove, button_big
dialog remove, text1
end
rem dialog add,button,button_big,435,380,80,80,,,styles%%style_index
dialog add,text,text1,430,390,100,100,,,styles%%style_index
exit
|
am not sure about using lists...perhaps someone familiar with vdslists.dll
Serge _________________
|
|
| Back to top |
|
 |
|
|
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
|
|