[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FMain.bFontStyle is Boolean
[Thread Prev] | [Thread Next]
- Subject: Re: FMain.bFontStyle is Boolean
- From: Philippe Valarcher <philippe.valarcher@xxxxxxx>
- Date: Mon, 03 Feb 2025 15:41:21 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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>
[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> |