|
현재의 fontCap->Style에서 안으로 fsItalic을 포함시킨 곳을 어디다 저장할지 명시해 주셔야겠죠~?
fontCap->Style = fontCap->Style << fsBold;
이렇게 사용해 보세요~
유지상 님이 쓰신 글 :
: fontCap = new TFont();
: fontCap->Name = ini->ReadString("caption.font","Name","");
: fontCap->Size = ini->ReadInteger("caption.font","Size",0);
: fontCap->Color = ini->ReadInteger("caption.font","Color",0);
: if(ini->ReadBool("caption.font","Style.Bold",0))
: fontCap->Style<<fsBold;
: if(ini->ReadBool("caption.font","Style.Italic",0))
: fontCap->Style<<fsItalic;
:
:
: 위 코드에서 fontCap의 Name과 Size와 Color는 원하는 대로 설정이 되는데, Style은 변화가 되지 않는 것 같습니다. 디버그결과 if분의 안으로는 분명히 들어가는데,
: fontCap->Style<<fsBold; 와 fontCap->Style<<fsItalic; 가 실행될때, fontCap->Style에 아무변화가 생기지 않습니다.
: 어떻게 된 것이지요?
:
|