Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12849 > unrolled thread

calendar controll

Started byaurorabaccio@gmail.com
First post2020-02-16 02:09 -0800
Last post2020-03-07 07:37 -0800
Articles 20 on this page of 37 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  calendar controll aurorabaccio@gmail.com - 2020-02-16 02:09 -0800
    Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-16 21:30 +0100
      Re: calendar controll aurorabaccio@gmail.com - 2020-02-17 07:27 -0800
        Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-17 23:31 +0100
          Re: calendar controll aurorabaccio@gmail.com - 2020-02-18 06:04 -0800
            Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-18 16:34 +0100
              Re: calendar controll aurorabaccio@gmail.com - 2020-02-18 08:19 -0800
                Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-19 21:28 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-02-19 22:46 -0800
    Re: calendar controll aurorabaccio@gmail.com - 2020-02-19 23:02 -0800
    Re: calendar controll aurorabaccio@gmail.com - 2020-02-20 04:59 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-22 22:07 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-02-20 05:30 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-22 22:06 +0100
        Re: calendar controll aurorabaccio@gmail.com - 2020-02-23 05:06 -0800
          Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-24 14:35 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-02-27 05:12 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-27 20:46 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-02-29 06:54 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-02-29 16:45 +0100
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-01 20:41 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-02 05:50 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-02 19:19 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-03 05:42 -0800
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-03 05:52 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-03 23:20 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-03 07:33 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-03 23:01 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-04 07:22 -0800
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 05:32 -0800
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 05:48 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-06 22:14 +0100
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 05:54 -0800
    Re: calendar controll aurorabaccio@gmail.com - 2020-03-06 23:44 -0800
      Re: calendar controll aurorabaccio@gmail.com - 2020-03-07 06:04 -0800
      Re: calendar controll "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2020-03-07 15:54 +0100
        Re: calendar controll aurorabaccio@gmail.com - 2020-03-07 07:37 -0800

Page 1 of 2  [1] 2  Next page →


#12849 — calendar controll

Fromaurorabaccio@gmail.com
Date2020-02-16 02:09 -0800
Subjectcalendar controll
Message-ID<49aaabb2-544a-4709-8705-94784696e717@googlegroups.com>
sorry my english 
is there any way to have bigger fonts in calendarcontroll? 
Thanks
aurora baccio

[toc] | [next] | [standalone]


#12851

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-16 21:30 +0100
Message-ID<hatn4jFi03qU1@mid.individual.net>
In reply to#12849
Hello Aurora,

By separate mail I send you a Download from the Usergroup Bodensee.

regards
Urs

<aurorabaccio@gmail.com> schrieb im Newsbeitrag 
news:49aaabb2-544a-4709-8705-94784696e717@googlegroups.com...
> sorry my english
> is there any way to have bigger fonts in calendarcontroll?
> Thanks
> aurora baccio 

[toc] | [prev] | [next] | [standalone]


#12852

Fromaurorabaccio@gmail.com
Date2020-02-17 07:27 -0800
Message-ID<0a311a4c-379a-4c47-a7c9-7e586e68d5f1@googlegroups.com>
In reply to#12851
Il giorno domenica 16 febbraio 2020 21:31:16 UTC+1, Urs Eggmann ha scritto:
> Hello Aurora,
> 
> By separate mail I send you a Download from the Usergroup Bodensee.
> 
> regards
> Urs
> 
> <aurorabaccio@gmail.com> schrieb im Newsbeitrag 
> news:49aaabb2-544a-4709-8705-94784696e717@googlegroups.com...
> > sorry my english
> > is there any way to have bigger fonts in calendarcontroll?
> > Thanks
> > aurora baccio



well, I was able to write the days of the week in Italian without problems.
choosing a day I have to open a mask. How can I do ?
in calendarcontrol I have the DateChanged method, is there something similar here?
Mine is horrible English and I'm sorry, do you speak Italian?
thank you
aurora baccio

[toc] | [prev] | [next] | [standalone]


#12853

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-17 23:31 +0100
Message-ID<hb0ii4F5qfnU1@mid.individual.net>
In reply to#12852
Hi Aurora,

In our control we have the method "MouseButtonDown(oMe) where you can react 
on the RightClick with the mouse. In our example we show a Context menu.

With the method "MouseButtonDoubleClick(oME)" I have opened a TextBox. Any 
other reaction is possible. For instance a DataWindow etc..

I do not understand exactly what the method DateChanged does. To what class 
does it belong?

HTH
Urs


<aurorabaccio@gmail.com> schrieb im Newsbeitrag 
news:0a311a4c-379a-4c47-a7c9-7e586e68d5f1@googlegroups.com...
> Il giorno domenica 16 febbraio 2020 21:31:16 UTC+1, Urs Eggmann ha 
> scritto:
>> Hello Aurora,
>>
>> By separate mail I send you a Download from the Usergroup Bodensee.
>>
>> regards
>> Urs
>>
>> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
>> news:49aaabb2-544a-4709-8705-94784696e717@googlegroups.com...
>> > sorry my english
>> > is there any way to have bigger fonts in calendarcontroll?
>> > Thanks
>> > aurora baccio
>
>
>
> well, I was able to write the days of the week in Italian without 
> problems.
> choosing a day I have to open a mask. How can I do ?
> in calendarcontrol I have the DateChanged method, is there something 
> similar here?
> Mine is horrible English and I'm sorry, do you speak Italian?
> thank you
> aurora baccio 

[toc] | [prev] | [next] | [standalone]


#12855

Fromaurorabaccio@gmail.com
Date2020-02-18 06:04 -0800
Message-ID<bea91d6b-e44a-4f4c-b6dd-036ae8ef3428@googlegroups.com>
In reply to#12853
Il giorno lunedì 17 febbraio 2020 23:31:34 UTC+1, Urs Eggmann ha scritto:
> Hi Aurora,
> 
> In our control we have the method "MouseButtonDown(oMe) where you can react 
> on the RightClick with the mouse. In our example we show a Context menu.
> 
> With the method "MouseButtonDoubleClick(oME)" I have opened a TextBox. Any 
> other reaction is possible. For instance a DataWindow etc..
> 
> I do not understand exactly what the method DateChanged does. To what class 
> does it belong?
> 
> HTH
> Urs
> 
> 
> <aurorabaccio@gmail.com> schrieb im Newsbeitrag 
> news:0a311a4c-379a-4c47-a7c9-7e586e68d5f1@googlegroups.com...
> > Il giorno domenica 16 febbraio 2020 21:31:16 UTC+1, Urs Eggmann ha 
> > scritto:
> >> Hello Aurora,
> >>
> >> By separate mail I send you a Download from the Usergroup Bodensee.
> >>
> >> regards
> >> Urs
> >>
> >> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> >> news:49aaabb2-544a-4709-8705-94784696e717@googlegroups.com...
> >> > sorry my english
> >> > is there any way to have bigger fonts in calendarcontroll?
> >> > Thanks
> >> > aurora baccio
> >
> >
> >
> > well, I was able to write the days of the week in Italian without 
> > problems.
> > choosing a day I have to open a mask. How can I do ?
> > in calendarcontrol I have the DateChanged method, is there something 
> > similar here?
> > Mine is horrible English and I'm sorry, do you speak Italian?
> > thank you
> > aurora baccio

thank you. I got it working.
question: where is txtostem calculated?
and how is the date written in the fixed text?
thank you
aurora baccio


[toc] | [prev] | [next] | [standalone]


#12856

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-18 16:34 +0100
Message-ID<hb2ehiFhlihU1@mid.individual.net>
In reply to#12855
Hi Aurora,

The CalendarControl (ccCalendar) calculates the Date of Eastersunday
(Domenica di pasqua) by the

FUNCTION OsterSonntag(Jahr AS INT) AS USUAL

in its init-method and writes it into the protect variable

PROTECT _dOstern  (see access methods)


The module dtaTest has a method Feiertage() "Vacanze" ?
In line 2 the instance _dOstern is converted to text and written into the
FixedText.

METHOD Feiertage() CLASS dtaTest // Vom Control berechnete bewegliche
Feiertage übertragen
SELF:oDCtxtOstern:TextValue := DToC(SELF:oDCcusCalendar:dOstern)  // That's
it !
SELF:oDCtxtAuffahrt:TextValue := DToC(SELF:oDCcusCalendar:dAuffahrt)
SELF:oDCtxtPfingsten:TextValue := DToC(SELF:oDCcusCalendar:dPfingsten)
RETURN NIL

