[Gambas-user] FontChooser setting fontname

adamnt42 at ...626... adamnt42 at ...626...
Wed Apr 27 10:12:34 CEST 2016


On Wed, 27 Apr 2016 09:44:55 +0200
Rolf-Werner Eilert <eilert-sprachen at ...221...> wrote:

> Does really nobody know why I cannot set the SelectedFont value as 
> mentioned in the documentation?
> 
> Rolf
> 
> Am 26.04.2016 12:57, schrieb Rolf-Werner Eilert:
> > "Courrier" is French, in my list there is "Courier". I can choose it
> > from the list, but I cannot set the list to this value/index/string.
> >
> > Rolf
> >
> > Am 26.04.2016 12:39, schrieb Fabien Bodard:
> >> Courrier
> >> Le 26 avr. 2016 12:12, "Rolf-Werner Eilert" <eilert-sprachen at ...221...> a
> >> écrit :
> >>
> >>> The docu reads:
> >>>
> >>> FontChooser.SelectedFont (gb.form)
> >>>
> >>> Property SelectedFont As String
> >>>
> >>> Returns or sets the selected font as a string.
> >>>
> >>> When I try to do
> >>>
> >>> Dim MyFont As String
> >>>
> >>> MyFont = "Courier"
> >>> fcMyFont.SelectedFont = MyFont
> >>>
> >>> nothing happens.
> >>>
> >>> Am I expecting too much?
> >>>
> >>> Rolf
> >>>

hmm
' Gambas class file

Public Sub _new()

  FontChooser1.SelectedFont = "Courier"
  Print FontChooser1.SelectedFont
  
End
seems to work ok here?


-- 
B Bruen <adamnt42 at ...3379... (sort of)>




More information about the User mailing list