Alignment of Labels with Formlib does not work

corwin42

Expert
Licensed User
Longtime 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.
 

Attachments

  • BugLabelTest.sbp
    602 bytes · Views: 188

corwin42

Expert
Licensed User
Longtime 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
 

corwin42

Expert
Licensed User
Longtime 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
 

ayman12

Member
Licensed User
I installed the 6.76 version again in a fresh directory and now it works.
Markus

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 :

Sub Globals
'Declare the global variables here.


End Sub

Sub App_Start

Form1.Show

flb.New1("Form1",B4PObject(1))
flb.TextAlignment("TextBox1",flb.alCenter)

flb.SetFontStyle ("TextBox1", True, False, False, False)

TextBox1.Text ="test test test test test"

End Sub

:sign0085:

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

Exception
Continue?
 

specci48

Well-Known Member
Licensed User
Longtime User
Hello ayman,

What is 6.76 any way. I ve Basic4PPC 6.5
is it a new revision of FormLib.dll, or a new Basic4PPC
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
 

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
 

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.
 

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
 

klaus

Expert
Licensed User
Longtime 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.
 

agraham

Expert
Licensed User
Longtime User
- in the IDE flb.DLLVersion shows 2.3
- on the devices it shows 2.4
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.
 

ayman12

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

Wait for Basic4PPC 6.8
 

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?
 

klaus

Expert
Licensed User
Longtime 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.
 

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.
 

derez

Expert
Licensed User
Longtime User
It runs OK on my mio 350 WM5 with Hebrew installed.
 
Last edited:
Top