Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


I've developed a Calc Dialog with several controls including the dynamic gridmodel control. The only font property I've been able to change successfully is GridModel.TextColor. Other font properties have no affect. Is there a specific syntax for setting the font size? I've tried several alternative property settings, but nothing seems to work other than the text color.

dlgmodel = oDialogInventory.getModel()
    gridmodel = oDialogInventory.getModel().createInstance("com.sun.star.awt.grid.UnoControlGridModel")
    with gridmodel
        .PositionX = 8
        .PositionY = 33
        .Width = 150
        .Height = 55
        .TextColor = RGB(255,0,0)
      end with

Thank you..........awm119


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.