[Gambas-user] R: Richtext-Area alignment

Rolf-Werner Eilert eilert-sprachen at ...221...
Thu Feb 27 09:28:45 CET 2014


Yes, that's for the plain display. But when in the editor, there is a 
.Format.Alignment property which should serve as a switch without 
setting the html tags directly in the string.

Am 27.02.2014 08:24, schrieb Wolfgang:
> As I understood that (and as it works here) you define some "starting
> elements" (like Fontsize) before writing the text. The text itself is
> like html and can switch its alignment where ever needed back and forward.
> (E.g.: I use it to show a frequency where the last 3 digits are smaller
> than the other digits for a better read out.)
>
> Wolfgang
>
> Am 27.02.2014 08:15, schrieb Rolf-Werner Eilert:
>> But what is .Format.Alignment good for if not for switching alignment?
>>
>> Am 27.02.2014 08:07, schrieb Fabien Bodard:
>>> Yes ... because richtext have it's how embedded format instructions
>>>
>>> 2014-02-26 23:12 GMT+01:00 Ru Vuott <vuott at ...325...>:
>>>> 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
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> 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
>>>
>>>
>> ------------------------------------------------------------------------------
>>
>> 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