Date   

Re: Android 7 / ZBar

Tim Downie
 

I got this to work using the zbar librarys from Jordan for some reaason the .so files i have in 3.2a samples lib are a different size to the ones Jordan has
From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of Joseph Knickerbocker <theknicker@...>
Sent: Tuesday, 13 June 2017 8:40:36 AM
To: main@magicu-l.groups.io
Subject: Re: [magicu-l] Android 7 / ZBar
 
If neither work for some reason (pic2shop worked great for me on android 7, but they have to have the pic2shop free apk installed on the device), you can try using the mobile vision api from Google Play services. To get it to work, you will have to follow the Magic sample of replacing a magic control with a native control, and replace the magic control with the view for the barcode scanner.

It is significantly more complicated to implement, but you do not need to rely on an external apk... and is probably more future proof. 


Re: Android 7 / ZBar

Joseph Knickerbocker
 

If neither work for some reason (pic2shop worked great for me on android 7, but they have to have the pic2shop free apk installed on the device), you can try using the mobile vision api from Google Play services. To get it to work, you will have to follow the Magic sample of replacing a magic control with a native control, and replace the magic control with the view for the barcode scanner.

It is significantly more complicated to implement, but you do not need to rely on an external apk... and is probably more future proof. 


Re: Reading .msg files

Rob Westland
 


I think postie can read .msg files
http://infradig.com/postie.html

Rob


Re: Android 7 / ZBar

Tim Downie
 

this is worth a try then - thanks




From: main@magicu-l.groups.io <main@magicu-l.groups.io> on behalf of Jordan Slappendel <jordan@...>
Sent: Tuesday, 13 June 2017 3:52 AM
To: main@magicu-l.groups.io
Subject: Re: [magicu-l] Android 7 / ZBar
 
Hi Tim,

We are running our app with zbar on Android 7 and it works.
The only difference that I can see is I am building using SDK 21.

Regards
Jordan


Kind Regards


Jordan Slappendel


PO Box 1186, Rotorua, New Zealand
Ph Office: +64 7 350 1174 DDI: +64 7 282 2431 Fax: +64 7 350 1185
www.maximsoftware.co.nz
www.maximsoftware.co.nz
Maxim is a cloud-based accounting and business software, tailored to your business needs through bespoke solutions and a full consultancy service.


This e-mail and any attachments may contain confidential and privileged information.  If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies.  Any dissemination or use of this information by a person other than the intended recipient is unauthorised and may be illegal.


On Tue, Jun 13, 2017 at 3:19 PM, Tim Downie <tim_downie@...> wrote:

Hi


So i have a nice android app in magic3.2a  client is happy.

Have added in the Zbar to scan and look up data client is even happier.....


Client = not happy  - to find on Android 7 the apk will not load if it contains the Zbar libraries - have tried pic2shop but this crashes on Android 7 from within the app when trying to invoke it.


Does anyone have an ideas where to look to me Zbar doesnt have permissions or something - built using sdk 23 as per magic docs.


Any help appreciated.






Re: Android 7 / ZBar

Jordan Slappendel
 

Hi Tim,

We are running our app with zbar on Android 7 and it works.
The only difference that I can see is I am building using SDK 21.

Regards
Jordan


Kind Regards


Jordan Slappendel


PO Box 1186, Rotorua, New Zealand
Ph Office: +64 7 350 1174 DDI: +64 7 282 2431 Fax: +64 7 350 1185

This e-mail and any attachments may contain confidential and privileged information.  If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies.  Any dissemination or use of this information by a person other than the intended recipient is unauthorised and may be illegal.


On Tue, Jun 13, 2017 at 3:19 PM, Tim Downie <tim_downie@...> wrote:

Hi


So i have a nice android app in magic3.2a  client is happy.

Have added in the Zbar to scan and look up data client is even happier.....


Client = not happy  - to find on Android 7 the apk will not load if it contains the Zbar libraries - have tried pic2shop but this crashes on Android 7 from within the app when trying to invoke it.


Does anyone have an ideas where to look to me Zbar doesnt have permissions or something - built using sdk 23 as per magic docs.


