THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/02/2008 at 01:25, xxxxxxxx wrote:
hey Robert
Thank u for the answer. I tried a lot but didn't make it:( My CreateLayout() already returned a Bool.
Again, here is my working! Code.
Maybe u, or someone else here, find some time to add the BittmapButton Code or can tell me more exactly what to do.
> \> var sun,season; //Globale Variables \> //Here starts the dialog \> \> class MyDialog : GeModalDialog \> { \> public: \> MyDialog(); \> CreateLayout(); \> Init(); \> AskClose(); \> } \> MyDialog::MyDialog() \> { \> super(); \> } \> MyDialog::CreateLayout() // The dialog layout \> { \> SetTitle("MyTitle"); \> //here i shorted a bit \> AddGroupBeginV(6000, BFH_SCALEFIT,3,"group",0); \> { AddGroupBorder( BORDER_GROUP_IN); \> AddGroupBorderSpace (4,4,4,4); \> AddRadioGroupV(6001, BFH_SCALEFIT,1); AddItem(6001,1,"Frühling"); \> AddItem(6001,2,"Sommer"); \> AddItem(6001,3,"Herbst"); \> AddItem(6001,4,"Winter"); \> } \> AddGroupEnd(); \> AddDlgGroup(DR_DLGGROUP_OK | DR_DLGGROUP_CANCEL); \> return TRUE; \> } \> MyDialog::Init() \> { \> //here i shorted a bit \> return TRUE; \> } \> MyDialog::AskClose() \> { \> //here i shorted a bit \> return FALSE; \> } \> //End of dialog \> main(doc,op) \> { \> var d = new(MyDialog); \> d->Open(-1,-1); \> //here i shorted a bit \> if (d->GetResult() == FALSE) println("------------------"); return; \> } \>
I shorted some irrelevant Parts.