FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WD9 - Calendar Super Control
WD9 - Calendar Super Control
Débuté par Donald Montaine, 22 juin 2005 18:16 - 3 réponses
Connectez-vous…
Donald Montaine
#1
Posté le 22 juin 2005 - 18:16
When I attempt to use a calendar super control, it returns an error in line 18 of the init procedure, where the datetoday() function is used. Apparently the integer has a value of '00000001' and the function assumes this is 0.
Has any one any suggestions on getting the calendar popup window to work correctly?
Signaler
0
0
Guenter
#2
Posté le 22 juin 2005 - 20:59
When I attempt to use a calendar super control, it returns an error in line 18 of the init procedure, where the datetoday() function is used. Apparently the integer has a value of '00000001' and the function assumes this is 0.
Has any one any suggestions on getting the calendar popup window to work correctly?
Hi Donald,
once upon a time, I made the calendar control work and had been disappointed about its misbehaviours on different screen resolutions. In fact, this control had been a demo for using a graphics background, I think, back from WD5.5 and maybe earlier.
So, I sat down and made my own calendar control. It shows (Austrian) holidays in red and - since it is a simple window - works with any screen resolution. I have a test project somewhere, which is not very clever done, but it's showing the principle. If you are interested ... a mail will return the download address of that test project.
Regards,
Guenter
Signaler
0
0
Donald Montaine
#3
Posté le 23 juin 2005 - 09:25
When I attempt to use a calendar super control, it returns an error in line 18 of the init procedure, where the datetoday() function is used. Apparently the integer has a value of '00000001' and the function assumes this is 0.
Has any one any suggestions on getting the calendar popup window to work correctly?
When I got WinDev 8 I changed the language in my current project from 'English' to 'American'. The calendar control uses the 'Multilingual Message Function' to choose rows to be modified. The Row identifier is set for the 'English' messages but not the 'American' messages. So their is a non-valid title generated for each element.
FOR j=1 TO 7
{"D1_" + j, indControl}..Text = "00"
{"D1_" + j, indControl}..ToolTip = ""
{"D5_" + j, indControl}..Text = "00"
{"D5_" + j, indControl}..ToolTip = ""
{"D6_" + j, indControl}..Text = "00"
{"D6_" + j, indControl}..ToolTip = ""
END
So if the language is set to American the D1 D5 & D6 do not appear between the quotes. My solution has been to set the default language back to 'English'.
Signaler
0
0
Donald Montaine
#4
Posté le 23 juin 2005 - 09:33
When I attempt to use a calendar super control, it returns an error in line 18 of the init procedure, where the datetoday() function is used. Apparently the integer has a value of '00000001' and the function assumes this is 0.
Has any one any suggestions on getting the calendar popup window to work correctly?
Also on lines 91 to 93 the values after the semicolon have not been internationalized yet and have the values hard coded in a way that causes the program to break. After making these changes the popup calendar works fine.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte