XE6 c++builder 设置 font size GetPropInfo SetOrdProp

    TObject* objTemp;
    objTemp = GetObjectProperty(this, "Font");
    if (objTemp)
    {
        PPropInfo ppi;
        ppi = GetPropInfo(objTemp->ClassType(), "Size");
        if (ppi && (*ppi->PropType)->Kind == tkInteger)
            SetOrdProp(objTemp, ppi, 12);
    }

cb6要自己写函数GetObjectProperty,XE6里系统自带在Datasnap.Provider.hpp中定义了

TObject* GetObjectProperty(TObject *AObject, const String APropName)
{
    PPropInfo ppi;
    PTypeInfo pti;
    ppi = GetPropInfo(AObject->ClassType(), APropName);
    if (ppi && (*ppi->PropType)->Kind == tkClass)
        return GetObjectProp(AObject, ppi);
    return NULL;
}

XE6 c++builder 设置 font size GetPropInfo SetOrdProp

时间: 2024-08-18 07:29:17

XE6 c++builder 设置 font size GetPropInfo SetOrdProp的相关文章

GetPropInfo Font Size

设置font size,遍历所有控件,有的控件没有font属性,所以要用GetPropInfo判断 if (GetPropInfo(cmp, "font")) function GetObjectProperty( const AObject   : TObject; const APropName : string ):TObject; var PropInfo:PPropInfo; begin Result  :=  nil; PropInfo:=GetPropInfo(AObje

XE6 c++builder Edit垂直居中

class TMyEdit : public Vcl::Stdctrls::TEdit { virtual void __fastcall CreateParams(TCreateParams& Params); void __fastcall WMSize(TWMSize &Message); virtual void __fastcall SetParent(TWinControl *AParent); public: __fastcall TMyEdit(TComponent* Ow

Generate eps plot with appropriate font size and line width in GNU Octave

Because eps terminal is different from the one for screen display, the font size and line width should all be adjusted as the following example: clist = GenColorList(); h = 1; figure(h); clf(h); # This is mandatory. ## Set the axis position. Sometime

[Android Tips] 9. framework notification layout font size

android 4.4 framework notification layout 相关字体大小 * title: notification_title_text_size: 18dp * content: notification_text_size: 14dp * subtext: notification_subtext_size: 12dp [Android Tips] 9. framework notification layout font size

unity UGUI text font size对性能影响巨大

Font Size对ugui text的性能影响非常大. <Cube Duck Run>在itouch5上测试是很流畅的,但是在iphone5上测试,在game over后显示历史最高分时却总会卡好几秒,导致游戏体验极差.使用屏蔽法查了两天终于找到了问题的原因,原来显示历史最高分的text的font size设成了150.其实本来font size为50就够了,但是由于text的父节点上有个0.3倍的缩放,所以导致text的font size设成150其大小在屏幕上看起来才会适,当初编辑界面的

latex: font size 修改字体大小的几种方式

参考:Adjusting font size with TikZ picture 调整字体大小的几种方式,大小依次增大,具体如下: \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge 用法如下: \node (c) at (1,2) {\large x}; 版权声明:本文为博主原创文章,未经博主允许不得转载.

LaTeX :font size 修改字体大小的几种方式

调整字体大小的几种方式,大小依次增大,具体如下: \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge [Reference] 1.Adjusting font size with TikZ picture 原文地址:https://www.cnblogs.com/shenxiaolin/p/10316436.html

UIAlertController custom font, size, color

本文转载至 http://stackoverflow.com/questions/26460706/uialertcontroller-custom-font-size-color up vote2down votefavorite 3 I am using new UIAlertController for showing alerts. I have this code: // nil titles break alert interface on iOS 8.0, so we'll be

Phone Font Size

This table lists and describes the various font sizes that can be applied. Attribute = FontSize Name Type Description PhoneFontSizeSmall Double 18.667 PhoneFontSizeNormal Double 20 PhoneFontSizeMedium Double 22.667 PhoneFontSizeMediumLarge Double 25.