[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FMain.bFontStyle is Boolean


Le lundi 03 février 2025 à 14:23 +0000, Bruce Steers a écrit :
> Hang on , looking deeper these seem to be ComboBox's.
> Surely it is correct to set the ComboBox.Index and incorrect to just
> set the .Text?
> 
> CbxFonts.Index = CbxFonts.Find(FMain.sFontName)
> CbxTailles.Index = CbxTailles.Find(FMain.iFontSize)
> CbxStyles.Index = Abs(FMain.bFontStyle)
> 
> Maybe handle for "not found" -1 with Max()
> CbxFonts.Index = Max(0, CbxFonts.Find(FMain.sFontName))
>    
> 
> Respects
> BruceS
> 
Bruce, Thank you for the answer. it just works fine now with the
comments of Fabien and yours
-- 
Philippe Valarcher <philippe.valarcher@xxxxxxx>

References:
[no subject]Philippe Valarcher <philippe.valarcher@xxxxxxx>
Re:Bruce Steers <bsteers4@xxxxxxxxx>
Re:Fabien Bodard <gambas.fr@xxxxxxxxx>
Re:Bruce Steers <bsteers4@xxxxxxxxx>
Re:Bruce Steers <bsteers4@xxxxxxxxx>