Any help appreciated.






Android 7 / ZBar

Tim Downie
 

Hi


So i have a nice android app in magic3.2a  client is happy.

Have added in the Zbar to scan and look up data client is even happier.....


Client = not happy  - to find on Android 7 the apk will not load if it contains the Zbar libraries - have tried pic2shop but this crashes on Android 7 from within the app when trying to invoke it.


Does anyone have an ideas where to look to me Zbar doesnt have permissions or something - built using sdk 23 as per magic docs.


Any help appreciated.





Re: User id on bottom line of Magic window.

Wes Hein
 

Had to add System.Drawing to the CRR list to make it work

Wes

--

Annual Reporting Help! 
Annual Report Resources BIAS Annual Report Program (Workshops)

Wes Hein
President - Director Of Product Development
BIAS Software
509.443.3332 | Toll-Free 888.534.2427 | Fax 888.617.4437
327 E Pacific Ave, Spokane WA 99202

 
Notice: The information contained in this communication may be legally privileged, confidential or otherwise protected by law. It is intended only for the use and information of the individuals or entities to whom it is addressed. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us and delete the original message and any copies.


Reading .msg files

Graham White
 

Hi,

 

I have a whole bunch of Outlook .msg files that I need to read and then extract some data from.  Has anyone done this or even if it possible?

 

Thanks in anticipation.

 

Graham White | Software Developer | Graham.White@... |
EC Credit Control | www.eccreditcontrol.com |
This e-mail message and any attachments are confidential to EC Credit Control and subject to legal privilege. If you have received this e-mail in error, please advise the sender immediately and destroy the message and any attachments.  If you are not the intended recipient you are notified that any use, distribution, amendment, copying or any action taken or omitted to be taken in reliance of this message or attachments is prohibited.

 

 

 

 


Re: User id on bottom line of Magic window.

Heidi Schuppenhauer
 

I didn't need to point to any assembly ... Frederick's excellent example just checks if the existing status bar is Magic's.

The one thing I haven't figured out though is how to ADD the new item. Mine overrides the existing label, so then the "Modify" label isn't there.

"Remove" removes an existing label, and that works.
Insert(1) overwrites the current label and pushes everything to the right.

So what does one do to add a new label to the left of the existing one?

 foreach (var ssc in form.Controls) {
                        if (ssc.GetType().ToString().Equals("com.magicsoftware.controls.MgStatusStrip")) {
                             var ss = (F.StatusStrip)ssc;
                             var ssi = new F.ToolStripStatusLabel(user);
                             ssi.BorderSides = F.ToolStripStatusLabelBorderSides.Left | F.ToolStripStatusLabelBorderSides.Top;
                             ss.Items.Insert(1, ssi);
                        }


Heidi.Schuppenhauer


 

On Mon, Jun 12, 2017 at 3:51 PM, Wes Hein <wes@...> wrote:
What .Net assembly do you need to load to get the com.magicsoftware.controls.MgStatusStrip?

Thx

Wes 



Re: User id on bottom line of Magic window.

Wes Hein
 

What .Net assembly do you need to load to get the com.magicsoftware.controls.MgStatusStrip?

Thx

Wes 


Re: Active row with border #chat

Gábor Bor
 

Hm, you are right! :) Thanks a lot Florian! ;)


TFS setup - local

Tom Worthen
 

We have been using Team Foundation Server for a couple of years and now find our self’s needing to upgrade our client machines. I believe the individual on this group that assisted us was Rob Westland but I could be wrong. We have a server running as the repository for this code so this is not a cloud based setup. I did a search of the groups files and message and find where Rob gave a 3 step process to get things setup and even offered to post the files to assist other in getting setup but of course those files he hosted are no longer available and I was unable to find anything in the files section of the group. L This was using Visual Studio 2013.

 

Does anyone have those file they would be willing to share or post to the files section?

 

Thanks,

Tom


Re: XPA 3.2b Android SMS Listener

Brenda Bullorini
 

You are welcome! Glad to help.

If I ever find myself in Buenos Aires, pick a nice restaurant, dinner is on me.  Bring Nicolas
Sure!! Just let us know and we'll be waiting!

:)
Brenda


Re: XPA 3.2b Android SMS Listener

Todd Baremore
 

Brenda,
WOW!  What a great way to start a Monday.  Give me a few days to try it and I'll let you know if I run into any problems.
Thank you very much  -  Muchas Gracias

If I ever find myself in Buenos Aires, pick a nice restaurant, dinner is on me.  Bring Nicolas.

Todd


On 6/11/2017 8:59 PM, Brenda Bullorini wrote:
Hi Todd, just tested in Android Studio and also in Magic.

package com.magicsoftware.magicdev;
 
import com.magicsoftware.core.CoreApplication;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.telephony.SmsMessage;
import android.widget.Toast;
 
public class MySmsListener extends BroadcastReceiver {
    
    final SmsManager sms = SmsManager.getDefault();
 
    public void onReceive(Context context, Intent intent) {
 
//Toast.makeText(context, "I got to onReceive", Toast.LENGTH_SHORT).show();
 
        final Bundle bundle = intent.getExtras();
 
        try {
 
            if (bundle != null) {
 
                final Object[] pdusObj = (Object[]) bundle.get("pdus");
 
                for (int i = 0; i < pdusObj.length; i++) {
 
                    SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);
                    String phoneNumber = currentMessage.getDisplayOriginatingAddress();
                    String senderNum = phoneNumber;
                    String message = currentMessage.getDisplayMessageBody();                    
CoreApplication.getInstance().invokeExternalEvent("SMSRECEIVED:" + message);
 
                } 
            } 
 
        } catch (Exception e) {
            // Error
//Toast.makeText(context, "Exception" + e.getMessage(), Toast.LENGTH_SHORT).show();
CoreApplication.getInstance().invokeExternalEvent("SMSERROR:" + e.getMessage());
        }
    }
}

On the AndroidManifest.xml add the following lines:
<receiver android:name=".MySmsListener">
            <intent-filter>
                <action android:name="android.provider.Telephony.SMS_RECEIVED" />
            </intent-filter>
 </receiver>

Build apk.


Then in Magic:



Thinks to keep in mind:

- I added a Toast in the java class, uncomment if you need to see if the sms gets to the android java class.
- Since android >= API 23 needs a different type way of requestion permissions, I use targetSdkVersion 22 on the app build.gradle. I tested this on my cellphone that has android 6.0 and it's working.
- I think that's all!

Let me know if you need any help!!

Brenda


 


Re: Active row with border #chat

Florian Groothuis
 

Nope. In older versions we used the border, in later versions the BG-color. I think the BG-color makes the border obsolete.

 

Van: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io] Namens Gábor Bor
Verzonden: vrijdag 9 juni 2017 12:59
Aan: main@magicu-l.groups.io
Onderwerp: Re: [magicu-l] Active row with border #chat

 

Dear Florian,

It's works fine, thank you! But i have an other problem with it. I would like to combine that Frame with a background colour, like a light blue background with a dark border on the active row, but the BG color disables the border.

Did you meet with that problem before? We would like to use this option on our most used forms to highlight the current content. :(

Best Regards,
Gábor

Met vriendelijke groet - With kind regards,

Florian Groothuis
Analist/programmeur
+31 (0)6 21927914


meilink.eu

Meilink Beheer Borculo B.V. • Kamerlingh Onnesstraat 1
7271 AZ  Borculo • Nederland • +31 (0)545 253525
KvK 08009803 • Our general terms and conditions apply • Disclaimer



Re: XPA 3.2b Android SMS Listener

Brenda Bullorini
 

Forgot:
I don't know if it works when the app is closed, I'll have to test that out.
I know that everything you put on the java class it will work even with the app closed,
but I don't know if the External Event from Magic will still raise.


Re: XPA 3.2b Android SMS Listener

Brenda Bullorini
 

Hi Todd, just tested in Android Studio and also in Magic.

package com.magicsoftware.magicdev;
 
import com.magicsoftware.core.CoreApplication;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.telephony.SmsMessage;
import android.widget.Toast;
 
public class MySmsListener extends BroadcastReceiver {
    
    final SmsManager sms = SmsManager.getDefault();
 
    public void onReceive(Context context, Intent intent) {
 
//Toast.makeText(context, "I got to onReceive", Toast.LENGTH_SHORT).show();
 
        final Bundle bundle = intent.getExtras();
 
        try {
 
            if (bundle != null) {
 
                final Object[] pdusObj = (Object[]) bundle.get("pdus");
 
                for (int i = 0; i < pdusObj.length; i++) {
 
                    SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);
                    String phoneNumber = currentMessage.getDisplayOriginatingAddress();
                    String senderNum = phoneNumber;
                    String message = currentMessage.getDisplayMessageBody();                    
CoreApplication.getInstance().invokeExternalEvent("SMSRECEIVED:" + message);
 
                } 
            } 
 
        } catch (Exception e) {
            // Error
//Toast.makeText(context, "Exception" + e.getMessage(), Toast.LENGTH_SHORT).show();
CoreApplication.getInstance().invokeExternalEvent("SMSERROR:" + e.getMessage());
        }
    }
}

On the AndroidManifest.xml add the following lines:
<receiver android:name=".MySmsListener">
            <intent-filter>
                <action android:name="android.provider.Telephony.SMS_RECEIVED" />
            </intent-filter>
 </receiver>

Build apk.


Then in Magic:



Thinks to keep in mind:

- I added a Toast in the java class, uncomment if you need to see if the sms gets to the android java class.
- Since android >= API 23 needs a different type way of requestion permissions, I use targetSdkVersion 22 on the app build.gradle. I tested this on my cellphone that has android 6.0 and it's working.
- I think that's all!

Let me know if you need any help!!

Brenda


 


Re: Magic XPA 3.2 with DevExpress

Todd Baremore
 

Herbert,

I wonder if something similar to what you desire could be accomplished with a subform, tab control, image buttons and context menus?  The only problem I can see (so far) is that XPA 3.x does not have a right-click event or any other way to open a menu via a function, so the user must know to right click on the appropriate image. I found a post where Steve Blank mentioned that Shift-F10 will open a context menu in Windows, unfortunately this does not work in XPA.

Perhaps MSE is listening and will consider adding either a RightClick event or a DisplayMenu() function in a future release.

Todd

On 6/11/2017 3:48 AM, Herbert Fehlauer wrote:

Thank you Todd,

 

this samples helps us for a successful start in the past,

but for further developing they are to simple.

The result is on top of my documentation.

 

We need some more details for the next higher steps.

 

 

Herbert

 

Von: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io] Im Auftrag von Todd Baremore
Gesendet: Samstag, 10. Juni 2017 21:58
An: main@magicu-l.groups.io
Betreff: Re: [magicu-l] Magic XPA 3.2 with DevExpress

 

Herbert,

In the "Dot Net 3rd Party Samples"  take a look at "DevExpress Navigation Bar" and "DevExpress Ribbon".  There are examples for both Online and RIA.

Todd

 

On 6/10/2017 12:41 PM, Herbert Fehlauer wrote:

Hello everyone,

 

we are Magic-developer since more than 20 years.

We actually migrate our software from UniPass 1.9 to XPA 3.2 and try to „renovate“ a lot of our templates with Winform controls from Microsoft or devExpress

(Ribbon with Sub-Menus, Items and links, Popup-Menus, Navigation Bars,  etc.)

 

In the append Document you see our wishes/problems and we need some start-help.

 

Question:

Is it possible to get some simple Magic Xpa Sample-Codes for create Ribbons with this controls ?

We try to fill this Ribbons with our hirarchy menu-data from the SQL-database.

 

 

Sincerely

 

Herbert Fehlauer

CEO

 

 

GTSdata GmbH & Co. KG

Zinngießerstr. 12

31789 Hameln

 

 

 

 



Re: Magic XPA 3.2 with DevExpress

harry@...
 

Hi Herbert,

