Changeset 3466 in Sophya for trunk/SophyaPI
- Timestamp:
- Feb 14, 2008, 9:50:36 AM (18 years ago)
- Location:
- trunk/SophyaPI/PI/Quartz
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/Quartz/PIButtonQuartz.cpp
r3326 r3466 19 19 :PIButtonGen(par,nom,msg,sx,sy,px,py) 20 20 { 21 wParent = ((PIContainer *)par)->GetWindowPtr(); 22 SetPortWindowPort(wParent); 23 SetRect(&wdgRect,px,py,px+sx,py+sy); 24 21 25 CreatePushButtonControl (par->GetWindowPtr(),&wdgRect,title,&contH); 22 26 SetControlTitleWithCFString (contH, title); -
trunk/SophyaPI/PI/Quartz/PIWindowQuartz.cpp
r3326 r3466 18 18 printf ("New Window Quartz %s \n",nom); 19 19 fflush (stdout); 20 /* 21 wParent = ((PIContainer *)par)->GetWindowPtr(); 22 SetPortWindowPort(wParent); 23 */ 24 25 SetRect(&wdgRect,px,py,px+sx,py+sy); 20 26 windowAttributes = kWindowStandardDocumentAttributes | kWindowCompositingAttribute ; 21 27 -
trunk/SophyaPI/PI/Quartz/QuartzAppTest.cpp
r3326 r3466 52 52 mBar->AppendMenu(firstMenu); 53 53 54 windowFirst = new PIWindow((PIMsgHandler *)piCont, (const char *)"Window First",PIWK_normal, 50,50,600,200);55 wGen = new PIWindowGen((PIMsgHandler *)piCont,(const char *)"Window Gen",PIWK_normal, 50,50,600,20);56 piContQ = new PIContainer (piCont,(const char *)"Container First", 50,50,600,20);57 piWdg = new PIWdg (piCont,(const char *)"Wdg First",50,50, 600,20);58 piLabel = new PILabel(windowFirst,(const char *)"Label",80, 80,150,150);54 windowFirst = new PIWindow((PIMsgHandler *)piCont, (const char *)"Window First",PIWK_normal,600,200,50,50); 55 wGen = new PIWindowGen((PIMsgHandler *)piCont,(const char *)"Window Gen",PIWK_normal,600,200,50,50); 56 piContQ = new PIContainer (piCont,(const char *)"Container First",600,200,50,50); 57 piWdg = new PIWdg (piCont,(const char *)"Wdg First",50,50,100,100); 58 piLabel = new PILabel(windowFirst,(const char *)"Label",80,40,150,50); 59 59 60 piButton = new PIButton(windowFirst, "Hello",777, 20,40,80,80);60 piButton = new PIButton(windowFirst, "Hello",777,60,20,80,80); 61 61 62 62 windowFirst->Refresh();
Note:
See TracChangeset
for help on using the changeset viewer.