Am 26.02.2014 23:12, schrieb Ru Vuott: > 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
Either we just use it in a wrong way, or there is a hidden "feature" ;) For bold, italics etc., this runs flawlessly. My code for bold: Public Sub btnFett_Click() txt.Format.Font.Bold = btnFett.Value txt.SetFocus End Somewhat strange though, when you use one of these for the first time after starting the program, it takes quite some seconds before the cursor returns. Maybe it's loading all fonts in the background or something like that. Anyway I was thinking about setting Mouse.Wait for it. Can you confirm that? Regards 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user