Questions tagged as 'totalcross'

0
answers

How to open a PDF using Totalcross?

In my application made in Totalcross, I make a REST call and it returns a byte[] where I convert to a pdf and save it to a specific directory inside the device. In this flow, everything is ok. My need is .. within the application, I ne...
asked by 09.10.2017 / 19:29
1
answer

How to paint certain lines in a totalcross.ui.Grid

When filling a Totalcross Grid, I have conditional records that should be highlighted relative to the others. I thought about changing the color of the line, or showing the font in bold. Grid by default shows "zebra" lines with white and gray...
asked by 23.08.2017 / 20:46
1
answer

How to call another Activity / screen with Java in Totalcross?

I'm developing an application with java through a tool called Totalcross and I need to call another screen / actividy but I do not know what code to do this. Android would be the equivalent of this: public void ChamaRelatorios(View view){...
asked by 26.10.2018 / 16:22
1
answer

In totalcross, how do I show a popup when I click a button inside an accordion?

I have an application with Totalcross, I'm using the accordion and inside every abba I have a refresh button, how do I do when I click the refresh button to see a popup with an "updated data" message? I tried using "addPenListener" and "onEvent"...
asked by 09.11.2018 / 15:47
1
answer

How to solve the problem with the top bar of a TotalCross project

I have a TotalCross project and when I generate an apk my program gets the space that is below the top bar of my android device and I would like the project to be below this top bar     
asked by 05.12.2018 / 15:17
1
answer

How do I create a simple multiline accordion with Java and Totalcross?

I looked at their example in github but they show how to make a kind of input (a multiedit) for the person to type and not a multiline label.     
asked by 01.11.2018 / 14:20
0
answers

Convert a custom object to JSON in Totalcross

You can serialize a Custom Object to JSON without having to enter field-to-field, such as: JSONObject jsonObject = new JSONObject(); jsonObject.put("id", meuObjeto.id); jsonObject.put("dt_sync", meuObjeto.dtSync); jsonOb...
asked by 05.10.2017 / 20:55
0
answers

Totalcross: Generation of QR Code

Is it possible to generate QR Code using TotalCross code? If so, how should I implement it? Which class / interface should I use? If not, is there any provision for this feature?     
asked by 15.09.2017 / 20:35
0
answers

Whiteboard change font and color of text inserted with drawText

Using the Whiteboard component, I inserted the text into the image. But how do I change the color and font of this text?     
asked by 06.06.2017 / 16:33
0
answers

File contents are not read completely

I'm having a case where the contents of the file are not read entire, just part of it. Here's the example: I performed the test to see if the file was correct on the device by opening it without using the totalcross and the file is complete....
asked by 26.05.2017 / 20:07