Changeset 3466 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Feb 14, 2008, 9:50:36 AM (18 years ago)
Author:
mansoux
Message:

Second version with Period

Location:
trunk/SophyaPI/PI/Quartz
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/Quartz/PIButtonQuartz.cpp

    r3326 r3466  
    1919:PIButtonGen(par,nom,msg,sx,sy,px,py)
    2020{
     21        wParent = ((PIContainer *)par)->GetWindowPtr();
     22        SetPortWindowPort(wParent);
     23    SetRect(&wdgRect,px,py,px+sx,py+sy);
     24
    2125    CreatePushButtonControl (par->GetWindowPtr(),&wdgRect,title,&contH);
    2226    SetControlTitleWithCFString (contH, title);
  • trunk/SophyaPI/PI/Quartz/PIWindowQuartz.cpp

    r3326 r3466  
    1818    printf ("New Window Quartz %s \n",nom);
    1919    fflush (stdout);
     20/*
     21        wParent = ((PIContainer *)par)->GetWindowPtr();
     22        SetPortWindowPort(wParent);
     23        */
     24       
     25    SetRect(&wdgRect,px,py,px+sx,py+sy);
    2026    windowAttributes = kWindowStandardDocumentAttributes | kWindowCompositingAttribute ;
    2127
  • trunk/SophyaPI/PI/Quartz/QuartzAppTest.cpp

    r3326 r3466  
    5252    mBar->AppendMenu(firstMenu);
    5353   
    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);
    5959
    60         piButton = new PIButton(windowFirst, "Hello",777,20,40,80,80);
     60        piButton = new PIButton(windowFirst, "Hello",777,60,20,80,80);
    6161
    6262    windowFirst->Refresh();
Note: See TracChangeset for help on using the changeset viewer.