[Gambas-user] R: Richtext-Area alignment

Ru Vuott vuott at ...325...
Wed Feb 26 23:12:28 CET 2014


Hello,

by using ".Format.Alignment" property it "seems" it only works in this way....


Public Sub Form_Open()

   TextEdit1.RichText = "<P align=right>arma virumque cano"

End


Public Sub Button1_Click()

      TextEdit1.Format.Alignment = Align.Center

' but if in "Form_Open()" routine is set  "<P align=LEFT"
' here this ".Format.Alignment = Align.Center" doesn't works !

End


Regards
vuott




--------------------------------------------
Mer 26/2/14, Rolf-Werner Eilert <eilert-sprachen at ...221...> ha scritto:

 Oggetto: [Gambas-user] Richtext-Area alignment
 A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
 Data: Mercoledì 26 febbraio 2014, 12:23
 
 For a Richtext-Area ("txt") I have a
 Toggle-Button for center alignment 
 ("btnZentriert") and try this:
 
 Public Sub btnZentriert_Click()
 
    If btnZentriert.Value = True Then
 txt.Format.Alignment = Align.Center
 
 End
 
 It doesn't have an effect, but I don't see how to do else.
 
 Please enlighten me :-)
 
 Rolf
 
 ------------------------------------------------------------------------------
 Flow-based real-time traffic analytics software. Cisco
 certified tool.
 Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow
 Analyzer
 Customize your own dashboards, set traffic alerts and
 generate reports.
 Network behavioral analysis & security monitoring.
 All-in-one tool.
 http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
 _______________________________________________
 Gambas-user mailing list
 Gambas-user at lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list