Take a look at the many samples that come with DevExpress. You can open/read/modify them in Visual Studio Community edition which is free!
I see you already looked at the online documentation of DevExpress at: https://documentation.devexpress.com/#WindowsForms/CustomDocument4870
There are some code samples at https://documentation.devexpress.com/#WindowsForms/clsDevExpressXtraNavBarNavBarControltopic
You can almost always find addition (coding) information and tips on /There's also a lot of code to be found on StackOverflow like this: https://stackoverflow.com/questions/18039787/winform-with-devexpress-navbar-control-and-how-to-change-the-target-panel-correc

The easiest way would be to do everything in C# first with VS and then 'reverse engineer' that code back to XPA. But it is very well possible that you will get stuck doing that (as you are now) since XPA doesn't support everything that is possible in VS/C#/.NET. So doing a major GUI upgrade like you intend might very well NOT be 100% possible in XPA. DevExpress is made for C#/VB and to be used in combination with VS, NOT XPA! If this GUI upgrade is really a must for your company then I would suggest not doing it in XPA. You probably already know where you can go for a C# migration ;-)

Best regards,
harry Kleinsmit.


On Sun, Jun 11, 2017 at 12:48 am, Herbert Fehlauer wrote:

Thank you Todd,

 

this samples helps us for a successful start in the past,

but for further developing they are to simple.

The result is on top of my documentation.

 

We need some more details for the next higher steps.

 

 

Herbert

 

Von: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io] Im Auftrag von Todd Baremore
Gesendet: Samstag, 10. Juni 2017 21:58
An: main@magicu-l.groups.io
Betreff: Re: [magicu-l] Magic XPA 3.2 with DevExpress

 

Herbert,

In the "Dot Net 3rd Party Samples"  take a look at "DevExpress Navigation Bar" and "DevExpress Ribbon".  There are examples for both Online and RIA.

Todd

 

On 6/10/2017 12:41 PM, Herbert Fehlauer wrote:

Hello everyone,

 

we are Magic-developer since more than 20 years.

We actually migrate our software from UniPass 1.9 to XPA 3.2 and try to „renovate“ a lot of our templates with Winform controls from Microsoft or devExpress

(Ribbon with Sub-Menus, Items and links, Popup-Menus, Navigation Bars,  etc.)

 

In the append Document you see our wishes/problems and we need some start-help.

 

Question:

Is it possible to get some simple Magic Xpa Sample-Codes for create Ribbons with this controls ?

We try to fill this Ribbons with our hirarchy menu-data from the SQL-database.

 

 

Sincerely

 

Herbert Fehlauer

CEO

 

 

GTSdata GmbH & Co. KG

Zinngießerstr. 12

31789 Hameln

 

 

 

 

 

 


Re: Magic XPA 3.2 with DevExpress

Herbert Fehlauer
 

Thank you Todd,

 

this samples helps us for a successful start in the past,

but for further developing they are to simple.

The result is on top of my documentation.

 

We need some more details for the next higher steps.

 

 

Herbert

 

Von: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io] Im Auftrag von Todd Baremore
Gesendet: Samstag, 10. Juni 2017 21:58
An: main@magicu-l.groups.io
Betreff: Re: [magicu-l] Magic XPA 3.2 with DevExpress

 

Herbert,

In the "Dot Net 3rd Party Samples"  take a look at "DevExpress Navigation Bar" and "DevExpress Ribbon".  There are examples for both Online and RIA.

Todd

 

On 6/10/2017 12:41 PM, Herbert Fehlauer wrote:

Hello everyone,

 

we are Magic-developer since more than 20 years.

We actually migrate our software from UniPass 1.9 to XPA 3.2 and try to „renovate“ a lot of our templates with Winform controls from Microsoft or devExpress

(Ribbon with Sub-Menus, Items and links, Popup-Menus, Navigation Bars,  etc.)

 

In the append Document you see our wishes/problems and we need some start-help.

 

Question:

Is it possible to get some simple Magic Xpa Sample-Codes for create Ribbons with this controls ?

We try to fill this Ribbons with our hirarchy menu-data from the SQL-database.

 

 

Sincerely

 

Herbert Fehlauer

CEO

 

 

GTSdata GmbH & Co. KG

Zinngießerstr. 12

31789 Hameln

 

 

 

 

10941 - 10960 of 195966