Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12849 > unrolled thread
| Started by | aurorabaccio@gmail.com |
|---|---|
| First post | 2020-02-16 02:09 -0800 |
| Last post | 2020-03-07 07:37 -0800 |
| Articles | 17 on this page of 37 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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 2 of 2 — ← Prev page 1 [2]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2020-03-01 20:41 +0100 |
| Message-ID | <hc2hitFb1ehU1@mid.individual.net> |
| In reply to | #12878 |
Hi Aurora, I have killed the Bug! In module ccCalendar, line 3 the dTarget is formed with the function ConDate(<dwYear>, <dwMonth>, <dwDay>) ---> dDate The third parameter is the number of the day in the protect variable dActualDate and that is the February 29th! So, the return value is a NULL_DATE and that causes the error. The program tries to go to the februarry 29 of a non leap year... Obviously nobody has tested ever the program exactly at a switching day of a leap year. As a workaround I set the third param to 1, a day you have in every month. BUT, if you have other dependencies of the dActualDate in your program it is essential to check the effects very carfully. Modified Method: ******************************************** METHOD MoveYear(n) CLASS ccCalendar // Adapted from VO-Original example LOCAL dTarget AS DATE * dTarget := ConDate(Year(SELF:dActualDate) + n ,Month(SELF:dActualDate),Day(SELF:dActualDate)) dTarget := ConDate(Year(SELF:dActualDate) + n ,Month(SELF:dActualDate), 1 ) IF IsMethod(SELF , #Actualize) SELF:Actualize(dTarget) // Nachführen des Calendar-Controls ENDIF IF IsMethod(SELF:Owner , #Feiertage) SELF:Owner:Feiertage() // Aktualisieren in der Anzeige des Owners ENDIF RETURN NIL *********************************** HTH and regards Urs PS: For testing I had to switch my PC temporarily to the february 29 (bg) <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]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-02 05:50 -0800 |
| Message-ID | <8dd9df05-66b2-4fb5-b665-b4608039e8b5@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
METHOD PushButton4( ) CLASS dtaTest_vo
LOCAL dSetCalendar as date
LOCAL oTB as TextBox
*dSetCalendar:= CToD(oDCsleSetDate:TextValue) // Convert string to date
dSetCalendar:= CToD("01/04/2020") // sto cercando aprile 2020
// 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
the method is fine.
Question: the reference year is variable how do I get it from cccalendar?
Grazie
aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2020-03-02 19:19 +0100 |
| Message-ID | <hc510uFqr4nU1@mid.individual.net> |
| In reply to | #12883 |
Hi Aurora,
First:
I do not exactly understand what you mean with "reference year" ?
Second:
Did you see my answer about the error at february 29?
Urs
<aurorabaccio@gmail.com> schrieb im Newsbeitrag
news:8dd9df05-66b2-4fb5-b665-b4608039e8b5@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
METHOD PushButton4( ) CLASS dtaTest_vo
LOCAL dSetCalendar as date
LOCAL oTB as TextBox
*dSetCalendar:= CToD(oDCsleSetDate:TextValue) // Convert string to date
dSetCalendar:= CToD("01/04/2020") // sto cercando aprile 2020
// 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
the method is fine.
Question: the reference year is variable how do I get it from cccalendar?
Grazie
aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-03 05:42 -0800 |
| Message-ID | <76f80725-378f-449e-9a74-39ea3e3ba187@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 Yes thanks aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-03 05:52 -0800 |
| Message-ID | <5f005aa9-3ad2-4caf-8c12-84ff6eb3f256@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 was wondering: can I inherit the year variable in test_vo from cccalendar? aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2020-03-03 23:20 +0100 |
| Message-ID | <hc83hoFg791U2@mid.individual.net> |
| In reply to | #12892 |
Hi Aurora, I belive there is a misunderstanding inherit means ereditare, you can only ereditare classes Do you mean retrieve? (recuperare ?) If yes, place a pushbutton named pbTest onto the window dtaTest_vo and write the folowing method. Then you see the principle. regards Urs METHOD pbTest CLASS dtaTest // Button for variable testing ideas..... cls ? Year(SELF:oDCcusCalendar:dActualDate) ? Month(SELF:oDCcusCalendar:dActualDate) ? Day(SELF:oDCcusCalendar:dActualDate) RETURN NIL <aurorabaccio@gmail.com> schrieb im Newsbeitrag news:5f005aa9-3ad2-4caf-8c12-84ff6eb3f256@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 was wondering: can I inherit the year variable in test_vo from > cccalendar? > aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-03 07:33 -0800 |
| Message-ID | <ee761b22-cb83-4290-bf44-c123087a53b6@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 red coloring day 1 May 2020. I followed his directions Do I need to know the rule of the day if I know the date? I created FestaUnoMaggio function according to its indications function Festaunomaggio (Jahr as int) as usual RETURN ConDate( DWORD(Jahr) , DWORD(5) , DWORD(1) ) In the ccCalendar class I added PROTECT _dUnoMaggio as date ACCESS dUnoMaggio CLASS ccCalendar RETURN self:_dUnoMaggio ASSIGN dUnoMaggio(uValue) CLASS ccCalendar self:_dUnoMaggio := uValue I created acces and assign in Actualize I added self:dUnoMaggio := Festaunomaggio(Year(dTarget)) How do you color the date red? Grazie Aurora Baccio RETURN self:_dUnoMaggio
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2020-03-03 23:01 +0100 |
| Message-ID | <hc83hoFg791U1@mid.individual.net> |
| In reply to | #12893 |
Hi Aurora,
The colors of the day-numbers is set in the method DrawDays(...)
There I inserted two pieces ocode, that changes the color to red.
regards
Urs
New method:
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)) // Set text color to blue
// Draw the number of week
DrawText(hDC,String2Psz(Str( WeekFeser( dDateForWeekCalc ) ,2,0) )
,2,@rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE)
SetTextColor(hDC, RGB(0,0,0)) // Set text color back to black
// 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
***************************** Begin Insert FOR coloring May First with red
IF i == 1 .AND. Month(dDatum) == 5
SetTextColor(hDC, RGB(250,0,0))
ENDIF
***************************** End Insert FOR coloring May First with red
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 Samstag ist....
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
***************************** Begin Insert FOR coloring May First with red
IF i == 1 .AND. Month(dDatum) == 5
SetTextColor(hDC, RGB(250,0,0))
ENDIF
***************************** End Insert FOR coloring May First with red
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
RETURN NIL
<aurorabaccio@gmail.com> schrieb im Newsbeitrag
news:ee761b22-cb83-4290-bf44-c123087a53b6@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
>
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-04 07:22 -0800 |
| Message-ID | <bcd2aa80-6d69-4b57-9c77-3039388c1960@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 all as for the year I referred to the Easter date and I solved it aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-06 05:32 -0800 |
| Message-ID | <8b4ecfd5-6e18-4b1d-bcaa-67f7fcb4c5ff@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 as for the coloring of May 1, what he suggested to me does not work thanks ***************************** Begin Insert FOR coloring May First with red Iniziare l'inserto per la colorazione Prima maggio con il rosso IF i == 1 .and. Month(dDatum) == 5 SetTextColor(hDC, RGB(250,0,0)) ENDIF ***************************** End Insert FOR coloring May First with red
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-06 05:48 -0800 |
| Message-ID | <225d2341-67c9-46e0-82b1-5285bf0e8334@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 solved everything. it was enough to move the lines of code. Now can you tell me what I need to copy to integrate ccalendar into my application? I presume : cccalendar cccalendar access assig cccalendar funktionen cursors thank you aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2020-03-06 22:14 +0100 |
| Message-ID | <hcfsq5F586eU1@mid.individual.net> |
| In reply to | #12904 |
Hi Aurora, Congratulation ! ! // Modules, you will need to use: _FunApp Bitmaps // The Bitmaps are contained in the downloaded zip ccCalendar ccCalendar-Access-Assigns ccCalendar-Funktionen CURSORS RepeatPushButton // If you want to work with Context Menu: Menu (Context generiert) Menu Methoden I hope that I did not forget something. Good luck! regards Urs <aurorabaccio@gmail.com> schrieb im Newsbeitrag news:225d2341-67c9-46e0-82b1-5285bf0e8334@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 solved everything. > it was enough to move the lines of code. > Now can you tell me what I need to copy to integrate ccalendar into my > application? > I presume : > cccalendar > cccalendar access assig > cccalendar funktionen > cursors > thank you > aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-06 05:54 -0800 |
| Message-ID | <f91f56b9-1dcf-4bb0-bbaa-3ef895124957@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 solved it by moving the lines of code. Now I can color the days I want in red to integrate cc calendar into my application I assume it must copy: cccalendar cccalendar access assign cccalendar funktionen cursors thank you aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-06 23:44 -0800 |
| Message-ID | <320b97b0-9b39-401e-ae69-7db6a05f64a4@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 morning, after creating the library during compilation the following error appears: owerflow or loss of data possible converting DWORD->LONGINT :51422 the error does not occur with the following correction: *LOCAL nRow, nCol, nIndex as int LOCAL nRow, nCol, nIndex as dword this in the method * METHOD MouseButtonDown(oME) CLASS ccCalendar * I assume it's the same for the other methods utilization cavo28 sp4b build2838 he asks me in the methods init/ stopaction class repeatpushbutton 'return self' I ask her if it is correct thank you aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-07 06:04 -0800 |
| Message-ID | <3827f0c4-14c5-4593-af40-78b5bed64652@googlegroups.com> |
| In reply to | #12909 |
Il giorno sabato 7 marzo 2020 08:44:39 UTC+1, aurora...@gmail.com ha scritto: > 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 morning, > after creating the library during compilation the following error appears: > owerflow or loss of data possible converting DWORD->LONGINT :51422 > the error does not occur with the following correction: > > *LOCAL nRow, nCol, nIndex as int > LOCAL nRow, nCol, nIndex as dword > > this in the method > * > METHOD MouseButtonDown(oME) CLASS ccCalendar > * > I assume it's the same for the other methods > > utilization cavo28 sp4b build2838 he asks me in the methods init/ stopaction class repeatpushbutton 'return self' > > I ask her if it is correct > thank you > aurora baccio I have resolved the errors reported. owerflow or loss of data possible converting DWORD->LONGINT :51422 I don't know how to do it in the methods: init lines 32-33-34 actualize lines 8-9-10 drawheader rows 16-17 thank you aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2020-03-07 15:54 +0100 |
| Message-ID | <hchr53Fhi5tU1@mid.individual.net> |
| In reply to | #12909 |
Hi Aurora, LONINTS can be negative, DWORDS not. If in the properties of the Application, tab Compiler the level of warnings is set to ALL, this error 51422 is shown. Normally that does not harm, as long you do not put a negative value to a dword-variable. But it is better programming style to avoid all error messages! Regards Urs PS: To make a lib for the ccCalendar is a good idea! <aurorabaccio@gmail.com> schrieb im Newsbeitrag news:320b97b0-9b39-401e-ae69-7db6a05f64a4@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 morning, > after creating the library during compilation the following error appears: > owerflow or loss of data possible converting DWORD->LONGINT :51422 > the error does not occur with the following correction: > > *LOCAL nRow, nCol, nIndex as int > LOCAL nRow, nCol, nIndex as dword > > this in the method > * > METHOD MouseButtonDown(oME) CLASS ccCalendar > * > I assume it's the same for the other methods > > utilization cavo28 sp4b build2838 he asks me in the methods init/ > stopaction class repeatpushbutton 'return self' > > I ask her if it is correct > thank you > aurora baccio
[toc] | [prev] | [next] | [standalone]
| From | aurorabaccio@gmail.com |
|---|---|
| Date | 2020-03-07 07:37 -0800 |
| Message-ID | <bbc4e3be-9d05-4853-8523-7699e0bd2e34@googlegroups.com> |
| In reply to | #12911 |
Il giorno sabato 7 marzo 2020 15:58:45 UTC+1, Urs Eggmann ha scritto: > Hi Aurora, > > LONINTS can be negative, DWORDS not. If in the properties of the > Application, tab Compiler the level of warnings is set to ALL, this error > 51422 is shown. Normally that does not harm, as long you do not put a > negative value to a dword-variable. But it is better programming style to > avoid all error messages! > > Regards > Urs > PS: To make a lib for the ccCalendar is a good idea! > > > > <aurorabaccio@gmail.com> schrieb im Newsbeitrag > news:320b97b0-9b39-401e-ae69-7db6a05f64a4@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 morning, > > after creating the library during compilation the following error appears: > > owerflow or loss of data possible converting DWORD->LONGINT :51422 > > the error does not occur with the following correction: > > > > *LOCAL nRow, nCol, nIndex as int > > LOCAL nRow, nCol, nIndex as dword > > > > this in the method > > * > > METHOD MouseButtonDown(oME) CLASS ccCalendar > > * > > I assume it's the same for the other methods > > > > utilization cavo28 sp4b build2838 he asks me in the methods init/ > > stopaction class repeatpushbutton 'return self' > > > > I ask her if it is correct > > thank you > > aurora baccio all solved transformed into .dll at least it seems will let you know during practical application for now thanks always aurora baccio
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web