lundi 18 mai 2009

Bug wxPython Mac OSX TextCtrl align TE_RIGHT

Voila un gros bug
(en fait non puisque c'est signaler dans la doc)


http://docs.wxwidgets.org/stable/wx_wxtextctrl.html#wxtextctrl


wxTE_LEFT  The text in the control will be left-justified (default).
wxTE_CENTRE The text in the control will be centered
(currently wxMSW and wxGTK2 only).
wxTE_RIGHT The text in the control will be right-justified
(currently wxMSW and wxGTK2 only).


Sous windows on peut aligner correctement les caractères dans le control.
Sous Mac OSX, c'est pas possible. :-(

C'est très curieux car StaticText autorise bien un alignement gauche/centre/droit.

Je ne peux utiliser masked.NumCtrl
car ce controle gère pas la saisie d'un champ vide. (si on ajoute des décimales)
Et puis aussi il renvoie en Float avec une perte de précision...

Je vais m'en inspirer pour faire ma propre saisie de numérique.
La saisie sera classique puis padder avec des espaces en sortie

[1234.5 ] -> [ 1 234.50]

Aucun commentaire:

Enregistrer un commentaire