(Probably misunderstanding "txtos t e m" with "txtos t e r n"

Regards
Urs

<aurorabaccio@gmail.com> schrieb im Newsbeitrag
news:bea91d6b-e44a-4f4c-b6dd-036ae8ef3428@googlegroups.com...
Il giorno lunedì 17 febbraio 2020 23:31:34 UTC+1, Urs Eggmann ha scritto:
> Hi Aurora,
>
> In our control we have the method "MouseButtonDown(oMe) where you can
> react
> on the RightClick with the mouse. In our example we show a Context menu.
>
> With the method "MouseButtonDoubleClick(oME)" I have opened a TextBox. Any
> other reaction is possible. For instance a DataWindow etc..
>
> I do not understand exactly what the method DateChanged does. To what
> class
> does it belong?
>
> HTH
> Urs
>
>
> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> news:0a311a4c-379a-4c47-a7c9-7e586e68d5f1@googlegroups.com...
> > Il giorno domenica 16 febbraio 2020 21:31:16 UTC+1, Urs Eggmann ha
> > scritto:
> >> Hello Aurora,
> >>
> >> By separate mail I send you a Download from the Usergroup Bodensee.
> >>
> >> regards
> >> Urs
> >>
> >> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> >> news:49aaabb2-544a-4709-8705-94784696e717@googlegroups.com...
> >> > sorry my english
> >> > is there any way to have bigger fonts in calendarcontroll?
> >> > Thanks
> >> > aurora baccio
> >
> >
> >
> > well, I was able to write the days of the week in Italian without
> > problems.
> > choosing a day I have to open a mask. How can I do ?
> > in calendarcontrol I have the DateChanged method, is there something
> > similar here?
> > Mine is horrible English and I'm sorry, do you speak Italian?
> > thank you
> > aurora baccio

thank you. I got it working.
question: where is txtostem calculated?
and how is the date written in the fixed text?
thank you
aurora baccio

[toc] | [prev] | [next] | [standalone]


#12857

Fromaurorabaccio@gmail.com
Date2020-02-18 08:19 -0800
Message-ID<884e2b22-2f0a-469b-bb57-ad5e8a435fe1@googlegroups.com>
In reply to#12856
Il giorno martedì 18 febbraio 2020 16:35:16 UTC+1, Urs Eggmann ha scritto:
> Hi Aurora,
> 
> The CalendarControl (ccCalendar) calculates the Date of Eastersunday
> (Domenica di pasqua) by the
> 
> FUNCTION OsterSonntag(Jahr AS INT) AS USUAL
> 
> in its init-method and writes it into the protect variable
> 
> PROTECT _dOstern  (see access methods)
> 
> 

fine thanks. I understand how it works.
Now in DTA test_VO I have created the SleProvaData.
How do I enter the date I have selected?
I would like to run it from the MouseButtonDown (oME) method
always thanks
aurora baccio
> The module dtaTest has a method Feiertage() "Vacanze" ?
> In line 2 the instance _dOstern is converted to text and written into the
> FixedText.
> 
> METHOD Feiertage() CLASS dtaTest // Vom Control berechnete bewegliche
> Feiertage übertragen
> SELF:oDCtxtOstern:TextValue := DToC(SELF:oDCcusCalendar:dOstern)  // That's
> it !
> SELF:oDCtxtAuffahrt:TextValue := DToC(SELF:oDCcusCalendar:dAuffahrt)
> SELF:oDCtxtPfingsten:TextValue := DToC(SELF:oDCcusCalendar:dPfingsten)
> RETURN NIL
> 
> (Probably misunderstanding "txtos t e m" with "txtos t e r n"
> 
> Regards
> Urs
> 
> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> news:bea91d6b-e44a-4f4c-b6dd-036ae8ef3428@googlegroups.com...
> Il giorno lunedì 17 febbraio 2020 23:31:34 UTC+1, Urs Eggmann ha scritto:
> > Hi Aurora,
> >
> > In our control we have the method "MouseButtonDown(oMe) where you can
> > react
> > on the RightClick with the mouse. In our example we show a Context menu.
> >
> > With the method "MouseButtonDoubleClick(oME)" I have opened a TextBox. Any
> > other reaction is possible. For instance a DataWindow etc..
> >
> > I do not understand exactly what the method DateChanged does. To what
> > class
> > does it belong?
> >
> > HTH
> > Urs
> >
> >
> > <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> > news:0a311a4c-379a-4c47-a7c9-7e586e68d5f1@googlegroups.com...
> > > Il giorno domenica 16 febbraio 2020 21:31:16 UTC+1, Urs Eggmann ha
> > > scritto:
> > >> Hello Aurora,
> > >>
> > >> By separate mail I send you a Download from the Usergroup Bodensee.
> > >>
> > >> regards
> > >> Urs
> > >>
> > >> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> > >> news:49aaabb2-544a-4709-8705-94784696e717@googlegroups.com...
> > >> > sorry my english
> > >> > is there any way to have bigger fonts in calendarcontroll?
> > >> > Thanks
> > >> > aurora baccio
> > >
> > >
> > >
> > > well, I was able to write the days of the week in Italian without
> > > problems.
> > > choosing a day I have to open a mask. How can I do ?
> > > in calendarcontrol I have the DateChanged method, is there something
> > > similar here?
> > > Mine is horrible English and I'm sorry, do you speak Italian?
> > > thank you
> > > aurora baccio
> 
> thank you. I got it working.
> question: where is txtostem calculated?
> and how is the date written in the fixed text?
> thank you
> aurora baccio

[toc] | [prev] | [next] | [standalone]


#12858

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-19 21:28 +0100
Message-ID<hb5k4bF7sakU1@mid.individual.net>
In reply to#12857
Hi Aurora,

Working on your question I have found, besides the solution, a smal mistake 
in the code. Please replace in the module "dtaTest ohne OA" the method 
init()with the following code:

METHOD Init(oWindow,iCtlID,oServer,uExtra) CLASS dtaTest_ohne
LOCAL aControls AS ARRAY
LOCAL nLen AS DWORD
LOCAL nZaehler AS DWORD
SUPER:Init(oWindow,,iCtlID,oServer,uExtra)
SELF:Caption := "cusCalendar OHNE OwnerAlignment"
SELF:oDCtxtOA:TextValue := "Demo ohne OA"
aControls := SELF:GetAllChildren()
nLen := ALen(aControls)
FOR nZaehler := 1 TO nLen
aControls[nZaehler]:OwnerAlignment := PTR(_CAST, 0x00000000)
NEXT nZaehler
SELF:MinSize := SELF:Size
RETURN SELF
/*End of replacement*/

To show a clicked date in a sle please go to the module ccCalendar und 
insert just before the RETURN  NIL the following code:

// Nuova sezione (translation with help of google...)
IF LallowedArea SELF:Owner:oDCsleProvaData:TextValue := LTrim(Str(nFound) ) 
+ ". " + LTrim(CMonth(SELF:dActualDate) ) + ". " + 
LTrim(Str(Year(SELF:dActualDate) ) )
ENDIF
/*End of insert*/

It is the same code, I use in the method MouseDoubleClick()

HTH
Urs


<aurorabaccio@gmail.com> schrieb im Newsbeitrag 
news:884e2b22-2f0a-469b-bb57-ad5e8a435fe1@googlegroups.com...
Il giorno martedì 18 febbraio 2020 16:35:16 UTC+1, Urs Eggmann ha scritto:
> Hi Aurora,
>
> The CalendarControl (ccCalendar) calculates the Date of Eastersunday
> (Domenica di pasqua) by the
>
> FUNCTION OsterSonntag(Jahr AS INT) AS USUAL
>
> in its init-method and writes it into the protect variable
>
> PROTECT _dOstern  (see access methods)
>
>

fine thanks. I understand how it works.
Now in DTA test_VO I have created the SleProvaData.
How do I enter the date I have selected?
I would like to run it from the MouseButtonDown (oME) method
always thanks
aurora baccio
> The module dtaTest has a method Feiertage() "Vacanze" ?
> In line 2 the instance _dOstern is converted to text and written into the
> FixedText.
>
> METHOD Feiertage() CLASS dtaTest // Vom Control berechnete bewegliche
> Feiertage übertragen
> SELF:oDCtxtOstern:TextValue := DToC(SELF:oDCcusCalendar:dOstern)  // 
> That's
> it !
> SELF:oDCtxtAuffahrt:TextValue := DToC(SELF:oDCcusCalendar:dAuffahrt)
> SELF:oDCtxtPfingsten:TextValue := DToC(SELF:oDCcusCalendar:dPfingsten)
> RETURN NIL
>
> (Probably misunderstanding "txtos t e m" with "txtos t e r n"
>
> Regards
> Urs
>
> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> news:bea91d6b-e44a-4f4c-b6dd-036ae8ef3428@googlegroups.com...
> Il giorno lunedì 17 febbraio 2020 23:31:34 UTC+1, Urs Eggmann ha scritto:
> > Hi Aurora,
> >
> > In our control we have the method "MouseButtonDown(oMe) where you can
> > react
> > on the RightClick with the mouse. In our example we show a Context menu.
> >
> > With the method "MouseButtonDoubleClick(oME)" I have opened a TextBox. 
> > Any
> > other reaction is possible. For instance a DataWindow etc..
> >
> > I do not understand exactly what the method DateChanged does. To what
> > class
> > does it belong?
> >
> > HTH
> > Urs
> >
> >
> > <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> > news:0a311a4c-379a-4c47-a7c9-7e586e68d5f1@googlegroups.com...
> > > Il giorno domenica 16 febbraio 2020 21:31:16 UTC+1, Urs Eggmann ha
> > > scritto:
> > >> Hello Aurora,
> > >>
> > >> By separate mail I send you a Download from the Usergroup Bodensee.
> > >>
> > >> regards
> > >> Urs
> > >>
> > >> <aurorabaccio@gmail.com> schrieb im Newsbeitrag
> > >> news:49aaabb2-544a-4709-8705-94784696e717@googlegroups.com...
> > >> > sorry my english
> > >> > is there any way to have bigger fonts in calendarcontroll?
> > >> > Thanks
> > >> > aurora baccio
> > >
> > >
> > >
> > > well, I was able to write the days of the week in Italian without
> > > problems.
> > > choosing a day I have to open a mask. How can I do ?
> > > in calendarcontrol I have the DateChanged method, is there something
> > > similar here?
> > > Mine is horrible English and I'm sorry, do you speak Italian?
> > > thank you
> > > aurora baccio
>
> thank you. I got it working.
> question: where is txtostem calculated?
> and how is the date written in the fixed text?
> thank you
> aurora baccio 

[toc] | [prev] | [next] | [standalone]


#12859

Fromaurorabaccio@gmail.com
Date2020-02-19 22:46 -0800
Message-ID<ec24385f-af42-496f-b6c3-5c6057584387@googlegroups.com>
In reply to#12849
Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha scritto:
> sorry my english 
> is there any way to have bigger fonts in calendarcontroll? 
> Thanks
> aurora baccio


thanks for the help and information.
I provide the suggested correction.
Where is the module ccCalendar und ???
Aurora Baccio

[toc] | [prev] | [next] | [standalone]


#12860

Fromaurorabaccio@gmail.com
Date2020-02-19 23:02 -0800
Message-ID<88042bc8-8db0-4e60-9f88-dd8e60f01cc2@googlegroups.com>
In reply to#12849
Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha scritto:
> sorry my english 
> is there any way to have bigger fonts in calendarcontroll? 
> Thanks
> aurora baccio

ok
method mousebuttondow(oME)
 IF LallowedArea 
 self:Owner:oDCProvaData:TextValue := LTrim(Str(nFound) )  + ". " + LTrim(CMonth(self:dActualDate) ) + ". " +LTrim(Str(Year(self:dActualDate) ) )
ENDIF

[toc] | [prev] | [next] | [standalone]


#12861

Fromaurorabaccio@gmail.com
Date2020-02-20 04:59 -0800
Message-ID<d5f7ce60-8d30-4cb3-863d-1fe0397222a9@googlegroups.com>
In reply to#12849
Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha scritto:
> sorry my english 
> is there any way to have bigger fonts in calendarcontroll? 
> Thanks
> aurora baccio

by a button I would like to bring the calendar to the date of 1/12/2020.
How can I do ?
I have tried with
METHOD PushButton4 () CLASS dtaTest_vo

self: oDCcusCalendar: dActualDate: = CToD ("01/12/2020")

RETURN NIL
but it does not work
Thank you
aurora baccio

[toc] | [prev] | [next] | [standalone]


#12864

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-22 22:07 +0100
Message-ID<hbdjhvFsapnU2@mid.individual.net>
In reply to#12861
Hi Aurora,

Add the following method and the corresponding push button to dtaTest:
************************************
METHOD pbSetCalendar() CLASS dtaTest
LOCAL dSetCalendar AS DATE
LOCAL oTB AS TextBox
dSetCalendar:= CToD(oDCsleSetDate:TextValue) // Convert string to date
// Translations per Google..(g)..
IF dSetCalendar == NULL_DATE // Test sulla data valida
oTB := TextBox{,"Attenzione","La data non è valida"}
oTB:Type := BUTTONOKAY+BOXICONEXCLAMATION
oTB:show()
ELSE
// OK, send the instruction to the ccCalendar
Send(SELF:oDCcusCalendar, #Actualize , dSetCalendar)
ENDIF
/* ? Day(dSetCalendar) // Just for information
? Month(dSetCalendar)
? Year(dSetCalendar) */
RETURN NIL
************************************

regards
Urs

<aurorabaccio@gmail.com> schrieb im Newsbeitrag
news:d5f7ce60-8d30-4cb3-863d-1fe0397222a9@googlegroups.com...
> Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha
> scritto:
>> sorry my english
>> is there any way to have bigger fonts in calendarcontroll?
>> Thanks
>> aurora baccio
>
> by a button I would like to bring the calendar to the date of 1/12/2020.
> How can I do ?
> I have tried with
> METHOD PushButton4 () CLASS dtaTest_vo
>
> self: oDCcusCalendar: dActualDate: = CToD ("01/12/2020")
>
> RETURN NIL
> but it does not work
> Thank you
> aurora baccio

[toc] | [prev] | [next] | [standalone]


#12862

Fromaurorabaccio@gmail.com
Date2020-02-20 05:30 -0800
Message-ID<e39c2faa-ef48-46dd-a9f4-a3d05637363b@googlegroups.com>
In reply to#12849
Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha scritto:
> sorry my english 
> is there any way to have bigger fonts in calendarcontroll? 
> Thanks
> aurora baccio


I would like to color every Saturday every month
I would also like to color bear on 25/4/2020
how to do ?
thank you
aurora baccio

[toc] | [prev] | [next] | [standalone]


#12865

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-22 22:06 +0100
Message-ID<hbdjhuFsapnU1@mid.individual.net>
In reply to#12862
Hi Aurora,

I have not yet a solution. What do you want to color on Saturdays?
Text or background?

What do you mean by color bear ?

Urs

<aurorabaccio@gmail.com> schrieb im Newsbeitrag 
news:e39c2faa-ef48-46dd-a9f4-a3d05637363b@googlegroups.com...
> Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha 
> scritto:
>> sorry my english
>> is there any way to have bigger fonts in calendarcontroll?
>> Thanks
>> aurora baccio
>
>
> I would like to color every Saturday every month
> I would also like to color bear on 25/4/2020
> how to do ?
> thank you
> aurora baccio 

[toc] | [prev] | [next] | [standalone]


#12866

Fromaurorabaccio@gmail.com
Date2020-02-23 05:06 -0800
Message-ID<a80fdbd7-8754-4e89-b4c5-56ae2a982022@googlegroups.com>
In reply to#12865
Il giorno sabato 22 febbraio 2020 22:08:17 UTC+1, Urs Eggmann ha scritto:
> Hi Aurora,
> 
> I have not yet a solution. What do you want to color on Saturdays?
> Text or background?
> 
> What do you mean by color bear ?
> 
> Urs
> 
> <aurorabaccio@gmail.com> schrieb im Newsbeitrag 
> news:e39c2faa-ef48-46dd-a9f4-a3d05637363b@googlegroups.com...
> > Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha 
> > scritto:
> >> sorry my english
> >> is there any way to have bigger fonts in calendarcontroll?
> >> Thanks
> >> aurora baccio
> >
> >
> > I would like to color every Saturday every month
> > I would also like to color bear on 25/4/2020
> > how to do ?
> > thank you
> > aurora baccio

thanks for your help first.
I would like to color the text (day of the month) in red which corresponds to the Italian holiday.
The day of the month which corresponds to Saturday first of all.
One of the public holidays is on 25/04 / but there are others (02/06) every year.
Sorry first but I have no idea what I wrote.
always thanks
aurora baccio

[toc] | [prev] | [next] | [standalone]


#12867

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-24 14:35 +0100
Message-ID<hbi1oqFq7e4U1@mid.individual.net>
In reply to#12866
Hi Aurora,

Please let me give a little tip for the conversation. It is easier to put a
answer on top of the new mail. Then the answer is more closed to
the question.

First question:
> I would like to color the text (day of the month) in red which corresponds
> to the Italian holiday.
and
> One of the public holidays is on 25/04 / but there are others (02/06)
> every year.

For that you must know the rule for that day. For example  "third tuesday of
April" Next you need to put that in a function  "FUNCTION
FindTheWantedDay(Year as INT) as USUAl"
Similar to the function OsterSonntag(...) in the module
ccCalendar-Funktionen. Now you can take the method  "METHOD
Actualize(dTarget) CLASS ccCalendar" to use that date further. Quite a bit
of work.

Next question:
> The day of the month which corresponds to Saturday first of all.

Please replace the method "METHOD DrawDays( hDC , dDatum ) CLASS ccCalendar"
with the following:
At the end of the method you can see the principle. All Saturdays are shown
in a different color. (Keep attention on line breaks caused by the mail 
program!)

******************************************************
METHOD DrawDays( hDC , dDatum ) CLASS ccCalendar // Metodo con sabato 
colorato
LOCAL nDays, nCol, nRow , nColBegin ,i AS INT
* LOCAL nIndex AS INT
LOCAL rect IS _WINRECT
LOCAL dDateForWeekCalc, dDate AS DATE
* nBeginn := timeGetTime() // Für Zeitmessungen während der Entwicklung
SetBkMode(hDC, TRANSPARENT) // Sonst stehen die Tage auf kleinen weissen
Rechteckchen...
SelectObject(hDC , SELF:oFont_actual:Handle() )
SELF:aDays := {} // Array mit Tag, Column, Row und Index für die grafischen
Spielereien
// Erster Tag des Monats
SELF:dFirst := ConDate(Year(dDatum),Month(dDatum),1 )
dDate := SELF:dFirst - 1 // Startdate für das Array aDays
// Letzter Tag des Monats
SELF:dLast := SELF:LastDayofMonth(dDatum)
dDateForWeekCalc := SELF:dFirst // Datum zur Berechnung der Woche.
// Anzahl Tage im Monat
nDays := SELF:dLast - SELF:dFirst+1
// In welcher Kolonne (== Wochentag) startet die Tabelle?
nColBegin := nCol := DoWGer(SELF:dFirst ) // Montag als erster Tag der Woche
(VO hat den Sonntag....)
// Die Reihe ist immer die erste
nRow := 1
FOR i := 1 TO nDays
// Rechteck für die Woche des Monats
// Wird mehrfach gerechnet, wäre noch zu verbessern
rect.left :=0
rect.top := 35 + nRow * SELF:nHoeheRechteck
rect.right := rect.left+SELF:nBreiteRechteck
rect.bottom := rect.top +SELF:nHoeheRechteck - 2 // minus 2, sonst ist das
Grid weg....
SetTextColor(hDC, RGB(0,0,255))
// Draw the number of week
DrawText(hDC,String2Psz(Str( WeekFeser( dDateForWeekCalc ) ,2,0) )
,2,@rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE)
// Set the rect for the text
rect.left :=nCol * SELF:nBreiteRechteck
rect.top := 35 + nRow * SELF:nHoeheRechteck
rect.right := rect.left + SELF:nBreiteRechteck
rect.bottom := rect.top+SELF:nHoeheRechteck
// Draw the text
SetTextColor(hDC, RGB(0,0,0))
DrawText(hDC,String2Psz(Str(i,2,0) ),2,@rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE)
// nIndex := ( nRow - 1) * 7 + nCol
AAdd (SELF:aDays , { i , nCol , nRow, ( nRow - 1) * 7 + nCol , dDate + i } )
// "Universal-Array für Tage, Spalten, Reihen und Datums des Monats
* ? i , " " , nCol , " " , nRow , " " , ( nRow - 1) * 7 + nCol
// Quando è sabato ... // Wenn es Sonntag ist....
* IF Mod( nCol , 6 ) == 0
IF nCol == 6
SetTextColor(hDC, RGB(0,200,200))
rect.left := nCol * SELF:nBreiteRechteck
rect.top := 35 + nRow * SELF:nHoeheRechteck
rect.right := rect.left + SELF:nBreiteRechteck
rect.bottom := rect.top + SELF:nHoeheRechteck
DrawText(hDC,String2Psz(Str(i,2,0) ),2,@rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE)
SetTextColor(hDC, RGB(0,0,0))
ELSEIF nCol == 7 // Quando è domenica ... // Wenn es Sonntag ist....
SetTextColor(hDC, RGB(255,0,0))
rect.left := nCol * SELF:nBreiteRechteck
rect.top := 35 + nRow * SELF:nHoeheRechteck
rect.right := rect.left + SELF:nBreiteRechteck
rect.bottom := rect.top + SELF:nHoeheRechteck
DrawText(hDC,String2Psz(Str(i,2,0) ),2,@rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE)
SetTextColor(hDC, RGB(0,0,0))
nCol := 0 // Reset nCol
nRow ++
dDateForWeekCalc += 7
ENDIF
nCol ++ //
NEXT i
IF Between(Today() , SELF:dFirst , SELF:dLast)
SELF:FrameCell(Today(),hDC )
ENDIF
* ShowArray(SELF:aDays)
* nEnde := timeGetTime()
* ? nDauer := nEnde - nBeginn , ' milliSec'
RETURN NIL
******************************************************

regards
Urs

[toc] | [prev] | [next] | [standalone]


#12874

Fromaurorabaccio@gmail.com
Date2020-02-27 05:12 -0800
Message-ID<bae69a41-347a-45fe-a557-08421f9eb3b1@googlegroups.com>
In reply to#12849
Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha scritto:
> sorry my english 
> is there any way to have bigger fonts in calendarcontroll? 
> Thanks
> aurora baccio


Okay, I'm starting to understand how to do it. I just have to adapt.
I would like to ask you if I can send cccalendar to some friends.
thank you
aurora baccio

[toc] | [prev] | [next] | [standalone]


#12875

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-27 20:46 +0100
Message-ID<hbqkkmFljh4U1@mid.individual.net>
In reply to#12874
Hi Aurora,

There is no copyright on this code. All was published on several platforms.
regards
Urs

<aurorabaccio@gmail.com> schrieb im Newsbeitrag
news:bae69a41-347a-45fe-a557-08421f9eb3b1@googlegroups.com...
> Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha
> scritto:
>> sorry my english
>> is there any way to have bigger fonts in calendarcontroll?
>> Thanks
>> aurora baccio
>
>
> Okay, I'm starting to understand how to do it. I just have to adapt.
> I would like to ask you if I can send cccalendar to some friends.
> thank you
> aurora baccio

[toc] | [prev] | [next] | [standalone]


#12878

Fromaurorabaccio@gmail.com
Date2020-02-29 06:54 -0800
Message-ID<eeb805e9-57f9-4963-9d7f-9e6998ffe399@googlegroups.com>
In reply to#12849
Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha scritto:
> sorry my english 
> is there any way to have bigger fonts in calendarcontroll? 
> Thanks
> aurora baccio


good afternoon,
I point out that moving a year forward (from 2020 to 2021) the error NUMERIC OWERFLOW appears line 12 DRAWDAYS
thank you
aurora baccio 

[toc] | [prev] | [next] | [standalone]


#12879

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2020-02-29 16:45 +0100
Message-ID<hbvrcbFoa9vU1@mid.individual.net>
In reply to#12878
Hi Aurora.
That's definiteli a bug! I will have a look at it.
Regards
Urs

<aurorabaccio@gmail.com> schrieb im Newsbeitrag 
news:eeb805e9-57f9-4963-9d7f-9e6998ffe399@googlegroups.com...
> Il giorno domenica 16 febbraio 2020 11:09:46 UTC+1, aurora...@gmail.com ha 
> scritto:
>> sorry my english
>> is there any way to have bigger fonts in calendarcontroll?
>> Thanks
>> aurora baccio
>
>
> good afternoon,
> I point out that moving a year forward (from 2020 to 2021) the error 
> NUMERIC OWERFLOW appears line 12 DRAWDAYS
> thank you
> aurora baccio 

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web