The R Project SVN R

Rev

Rev 27662 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27662 Rev 27686
Line 1444... Line 1444...
1444
    }
1444
    }
1445
}
1445
}
1446
 
1446
 
1447
static void de_stayontop(control c)
1447
static void de_stayontop(control c)
1448
{
1448
{
1449
    if (ischecked(c)) {
-
 
1450
	uncheck(c);
-
 
1451
	BringToTop(de, 0);
1449
    BringToTop(de, 2);
1452
    } else {
-
 
1453
	check(c);
-
 
1454
	BringToTop(de, 1);
-
 
1455
    }
-
 
1456
}
1450
}
1457
 
1451
 
1458
static void de_sbf(control c, int pos)
1452
static void de_sbf(control c, int pos)
1459
{
1453
{
1460
    if (pos < 0) { /* horizontal */
1454
    if (pos < 0) { /* horizontal */
Line 1574... Line 1568...
1574
static void depopupact(control m)
1568
static void depopupact(control m)
1575
{
1569
{
1576
    /* use this to customize the menu */
1570
    /* use this to customize the menu */
1577
    if (ismdi())
1571
    if (ismdi())
1578
    	disable(DePopup[6].m);
1572
    	disable(DePopup[6].m);
-
 
1573
    else {
-
 
1574
    	if (isTopmost(de))
-
 
1575
    	    check(DePopup[6].m);
1579
    else
1576
    	else
1580
    	enable(DePopup[6].m);
1577
    	    uncheck(DePopup[6].m);
-
 
1578
    }
1581
}
1579
}
1582
 
1580
 
1583
 
1581
 
1584
#define MCHECK(a) if (!(a)) {del(c);return NULL;}
1582
#define MCHECK(a) if (!(a)) {del(c);return NULL;}
1585
 
1583