Page 1 of 1

Progress bar no border

Posted: 22 Oct 2017, 13:51
by ScottMeyer
Bonjour,

Je coince sur un problème avec les progress bar que j'utilise comme trait. Tout vas bien que je l'affiche seule background + border noir
Mais que je veux agrandir la progress bar les bordures change ...

Code: Select all

Gui			, 1:Add   , Progress	, xp+11  yp+3  w100  h40  Background000000  vW_Fin_Ligne 		; ICI OK
GuiControl	, 1:move  , W_Fin_Ligne  , % "w"(A_GuiWidth - 146 - 149) 								; AGRANDISSEMENT OK MAIS LES BORDURES CHANGES ??? 
J'ai tester aussi avec, ca ne fonctionne pas : :(

Code: Select all

GuiControl,  , W_Fin_Ligne , +Background000000
GuiControl,  , W_Fin_Ligne , +0x8
GuiControl,  , W_Fin_Ligne , +0x800000
Si quelqu'un à une idée ?

Merci d'avance

Re: Progress bar no border

Posted: 22 Oct 2017, 15:32
by joedf
Et si tu enleves les bordures?

Code: Select all

Gui, Add, Progress, x5 y5 w100 h2 -Border BackgroundBlack

Re: Progress bar no border  Topic is solved

Posted: 22 Oct 2017, 16:18
by ScottMeyer
Après avoir regarder un film (faire un break), j'ai trouvé la solution :bravo:
Des fois on cherche absolument la solution au problème plutôt que de le contourner ...

J'ai remplacer la progress bar par un champ texte que j'ai colorié avec CtrlColor https://autohotkey.com/boards/viewtopic.php?f=6&t=2197
Ca marche impec :D

Code: Select all

#Include %A_ScriptDir%\Class_CtlColors.ahk

Gui, 1:Add	, Text		, xp+11		yp+3 	w100	h4	 hwndCL1	vW_Fin_Ligne	
GuiControl	, 1:move	, W_Fin_Ligne		, % "w"(A_GuiWidth - 146 - 149) 
Gui, 1:Show	, xCenter y90 	w400 h140		, %ProgrammeName%
Return

guisize:
CtlColors.Change(CL1, "000000", "000000")
Return

Re: Progress bar no border

Posted: 22 Oct 2017, 21:24
by joedf
Cool :+1: ;)