Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7707 Alex2003 1
2
xmlns:o="urn:schemas-microsoft-com:office:office"
3
xmlns:w="urn:schemas-microsoft-com:office:word"
4
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
5
xmlns="http://www.w3.org/TR/REC-html40">
6
 
7
8
9
10
11
12
13
31
32
33
332
418
448
449
 
450
451
 
452
453
 
454

Back to

457
main

458
 
459

 

462
 
463

Function 8 -

466
define / delete button

467
 
468

Parameters for defining a button:

471
 
472

  * eax = 8

475
- function number

476
 
477

  * ebx =

480
[x axis coordinate] * 65536 + [x axis size]

481
 
482

  * ecx =

485
[y-coordinate] * 65536 + [y-axis size]

486
 
487

  * edx =

490
0xXYnnnnnn, where:

491
 
492

    * nnnnnn

495
= button id

496
 
497

    * senior (31st) bit

500
class=SpellE>edx cleared

501
 
502

    * if the 30th bit of

505
class=SpellE>edx is set - do not draw a button

506
 
507

    * if the 29th bit of

510
class=SpellE>edx is set - do not draw a frame when pressing the button

511
 
512

  * esi =

515
0x00RRGGBB - button color

516
 
517

Parameters for deleting a button:

520
 
521

  * eax = 8

524
- function number

525
 
526

  * edx =

529
0x80nnnnnn, where nnnnnn is the button ID

530
 
531

Return value:

534
 
535

  * function does not return value

538
 
539

Remarks:

542
 
543

  * Button sizes must be greater than 0 and less than 0x8000.

546
 
547

  * For windows with a skin, when defining a window (calling the

550
0th function), two standard buttons are created - closing the window with
551
identifier 1 and minimizing the window with identifier 0xffff.

552
 
553

  * Create two buttons with the same ID

556
 
557

    quite acceptable.

560
 
561

  * The button with the identifier 0xffff, when clicked, is

564
interpreted by the system as the minimization button, the system processes such
565
a pressure independently, without referring to the application. The rest is the
566
usual button.

567
 
568

  * The total number of buttons for all applications is

571
limited to 4095.

572
 
573

 

576
 
577

Constants for registers:

580
 
581

  eax -

584
SF_DEFINE_BUTTON (8)

585
 
586
587
 
588
589
 
590