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 0 -

466
define and draw a window

468
 
469

 

472
 
473

Defines the application window.

476
lang=EN-US style='font-family:"Arial","sans-serif";mso-ansi-language:EN-US'> 
477
class=GramE>Draws a window frame, a working title and area. For Windows
478
with skin, defines standard close buttons and minimizations.

479
 
480

Characteristic:

483
 
484

  *

487
class=GramE>eax = 0-function number

488
 
489

  *

492
class=GramE>ebx = [coordinate on axis X]*65536 + [size on axis X]

493
 
494

  * ECx

497
= [coordinate on axis y]*65536 + [size on axis g]

498
 
499

  *

502
class=GramE>edx = 0xxyrrggbb, where:

503
 
504

    * Y = window style:

507
 
508

      * G=1 only to define the

511
scope window, nothing to draw

512
 
513

 

516
style='mso-spacerun:yes'>    * Y=3 - window with skin

517
 
518

      * Y=4 - window with skin of

521
fixed sizes

522
 
523

      * G=0.2 these styles are

526
obsolete and should not be used more than, they are left for compatibility with
527
older applications

528
 
529

      * other

532
possible values (5 to 15) are reserved, calling a function with such Y is
533
ignored

534
 
535

    * RR, GG, BB = red, green,

538
blue, respectively components of the window workspace color (ignored for style
539
y=1)

540
 
541

    * X = DCBA (bits)

544
 
545

      * A = 1-the window has a

548
title

549
 
550

      * B = 1-coordinates of all

553
graphic primitives are set relative to the client area of the window

554
 
555

      * C = 1-do not paint the

558
workspace when drawing a window

559
 
560

      * D = 0 - normal working

563
area fill, 1-gradient fill

564
 
565

    The following options are for

568
Windows of type I and type II and ignored for styles y=1,3:

569
 
570

  *

573
class=GramE>esi = 0xXYRRGGBB-header color

574
 
575

    * RR, GG, BB define the color

578
itself

579
 
580

    * R=0-normal window and

583
y=1-non-movable window (works for all window styles)

584
 
585

    * X defines a gradient of header:

588
X=0 - there is no gradient, X=8 - normal gradient, for Windows of type II x=4 -
589
negative gradient

590
 
591

    * other

594
values of x and G are reserved

595
 
596

  * EDI = address of header line

599
for styles y=3,4 (see also function 71.1)

600
 
601

Returned value:

604
 
605

  * function

608
does not return a value

609
 
610

Comments:

613
 
614

  * The position and sizes of Windows

617
installed on the first call this function is ignored in subsequent; to change
618
use the position and / or size of an already created window 67th function.

619
 
620

  * For Windows styles y=3,4

623
caption with (A=1) header line set when this function is first called and
624
ignored when subsequent (more precisely, ignored after the call sub-function 2
625
function 12 - end of redraw); to change the title bar of an already created
626
window, use the subfunction 1 of function 71.

627
 
628

  * If you use the appropriate

631
window styles, the position and / or the window size can be changed by the
632
user. The current position and dimensions can be obtained by calling function
633
9.

634
 
635

  * The window should fit on the

638
screen. If coordinates provided and the dimensions do not satisfy this
639
condition, then the corresponding the coordinate (or possibly both) is
640
considered zero, and if it is does not help, then the appropriate size (or
641
maybe both) in the size of the screen. XPOS denote Next
642
class=GramE>,Ypos,xsize,ysize - values passed ebx,
643
ecx. The coordinates relative to the upper left Are
644
given the angle of the window, which is thus defined as (0,0),
645
the coordinates the essence of the lower right corner (xsize,ysize).

646
 
647

  * Window dimensions are

650
understood in terms of the coordinates of the lower right corner. The same
651
applies to all other functions. This means that the actual dimensions are 1
652
pixel larger.

653
 
654

  * View window style g=1:

657
 
658

    * fully

661
defined by the application 

662
 
663

  * View window with skin R=3

666
class=GramE>,4:

667
 
668

    * draw external frame of width

671
1 pixel external colour " of
672
the skin

673
 
674

    * draw intermediate frame of

677
width 3 pixel frame color " of the skin

678
 
679

    * draw internal frame of width

682
1 pixel inner color " of the skin

683
 
684

    * the

687
title is drawn (by the pictures from the skin) in the rectangle (0,0)- (
688
class=SpellE>xsize, _skinh-1)

689
 
690

    * if

693
class=SpellE>ysize>=26, the working area of the window is colored - a
694
rectangle with upper-left corner (5,_skinh) and the bottom right (xsize-5,
695
ysize-5) - the color specified in the edx register
696
(taking into account the gradient)

697
 
698

    * define two standard buttons:

701
close and minimize (see function 8)

702
 
703

    * if

706
A=1 and in EDI (non-zero) a pointer to the title bar, in that it is displayed
707
in the title of the place determined by the skin

708
 
709

    * The value of the _

712
class=SpellE>skinh variable is available as a result of
713
a call sub-functions 4 functions 48

714
 
715

 

718
 
719

Registers for Constant :

722
 
723

 

726
style='font-family:"Arial","sans-serif"'>eax
727
style='font-family:"Arial","sans-serif"'> - SF_CREATE_WINDOW (0)

728
 
729
730
 
731
732
 
733