Bonjour,
J'ai un petit souci avec la bar du haut qui ne va jusqu'au bout de mon écran quand je change de résolution !
je ne sait pas si vous avez une solution a mon problème
Cordialement , Maxime SIMON
Créateur d'EctaliaOS
Bonjour,
J'ai un petit souci avec la bar du haut qui ne va jusqu'au bout de mon écran quand je change de résolution !
je ne sait pas si vous avez une solution a mon problème
Cordialement , Maxime SIMON
Créateur d'EctaliaOS
Salut,
un petit tuto existe pour ce problème
Regarde du coté de la commandeà la page 81 du manuel
Code : Sélectionner tout - Visualiser dans une fenêtre à part iug/ /reset
PS : Tu peux regarder aussi ici
le souci est que je ne c'est pas ou placer le code
Pour info j'utilise le menu config de CraftyOS
Alors déjà, il faut que ta barre (ta fenêtre en gros) quand elle se crée il faut que TX utilise la variable '%ECRX%' ou la dynamique "EX"
En gros quand tu va le créer ta barre, il aura la longueur horizontale X de l'écran.
Ensuite où placer le code ? Où tu veux ! Mais à condition qu'il soit lu avant qu'il change de résolution, par exemple dés le démarrage de ton OS !
Et dans ton tableau tu fixesEt une fois la résolution changée, il suffit de taper ceci :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 FIX/ IUG_RESET(1) = LeFichierQuiFermeTaBarre.cpc FIX/ IUG_RESET(2) = LeFichierQuiCreeTaBarre.cpc
IUG_RESET(Maximum -> 8)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 LC/ IUG/ /RESET
et il va automatiquement exécuter IUG_RESET(1 et 2)
Tu dis que tu utilises le menu config de craftyOS, il exécute déjà par défaut les commandes LC/ et IUG/ /RESET dés que tu changes de résolution
Donc --> tu n'as plus qu'a définir dans les variables IUG_RESET(1) = Le fichier qui ferme ta barre des taches et IUG_RESET(2) = Le fichier qui affiche ta barre des tâches
Tiens moi au courant !
Cordialement
Comme ça ça peut marcher ?
:AUTOEXEC:
exe/ OS\OS.cpc
FIX/ IUG_RESET(1) = FERM.CPC
FIX/ IUG_RESET(2) = MENU_BAR.CPC
Code dans le fichier CPCDOS\SYSTEME\OS\Index.cpc
Oui bien par exemple!
Mais ton code à un petit problèmeLe problème c'est qu'il n'exécutera jamais ce qui a après exe/ OS\OS.cpc
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 :AUTOEXEC: exe/ OS\OS.cpc FIX/ IUG_RESET(1) = FERM.CPC FIX/ IUG_RESET(2) = MENU_BAR.CPC
Petite question, A ton avis, pourquoi ? (Regarde page 32 du manuel)
Car cette commande permet d'exécuter un fichier de commandes CpcdosC+ uniquement
Oui non mais décent un peut plus bas "Exécuteur Multi-Threads"
Il existe un paramètre permettant d'exécuter un autre fichier tout en laissant en pause le premier et
puis reprendre son exécution à la fin de ce dernier. Il suffit d'utiliser le caractère AND « & »
Oui voilà, donc il faut arranger ton code avec ceci, donc tu n'a plus qu'a ajouter le caractère '&' comme ceci
Grâce à ce '&' il peut reprendre l'exécution de ton fichier index.cpc APRES qu'il ait finit de lire OS\OS.CPC
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 :AUTOEXEC: exe/ & OS\OS.cpc FIX/ IUG_RESET(1) = FERM.CPC FIX/ IUG_RESET(2) = MENU_BAR.CPC
Et tu peux faire ça 127 de fichier en fichier, ce qu suffit largement
J'ai mis le code mais ça ne change rien la barre ne va pas au bout de l’écran
Ps: Je suis débutant je ne comprend pas encore tout dans CpcDOS :/
Alors tu n'as pas un bureau adaptatif
Écrit moi le code ici qui permet de créer ta barre je te l'arrange et je t'expliques mes modifications :-)
Oublier pas de placer ton code entre les balises [CODE] avec le bouton '#' dans l'éditeur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145 :_CREER: Fix/ TAILLEY = 35 fix/ OUVERT = 0 ini/ fenetre( ini;nom = "MENU_BAR" ini;texte = "BARRE MENU D'APPLICATION" ini;type = "3;M0A1R0F0T0HS0O0B0C1" ini;couleur = "000,000,000" ini;px = "0" ini;py = "0" ini;tx = "EX" ini;ty = "%TAILLEY%" creer/ ini/ fenetre) ini/ imagebox( ini;fenetre = "MENU_BAR" ini;nom = "IMG_BAR1" ini;couleur = "000,000,000" ini;image = "%MEDIA%\IUG\Bureau\BAR.BMP" ini;px = "0" ini;py = "0" ini;tx = "EX" ini;ty = "%TAILLEY%" creer/ ini/ imagebox) ini/ imagebox( ini;fenetre = "MENU_BAR" ini;nom = "IMG_MENU" ini;couleur = "000,000,000" ini;image = "%MEDIA%\IUG\Bureau\MENU.BMP" ini;px = "5" ini;py = "2" ini;tx = "30" ini;ty = "30" creer/ ev/ %SYSTEME%\BUREAU\MENU_EV.CPC ini/ imagebox) fix/ PXX = /c %ECRX% - 72 ini/ label( ini;fenetre = "MENU_BAR" ini;nom = "LBL_HEURE*" ini;texte = "Ini.." ini;tx = "0" ini;ty = "0" ini;px = "%PXX%" ini;py = "4" ini;couleurf = "000,128,255" ini;couleurp = "010,010,010" ini;transparent = "0" ini;type = "3" creer/ ini/ label) fix/ PXX = /c %PXX% - 15 ini/ label( ini;fenetre = "MENU_BAR" ini;nom = "LBL_DATE*" ini;texte = "Ini.." ini;tx = "0" ini;ty = "0" ini;px = "%PXX%" ini;py = "17" ini;couleurf = "000,128,255" ini;couleurp = "010,010,010" ini;transparent = "0" ini;type = "3" creer/ ini/ label) FIX/ PXX2 = /c %PXX% - 72 FIX/ pxx21 = /c %PXX2% - 20 ini/ imagebox( ini;fenetre = "MENU_BAR" ini;nom = "IMG_PROC" ini;couleur = "000,000,000" ini;couleurf = "001,001,001" ini;type = "0" ini;image = "%MEDIA%\IUG\PROC.BMP" ini;px = "%PXX21%" ini;py = "2" ini;tx = "15" ini;ty = "15" creer/ ini/ imagebox) ini/ label( ini;fenetre = "MENU_BAR" ini;nom = "LBL_ACT*" ini;texte = "Ini.." ini;tx = "0" ini;ty = "0" ini;px = "%PXX2%" ini;py = "4" ini;couleurf = "000,128,255" ini;couleurp = "010,010,010" ini;transparent = "0" ini;type = "3" creer/ ini/ label) ini/ imagebox( ini;fenetre = "MENU_BAR" ini;nom = "IMG_MEM" ini;couleur = "000,000,000" ini;couleurf = "001,001,001" ini;type = "0" ini;image = "%MEDIA%\IUG\MEM.BMP" ini;px = "%PXX21%" ini;py = "18" ini;tx = "19" ini;ty = "14" creer/ ini/ imagebox) ini/ label( ini;fenetre = "MENU_BAR" ini;nom = "LBL_MEMP*" ini;texte = "Ini.." ini;tx = "0" ini;ty = "0" ini;px = "%PXX2%" ini;py = "17" ini;couleurf = "000,128,255" ini;couleurp = "010,010,010" ini;transparent = "0" ini;type = "3" creer/ ini/ label)
Ah mais il s'agit du code provenant de CraftyOS, donc ce n'est pas un problème de bureau adaptif puisse qu'il est déjà
Petite explication :
La procedure ini/
a la ligne N°8
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 ini/ fenetre( ini;nom = "MENU_BAR" ini;texte = "BARRE MENU D'APPLICATION" ini;type = "3;M0A1R0F0T0HS0O0B0C1" ini;couleur = "000,000,000" ini;px = "0" ini;py = "0" ini;tx = "EX" ini;ty = "%TAILLEY%" creer/ ini/ fenetre)
TX comme Taille X
Code : Sélectionner tout - Visualiser dans une fenêtre à part ini;tx = "EX"
et
EX comme Ecran X
en gros ta fenêtre aura la taille total en pixels de l'écran en X (X -> Horizontal)
Ma question,
Tu utilises
Mais es ce que FERM.CPC et MENU_BAR.CPC existent ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 FIX/ IUG_RESET(1) = FERM.CPC FIX/ IUG_RESET(2) = MENU_BAR.CPC
Oui ils sont tous les 2 placés dans
Code : Sélectionner tout - Visualiser dans une fenêtre à part CPCDOS\SYSTEME\OS\MON_OS\Bureau
Dans ce cas là tu met plutôt:
Car faut toujours partir à partir du dossier CPCDOS\SYSTEME
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 FIX/ IUG_RESET(1) = MON_OS\Bureau\FERM.CPC FIX/ IUG_RESET(2) = MON_OS\Bureau\MENU_BAR.CPC
Est le contenu de FERM.CPC
ceci
Code : Sélectionner tout - Visualiser dans une fenêtre à part fermer/ MON_OS\BUREAU\MENU_BAR.cpc
Non
Page 92 du manuel :
permet de fermer un processus
Code : Sélectionner tout - Visualiser dans une fenêtre à part Fermer/ {processus}permet de fermer une image, un bouton, textebox etc...
Code : Sélectionner tout - Visualiser dans une fenêtre à part Fermer/ /objet {objet}
Donc vu que le nom de ta barre (de ta fenêtre) est MENU_BAR tu met
Et pour
Code : Sélectionner tout - Visualiser dans une fenêtre à part Fermer/ MENU_BARMENU_BAR.CPC est le fichier qui crée ta barre
Code : Sélectionner tout - Visualiser dans une fenêtre à part FIX/ IUG_RESET(2) = MON_OS\Bureau\MENU_BAR.CPC
Re
J'ai essayer est ça ne marche toujours pas mais a l’écran de démarrage il me dit que la variable PXX est introuvable
Est aussi comment on mes un signature sur ce forum car je suis un peut nouveau ici
Envoie moi en message PV ton dossier OS en .ZIP je te corrige ça
Pour les signatures c'est ici
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager