Конференция "KOL" » Form positioning
 
  • Jon © (06.01.11 02:56) [0]
    Creating a program with KOL v3.xx causes the position of the form to be incorrect.

    Conditional defines: <none>
    - Form is always positioned at 0,0 (incorrect)

    Conditional defines: UNICODE_CTRLS
    - Form is positioned by Windows (correct)

    Conditional defines: PAS_VERSION;
    - Form is positioned by Windows (correct)

    Using KOL v2.xx makes the form always get positioned correctly by Windows.
    I have been unable to find out what has changed in KOL.pas to cause this.

    Very simple test code:


    program Test;

    uses
     KOL;

    begin
     Applet := NewForm(nil, '');
     Run(Applet);
    end.

  • Vladimir Kladov © (06.01.11 14:36) [1]
    KOL_asm.inc, fixed version in KOL.zip just uploaded.
  • Jon © (06.01.11 15:10) [2]
    Can you please check again, the only difference is:

    KOL_ASM.inc
    Line 3

    // v 3.03a



    // v 3.04+



    No other differences exist at all.
  • Vladimir Kladov © (06.01.11 15:30) [3]
    Sorry. Though change in asm code, it is located in KOL.pas indirectly. Updated KOL.zip again.
  • Jon © (06.01.11 15:48) [4]
    Such a simple fix - well found!

    XCHG     EAX, ECX



    MOV      EAX, ECX



    Thank you very much.
Есть новые Нет новых   [120345   +8][b:0][p:0.001]