Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12858
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: calendar controll |
| Date | 2020-02-19 21:28 +0100 |
| Message-ID | <hb5k4bF7sakU1@mid.individual.net> (permalink) |
| References | (2 earlier) <0a311a4c-379a-4c47-a7c9-7e586e68d5f1@googlegroups.com> <hb0ii4F5qfnU1@mid.individual.net> <bea91d6b-e44a-4f4c-b6dd-036ae8ef3428@googlegroups.com> <hb2ehiFhlihU1@mid.individual.net> <884e2b22-2f0a-469b-bb57-ad5e8a435fe1@googlegroups.com> |
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
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web