Tuesday, August 16, 2011

C++ VCL 教學(1)

呢幾日因為想寫過C++ 既GUI Program 仔,而去學VCL,但發覺好難搵到教學,特此寫下以作紀錄:

如果想係Program 入面開多一張新form,步驟如下:
1. Include 要Popup 既新form
#include "TForm2.h"

2. 程式碼如下:

void __fastcall TForm1::btnStudentClick(TObject *Sender)
{
TForm2* Form2 = new TForm2 ( Application );
Form2->Show();
}

void __fastcall TForm1::btnStudentClick(TObject *Sender)
{
TForm2* Form2 = new TForm2 ( Application );
Form2->ShowModal(); //Modal form, 必須關閉此child form 才能再在parent 內操作
}




參考:





Monday, August 15, 2011

openSIS Community Edition

OpenSIS is an opensource web-based student information system that allows schools to take attendance, store grades, create report cards, and many other things for students, teachers and parents.