smalltalk - How do I change the font of a text field in Pharo? -


in pharo, having trouble changing font of specific field. using uitheme openmodal file. below reference code:

openmodal |builder dialog content login|  builder := uitheme builder. content := (builder newlabelgroup: {         'login' -> (login := (builder                                         newtextentryfor: contact                                          gettext: #login                                         settext: #login:                                         help: 'enter login of user')                                     acceptoncr: false;                                     minwidth: 200).         'full name' -> ((builder                         newtextentryfor: contact                          gettext: #fullname                          settext: #fullname:                          help: 'enter full name of user.')                     acceptoncr: false;                     minwidth: 200).         'password' -> ((builder                         newtextentryfor: contact                          gettext: #password                          settext: #password:                          help: 'enter password of user.')                     acceptoncr: false;                     minwidth: 200) }).  dialog := builder newpluggabledialogwindow:'edit contact' for: content. dialog rememberkeyboardfocus: login. builder openmodal: dialog. 

i have looked packages textmorph found here: http://files.pharo.org/doc/2.0/class/textmorph.html#/method/font%253a, cannot find way implement modify font of 1 field of dialog, password (changing password font). how go doing so?

a solution using existing package welcomed.

you can set font on returned widget builder, similar calls acceptoncr or minwidth. example:

    login := (builder     newtextentryfor: 'contact'     gettext: #login     settext: #login:     help: 'enter login of user')     font: standardfonts codefont;     acceptoncr: false;     minwidth: 200;     font: standardfont codefont 

or password entry field, call

beencrypted 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -