MONTHCALENDAR with WIDTH and HEIGHT

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
SALINETAS24
Posts: 461
Joined: Tue Feb 27, 2018 3:06 am
DBs Used: DBF
Has thanked: 41 times
Been thanked: 61 times

Re: MONTHCALENDAR with WIDTH and HEIGHT

Post by SALINETAS24 »

mustafa wrote:
Mon Sep 21, 2020 2:32 pm
Hello friends:
I found a 2009 Sample
https://www.hmgforum.com/viewtopic.php? ... MBER#p7242

Try adding a calendar to my Sample ==> Marcos Antonio Gambeta routine

Code: Select all

                    
*---------------------- Color Calendario ------------------------*
*--------- Rutina cedida  Por Marcos Antonio Gambeta ------------*
#define MCM_FIRST         0x1000
#define MCM_SETCOLOR      (MCM_FIRST + 10)
..... etc.., etc..
Excuse me, I don't speak English ==> Google Traductor
Saludos / Regards
Mustafa
Yeeep amigacho.....!!! ¿como estás..?
Por Petrer City todo bien.
En cuanto al problema que dices, efectivamente es de "WINDOWS" y de sus versiones, y es que Bill Gates a cada versión que saca le da por cambiar controles.
Ya lo comentamos en una ocasión y publicamos un Calendario/Agenda..
Ten recordes..?

http://www.hmgforum.com/viewtopic.php?f ... nda#p56785

Bueno lo dicho, espero que te encuentres bien, y a ver si nos vemos pronto. 8-)
Vamos con una cervecita fresquita....
Como dijo el gran pensador Hommer Simpson..., - En este mundo solo hay 3 tipos de personas, los que saben contar y los que no. :shock:

User avatar
mustafa
Posts: 1032
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Been thanked: 234 times
Contact:

Post by mustafa »

Hola amic !!! , que il·lusió saber de Vós, je .. je ..
la cerveseta crec que tindrà d'esperar,
doncs s'està complicant una mica el "bitxo"
Una forta abraçada i cuidar-vos :lol: :D

PD: No me acordaba de tu magnifico "Calendari_Demo.zip"
http://www.hmgforum.com/viewtopic.php?f ... nda#p56785

Salut
Mustafa

User avatar
kcarmody
Posts: 152
Joined: Tue Oct 07, 2014 11:13 am
Has thanked: 8 times
Been thanked: 45 times
Contact:

Post by kcarmody »

AUGE_OHR wrote:
Sat Sep 19, 2020 11:21 pm
hi
kcarmody wrote:
Sat Sep 19, 2020 10:55 pm
I was looking for that too, but I did not see any support for bold days in HMG. It might not be very hard to add this feature.
this i have in my native Control for Xbase++ using Ot4xb
...
to create Array of BoldDays
...
my Problem is to find out Equivalent to PokeDWord() / PeekWord() in harbour to translate that Code to HMG
I don't know of anything in Harbour that allows you to directly change an address, or even to get an address. The general method instead seems to be to write C code to do this type of thing and then link it to Harbour code using the Extend system that Harbour inherited from Clipper.

However, I have developed an implementation of bold days in the MonthCalendar control.

BoldDays.png
BoldDays.png (43.42 KiB) Viewed 478 times

I'm not yet ready to submit it as a formal change through GitHub, but you can get working code, including demos, from my website at http://kevincarmody.com/other/HMG-Delta.zip. It includes only the changed source code, so you have to copy it to the HMG folder and recompile the main HMG library with BuildLib32.bat in the main HMG folder.

This code also allows you to change all the colors and several other properties, has updated help pages in the DOC folder, and fixes the IsVista() function so that it works on recent releases of Windows 10. The MONTHCAL_3 demo shows bold days, and the MONTHCAL_4 demo shows other features.

I'm not ready to submit these changes because I've discovered that HMG does not handle Unicode supplemental plane characters at all. This is because HMG uses Harbour functions to translate between UTF-8 (which HMG uses) and UTF-16 (which Windows uses), and these Harbour functions do not handle supplemental plane characters at all! It will take some time for me to fix this problem.

User avatar
kcarmody
Posts: 152
Joined: Tue Oct 07, 2014 11:13 am
Has thanked: 8 times
Been thanked: 45 times
Contact:

Post by kcarmody »

bpd2000 wrote:
Sun Sep 20, 2020 9:13 am
I request you to update source at
https://github.com/HMG-Official/HMG
kcarmody wrote:
Wed Oct 07, 2020 11:41 am
I'm not yet ready to submit it as a formal change through GitHub, but you can get working code, including demos, from my website at http://kevincarmody.com/other/HMG-Delta.zip. It includes only the changed source code, so you have to copy it to the HMG folder and recompile the main HMG library with BuildLib32.bat in the main HMG folder.

I'm not ready to submit these changes because I've discovered that HMG does not handle Unicode supplemental plane characters at all. This is because HMG uses Harbour functions to translate between UTF-8 (which HMG uses) and UTF-16 (which Windows uses), and these Harbour functions do not handle supplemental plane characters at all! It will take some time for me to fix this problem.
I've decided to go ahead and submit these changes to GitHub, as the Unicode problem is a big one and not directly related to the other changes.

To submit these changes, I've cloned the HMG repository, pulled the clone to my machine, made the changes, committed them, pushed the changes to the clone, and submitted a pull request. Now whoever is in charge of the HMG repository willl have to merge my changes.

It took me quite a while to figure out all the steps in this process. To anyone else who would like to modify HMG using GitHub, I recommend installing and using SourceTree https://www.sourcetreeapp.com/. SourceTree also has the best tutorial I have seen about the whole GitHub version control process https://www.atlassian.com/git/tutorials ... cket-cloud.

User avatar
bpd2000
Posts: 1188
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 277 times
Been thanked: 158 times

Post by bpd2000 »

Thank you Mr Kevin
BPD
Convert Dream into Reality through HMG

Post Reply