Alignment of Labels with Formlib does not work

Discussion in 'Beta Versions' started by corwin42, Apr 24, 2009.

  1. corwin42

    corwin42 Expert Licensed User

    I get an error "Only labels and textboxes support text alignment" if i try to align a label.

    Greetings
    Markus

    PS: I installed the beta in a new location but it seems that it deleted the supplied libraries in the standard location.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Thanks. Labels are now custom controls (in order to support transparency).
    This will be fixed.
     
  3. corwin42

    corwin42 Expert Licensed User

    In the IDE this works now. But the compiled application complains about "Only labels and textboxes support text alignment" again.

    Is the FormLib.cs file in the 6.76 archive correct?

    Greetings,
    Markus
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes.

    The date should be 4/25/2009.
     
  5. corwin42

    corwin42 Expert Licensed User

    Ok, works now. I installed the 6.76 version again in a fresh directory and now it works. Seems that he found something from the 6.75 version because I installed the 6.76 in the directory of 6.75 before.

    Thanks,
    Markus
     
  6. ayman12

    ayman12 Member Licensed User

    What is 6.76 any way. I ve Basic4PPC 6.5
    is it a new revision of FormLib.dll, or a new Basic4PPC

    I've a problem with the complied veriosn which has FormLib.dll here is the code :

    :sign0085:

    On desktop it works ok, on device gives an error :-
    An error occured on sub ___main_app_start.

    Exception
    Continue?
     
  7. specci48

    specci48 Well-Known Member Licensed User

    Hello ayman,

    Basic4ppc V6.76 is the actual beta-release of the upcoming version 6.8.

    The stable version 6.5 works fine with the current revision of the formlib.dll so your error does not belong to the problem above.
    Did the error occur on the device IDE, or during the start of an "normal" or "optimized" .exe?


    specci48
     
  8. ayman12

    ayman12 Member Licensed User

    in Basic4PPC 6.5, i was working a project, i ve recived this error.
    So i decided to test that simple example.

    I ve tried compile
    Optimized device EXE gives
    Error loading program.
    Exception

    device EXE gives
    An error occured on sub ___main_app_start.

    Exception
    Continue?

    -I've copied a new fresh copy of Formlib to the device.
    - Msgbox (flb.DLLVersion) reads 2.3
    - my device HTC wm6.0 with .Net 2.0
     
  9. ayman12

    ayman12 Member Licensed User

    now I ve copied the source code to the device IDE
    run the program, it says: Error loading program Excption

    N.B : FormLib in the same dir on the device “Smart Card”.
    I ve copied the file to the windows folder without any success.
     
  10. klaus

    klaus Expert Licensed User

    Can you try the attached program, it works fine on my Qtek 9090 WM2003, it's just a copy of your's from post #6 . Optimized compiled.

    Best regards.
     

    Attached Files:

  11. ayman12

    ayman12 Member Licensed User

    Same Error
    :sign0013:
     
  12. ayman12

    ayman12 Member Licensed User

    I ve tested the last code on a Device named symbol with WM5.
    it works fine.

    Now the problem with my HTC touch WM6, in which the program return the last mentioned error
     
  13. klaus

    klaus Expert Licensed User

    I have tried the program with B4PPC Version6.76 Device (AutoScale) compiled.
    Runs OK on my htc Touch HD with WM 6.1 VGA screen.

    With B4PPC version 6.76
    - in the IDE flb.DLLVersion shows 2.5
    - on the devices it shows 2.5

    I have added in the program a scale factor to show it on my Touch HD, runs OK too.

    With B4PPC version 6.5
    - in the IDE flb.DLLVersion shows 2.3
    - on the devices it shows 2.4

    In bothe cases I let the IDE load the FormLib.
    What version shows flb.DLLVersion on your Symbol ?

    Best regards.
     
  14. agraham

    agraham Expert Licensed User

    In Basi4ppc v6.50 Formlib.dll has the version number 2.3 and the source code used for optimised compile says 2.4. I don't know if it was a typo or if there is a minor difference. Looks like Erel fixed it for Basic4ppc v6.76.
     
  15. ayman12

    ayman12 Member Licensed User

    you are right it is 2.3 on desktop, and in Symbol 2.4 wm5

    Wait for Basic4PPC 6.8
     
  16. ayman12

    ayman12 Member Licensed User

    Ver 6.8 And FormLib TextAlignment

    I ve just installed the new ver.6.8
    I am working on an Arabic Project, in which i need the text to be right Alignment, but it is not work for me.

    the code is attached

    The code works well in desktop only
    I am testing the code on HTC-WM6.0 with Arabic support

    What is worng in my code?
     
  17. klaus

    klaus Expert Licensed User

    I have tried your code with Version 6.80 with the test text not the arabic one, no font on the device.
    - Device (AutoScale) compiled, runs OK on my htc Touch HD with WM 6.1 VGA screen.
    - Device EXE compiled, runs OK on my Qtek 9090 WM 2003

    So I don't see what the problem is, is it with the arabic font ?

    Best regards.
     
  18. ayman12

    ayman12 Member Licensed User

    The text is always Left-Alignment. whatever my selection.

    I do not know, may the problem in the font type??

    N.B
    it works well on desktop, the problem on the device.
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Do you get any error message?
    Does it work with a TextBox instead of a Label?
     
  20. derez

    derez Expert Licensed User

    It runs OK on my mio 350 WM5 with Hebrew installed.
     
    Last edited: Jun 11, 2009
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice