english português


pesquisar
login   |   inscrever   |   comprar
     
Downloads
  Documentação
  Envio de bugs
  Changelogs
  Suporte
  Compatibilidade







Changelogs / TotalCross 1.1x


TotalCross 1.15

. IMPORTANT: Fixed on PalmOS release VM a bug that was introduced on the previous version. This bug would corrupt a memory block, that if used it would cause the device to reset and corrupt the installed VM.
. IMPORTANT: BufferedStream.close no longer closes the underlying stream. So, it actually works like a flush method, committing any pending data. You should not use the BufferedStream afterwards.
. IMPORTANT: Improved the activation process on devices:
     » The user will be promped to open a connection if none is available, which will be closed after the activation is performed.
     » More lenient connection handling, users should experience less problems when using slower or more unstable connections.
     » Exceptions should no longer be displayed to the user, only logged on the DebugConsole.
     » More friendly error messages.
. added support for creating iPhone's CYDIA install files.
. the deployer will no longer add files contained in jars in the classpath when deploying an application.
1. fixed BigInteger/BigDecimal computing invalid values under some operations.
2. fixed Grid's border being overwritten when a CellController changed the background color.
3. fixed Vm.getFreeMemory on wince returning an incorrect result; it was returning the memory available for all programs, not the currently running program (which is limited to 32GB).
4. added Tree/FileChooserBox.multipleSelection, which adds a Check to each node so more than one can be selected.
5. fixed ClassNotFoundException being thrown instead of OutOfMemoryError when there was no memory to load a class.
6. fixed MultiEdit.requestFocus not working in geographicalFocus mode.
7. fixed event listeners being dispatched more than one time if the control listen to more than one event.
8. fixed bug in Camera for PalmOS - it would not properly handle the camera library, which sometimes makes the device reset.
9. fixed InputBox's label having its color being changed when the same instance was reused.
10. fixed BinaryContentHandler (totalcross.net.mail) - it wasn't checking the actual number of bytes sent over the connection.
11. fixed bug in RemotePDBFile constructor. It will no longer try to create the remote file using the Conduit's application path. (something that will never work)
12. fixed creation of Photos without setting defaultFileName on PalmOS.
13. fixed problem of some activation error messages was not being shown at screen because they contained \n added by the operating system.
14. Now the /device alias maps to /private/var on iphone.
15. fixed setSip on iphone quitting the application when the currently focused object was not an Edit.
16. added method contains to classes Vector and IntVector, which tests the presence of the given element in the specified vector.
17. added Hashtable.copyInto, to copy one Hashtable into another one.
18. fixed ListBox, ComboBox and Grid not respecting the transparentBackground flag.
19. added support for disabled Settings.circularNavigation for MenuBarDropDown and Grid selection.
20. fixed MultiEdit not scrolling up and down when it gets highlighted with geo focus on.
21. fixed problem that was preventing from getting out using ESC of a non-editable MultiEdit after the control gets highlighted, a down arrow was pressed and then the esc key.
. fixed problem of Dolphin.dll not being included in the SDK.
22. added Convert.zeroPad(int,int), Date.toString(format, dateSeparator), Date.formatDate(dateSeparator), Time.toString(timeSeparator).
23. fixed tcz file list sort. the result of this bug was images in subfolders not being found.
24. fixed Convert.replace getting into an endless loop if the to parameter contains the to parameter.
25. File.exists() no longer displays error message to the user on windows desktop when the removable disk is not available. (no media is inserted)
26. added Button.pressedImage which allows you to define an alternative image that will be shown when an image button is pressed.
27. fixed problem in wince when the fullScreen was set to true and the application appeared initially in non-fullscreen mode. now the app boots in fullscreen.
28. added Grid.qsort(col, order) so you can determine the sort order.
29. fixed Edit changing the Keyboard type when setMode is called and the type was set to KBD_NONE.
30. now Grid checks if the captions, widths and aligns arrays have the same length and throws a RuntimeException if not.
31. fixed Vm.getRemainingBattery not working on win32.
32. added Grid.setColumnWidth to dynamically change a column's width.
33. Now in Edit, if you pass "" (empty string) to setValidChars, no chars will be able to be inputted, and movement, delete and copy/paste operations will also be disabled.
34. fixed Label.vAlign not correctly working when it was CENTER.
35. now ImageControl preferred size is computed with background image if there's not another image assigned.
36. fixed problem when a ComboBox item was selected, then a non-editable MultiEdit was clicked, and then the ComboBox was selected again: after the 3rd selection, the ComboBox stopped working.
37. fixed /t working as if /w was passed too.
38. added Convert.tokenizeString(String, char[]) and Convert.hex2signed(String).
39. added DataStream.readChars(char[], int, int).
40. added Control.isVisibleAndInside. Used by ScrollContainer.
41. fixed ImageControl not respecting transparentBackground property.
42. blocked undesired application exit by pressing and holding the back (ESC) key on the BlackBerry.
43. fixed ConnectionManager.gethostAddress() native implementation - it will correctly return null if the address is not found (instead of an empty string).
44. added FileNotFoundException.getFileName(), which gets the file name from the exception's message.
45. fixed some exception dumps in tc.Deploy if the classpath has a file that does not exist.
46. changed the jpeg error alert to a debug to console.
47. added Hashtable get with default value (which is returned instead of null).
48. added Settings.showMousePosition and dumpPenKeyEvents to show the mouse position when running at Java SE and to dump UIRobot commands to the console. This greatly helps the creation of UIRobot's user interface unit tests (using absolute coordinates to simulate the events).
49. Completely refactored the UIRobot class. UIRobot is no longer a thread, and the events are dispatched as they are entered, which makes debugging easier. Changed the TestSuite class to allow test suites without a user interface, so it can be work inside a program.
50. added Settings.showDebugTimestamp which can be used to disable the timestamp displayed before Vm.debug.
51. on WinCE, ConnectionManager.open() now double checks the connection state before returning.
52. on WinCE, fixed ConnectionManager.close() to properly search for an active modem connection and close it.
53. on BlackBerry, VM internal method that handles stream reading is now synchronized to avoid concurrency issues. Reverted due to performance issues.
54. added field Settings.timeZoneStr, which is the platform's textual representation for the current time zone.
55. improved String.replace(char,char): now it does a search to see if the char occurs in the string, to avoid the creation of another string if not.
56. fixed Camera API support for WinCE. (nothing was changed, for some reason the compiler was ignoring the WinCE code)
57. now ComboBox's window is aligned to the right of the control if it can't be left-aligned (default)
58. now passing null to Grid.setItems is the same of calling removeAllElements.
59. added IntHashtable.get(Object).
60. deployer now also replaces the appTitle with the default value if the appTitle is empty or composed only by spaces. This fixes CabWiz problems when the appTitle was set to "" (empty string) and such.
61. added Convert.max/min/sum that receives an int array. added Convert.spacePad, to fill a string with spaces at left or right.
62. changed the exception that occurs when a duplicated key is found in IntHashtable and the allowDuplicatedKeys is false. now its an IntHashtable.DuplicatedKeyException.
63. now Graphics.drawLine checks if its outside the clip bounds and skip the drawing if it is.
64. when running on Win32, TotalCross will now automatically load the LitebaseLib.tcz if the Litebase is installed and allowed to run. (It will no longer be necessary to move the Litebase files to the TCVM folder to run applications using Litebase)
65. fixed bug in HttpStream, isOk will correctly return false when a HTTP error code is received. And still allow SOAP to retrieve any exception sent by the WebService.
66. fixed Grid not showing the tip when the number of lines was smaller than the number of columns.
67. now ProgressBar can also run vertically. Thanks to Renato Deverlan.
68. added Grid.getColumnWidths.
69. now FontGenerator checks if the font can display a char and will abort otherwise. This can be useful if you're trying to create an unicode font but the underlying TTF doesn't support unicode.
70. added Vector/IntVector.reverse, to invert the order of the elements in the vector.
71. fixed GPS not correctly handling messages that comes in pieces. changed GPS.nextMessage to read a line at a time. added support for decoding GPGGA. improved GpsTest sample so user can select com and baud rates.
72. fixed Settings.userName and Settings.deviceId values on iPhone and Linux.
73. added workaround to fix a bug on the device Symbol/Motorola MC3090 - function used to retrieve the device's serial number would make the VM crash.
74. now the Button's border is painted if transparentBackground is true and you set drawBordersIfTransparentBackground to true.
75. added Vm.turnScreenOn to enable or disable the screen. Works on blackberry, palm, and wince.
76. small fix in ZLib implementation for Java: Always finish the Deflater usage, instead of leaving this task for its finalizer.
77. now in a ComboBox, the ListBox' vertical scrollbar is hidden if its not needed. Added ListBox.hideScrollBarIfNotNeeded.
78. added Label.backgroundType, firstGradientColor and secondGradientColor, which now enables the label to have a horizontal or vertical gradient background.
79. fixed TabbedContainer not respecting transparentBackground (works only on tabs).
80. fixed problem in Palm OS when some totalcross libraries with the same creator id was installed, one (or more) was not being returned. This bug was caused by a bug in a Palm OS function.
81. added Settings.refresh, used to refresh some fields of the Settings class.
82. fixed AIOOBE in ColumnChart when running in penless devices.
83. prevent AIOOBE when the edit has a mask and the user calls setMaxLength
84. fixed WinCE deployment when the application title has punctuation characters in it.
85. fixed blackberry generation on linux.
86. fixed a divide by 0 when filling gradients.
87. fixed FontGenerator computing the space width with a different size of the rest of the chars.
88. on BlackBerry, the flag noLinger on Socket constructor is ignored.
89. fixed screen flickering on MultiListBox selecting an item.
90. added support for enabling error report on windows mobile. This can greatly help us to understand what occured with the vm or litebase when the program halts without further notice. please read a sticky topic at the TotalCross Forum in GENERAL subforum to understand how to proceed.
91. fixed problem in penless devices when there was an edit and a multiedit inside a TabbedContainer and clicking in the ME and then in the Edit was preventing the edit from receive focus.
92. added File.listFiles (recursively) and File.deleteDir (recursively)



TotalCross 1.14

. Grid.setSelectedRow is now deprecated. Change to setSelectedIndex ASAP.
. added Camera support for PalmOS (only photos).
1. added HttpStream.Options.writeTimeOut, to set the write timeout. fixed javadocs on other parts of this class.
2. moved Base64.tempIn/tempOut to inside the static methods to fix concurrency problems.
3. fixed AlignedLabelsContainer not working well if the programmer was not calling setInsets.
4. added AlignedLabelsContainer.getLineY and getLineHeight, which can be used to easily align the controls to each line.
5. fixed AlignedLabelsContainer Label's vertical alignment (was not being aligned with the Edit's text.
6. now we force the use of JDK 1.6 or above when deploying.
7. now you can pass null to the PushButtonGroup captions on ControlBox to hide them.
8. added SOAP.writeTimeout.
. fixed EscapeHtml.unescape convertion table (was almost unusable)
9. now SOAP's error reason is unescaped (E.G. changes "aacute" to "aacute").
10. added EscapeHtml.amp, which can be used to change the & value that is appended to escape. Useful when passing unicode chars to a SOAP.
. now the Dolphin scanner library is added to the SDK. Fixed scanner library not loading OpticonH16 dll.
11. added support for Photo on Dolphin D7600 barcode scanners. Use with the Camera api; requires dolphin.dll installed in device.
12. fixed load of 8-bpp monochrome jpeg files.
13. added FTP.ProgressInformation interface, which can be used to show the transfer information.
14. fixed Conduit registration for HotSync, it is now properly updated when the registry is changed.
15. added support for 32-bpp BMP files.
16. fixed problem when reading data from a tcz where small ( < 4 chars) class names could be allocated in a memory region that could be freed.
17. fixed problem when using Image.saveTo, where it was allocating the maximum number of bytes that could have in the image for the starting record size. However, png files can take far less than that. So, we now limit the size to prevent a PDBFile's record memory overflow.
18. added Vm.TWEAK_DISABLE_GC, which lets you disable the gc during some time.
19. fixed Vm.tweak not being correctly verified when on, at the vm.
20. fixed load of 24bpp BMP files.
21. fixed HtmlContainer's vertical alignment of ordered items.
22. fixed HtmlContainer not opening correctly www.google.com.br.
23. fixed HtmlContainer not correctly splitting textspan and not taking into consideration the ident of OL/UL
24. fixed reading of EAN13 check digit for Dolphin scanners.
25. added Settings.gcCount, gcTimes, chunksCreated, which holds some statistical data about memory usage and gc execution.
26. fixed form submission incorrectly including all submit buttons. now only the pressed one is added to the url.
27. fixed Hashtable intial size when constructing from a String. Was always 1375, now it computes given the number of tokenized elements.
28. added HtmlContainer.resetWith(url), so you can restore a previously filled form based on url values.
29. fixed MenuBarDropDown not correctly updating the screen when it was used alone, without a MenuBar.
30. fixed load of 16-bpp bmp files with odd widths.
. fixed HtmlBrowser samples not working at device.
31. added /geofocus option for totalcross.Launcher.
32. fixed Edit loosing highlight position when a text was changed in penless mode.
33. added ListContainer, which allows the addition of several containers, one below the other, and the selection of one of them.
. fixed Scape sample not running at wince and not ending at desktop.
34. now in CURRENCY and DATE Edit modes, if the user press space at the start of the line, the popup calculator or calendar is opened.
35. added Grid.currencyDecimalPlaces, used to display data using decimal and hundreds separators in the Grid.
36. added finalize support to SSLCTX, freeing resources used by SSLCTX objects if the user forgets to explicitly call the method dispose, which caused unrecoverable memory leaks. Also improved the ssl library memory management to track allocations and report memory leaks.
37. native fonts are now supported on BlackBerry; preceding a font name with '$' means it is a native font (e.g.: "$BBCasual" points to the native BlackBerry font "BBCasual"). On all other platforms, the default TC font is used whenever a native font is specified.
38. now the last time the user has interacted with the device using the keyboard or the pen/touch can be retrieved by calling Settings.lastInteractionTime.
. added some useful URLs to totalcross.io.IOException javadocs which can be used to get insight from platform-specific error codes.
39. fixed Convert.toString(double,decimals) not correctly rounding (14.061,2).
40. fixed BigDecimal.toString not working correctly at device when the number of decimal places of the number was greater than 19. (tested with round(10.348,2), which results in a bigdecimal value of 10.3480000000000007531752999057061970233917236328125)
41. fixed Graphics.drawRoundGradient when the number of steps was 0. This prevents a divide by 0 when a ColumnChart was set with value 0.
42. fixed problem when two buttons in different windows were pressed and then the second one overwrote the first one in ControlEvent.target. In other words, we no longer share the PRESSED event among different controls.
43. fixed Convert.zeroUnpad not if there were no 0s to unpad.
44. added Settings.showMemoryMessagesAtExit, which allows to disable the memory message that is shown when the application exits.
45. Conduit implementation for WinCE will no longer throw an exception if the application is not found at the device, preventing the conduit to display errors when connecting to devices without the target application installed.
46. fixed Conduit synchronize operation to always return any resources used by the Conduit and exit.
47. Fixed MultiEdit auto-scrolling when typing - the last line was not being correctly displayed.
48. added ScrollBar.extraSize, so you can enlarge the ScrollBar of any control (like Grid, HtmlContainer, ListBox, etc).
49. fixed Grid when the column is editable now the windows keyboard is shown when the edit gets focus.
50. fixed the SIP keyboard button not being properly displayed on some WinCE devices.
51. fixed ScrollBar autoscroll not working under the device due to a drag event disarming the timer.
52. changed how Grid.getPreferredWidth works. Before, it was just the screen width / 2. Now, if all widths (passed in constructor) are positive (ie, not a percentage), then it will use the sum as the preferred width.
53. added Window.resize and Container.resize/resizeWidth/resizeHeight, which can be used to shrink the window size to the contents.
. Grid.drawStripes is now deprecated. Just set firstStripeColor and secondStripeColor as you wish.
54. added tc.Deploy /t(est) to just test the classes (check if user is unsing invalid APIs). Images are not converted and no files are written.
55. fixed Grid with both DataSource and CellController and the grid was scroller.
56. fixed font not being applied to a child control of a Container.
57. fixed problem when the display update was disabled (by using Window.enableUpdateScreen=false) and a MessageBox appeared, halting the system. Now the window re-enables the screen update before showing itself.
58. fixed check column width of Grid when the font size was changed.
59. fixed Edit's tooltip position when inside a Window.
60. fixed fullscreen display on win32.
61. fixed problem when a window is unpopped during screen rotation.
62. fixed non-editable MultiEdit not being scrolled using the arrow keys in penless mode.
63. now if a problem occurs while a font is being loaded, the font will return null instead of showing an Alert.
64. fixed ListBox's preferred height when horizontal scroll is enabled and there's only one item.
65. fixed problem when a focused Edit was added to a Window and the Window was unpopped, it was leaving trash on screen.
66. added Edit.clipboardCopy/clipboardCut/clipboardPaste methods. Now if there's no text selected, clipboard copy copies the whole text into the clipboard. Note that CUT only works within selections.
67. added IntHashtable.allowDuplicateKeys to prevent adding two ints of same value.
68. added Control.KEEP and WILL_RESIZE, which can be used to KEEP the coordinate or to inform that a width or height will be resized after the controls have been added.
69. fixed vertical alignment of Radio's circle.
70. now Label.CENTER does not allow the text to be displayed at negative x positions (in other words, if the text is wider than the Label, only the right portion will be lost).
71. added Label.setInsets to support gaps around the label.
72. added Label.vAlign (TOP, BOTTOM, CENTER = default).
73. added Label.split, to split the label to a desired width.
74. added Label.autoSplit, to automatically split the text when the bound changes.
75: fixed bug in totalcross.phone.Dial initialization.
76. fixed Convert.insertLineBreak when the user passed | as line breaks and the text was not considering them as line breaks.
77. fixed transparent background image buttons leaving dirt on screen.
78. added WhiteBoard.thick to draw thick lines.
79. fixed Convert.getBreakPos when the break occurs at a non-space char of the text, it was leaving that letter orphan.
80. fixed problem when the user selects an item in a listbox of a combobox, and the selection was not being shown before the combobox' popup was closed.
81. fixed problem in HtmlContainer in this situation: "this is a very long line of text ofthisbook": the screen limit was reached during "ofthisbook", and the text was not being displayed at all
82. fixed classes GZip and GZipStream to correctly use the gzip algorithm on deflate (compression).
83. fixed vm not correctly loading some debug line number information.
84. fixed tc.Deploy not working when you pass the full path to a .class file on classes without package names.
85. now we have a specific bat file to install the application on WINDOWS MOBILE devices. this fixes installation problems on devices like MotoQ.
86. now the left key on windows mobile devices is assigned to SpecialKeys.MENU, and the right key with SpecialKeys.ESCAPE (specially useful to get out of a MultiEdit).
87. fixed problem of tcz files not being allowed in PKG file for wince and iphone but being allowed for palm. the correct is the opposite (allow on wince/iphone and don't in palm).
88. fixed "Litebase DEMO" dialog locking penless devices. Windows Mobile has a bug that, if the MessageBox looses focus, it blocks the application execution because the user cannot close the alert. Now after an Alert, if the system detects that it lost focus, the alert is destroyed.
89. added SOAP.wasCompressionUsed, which can be used to detect if compression was used during execute.
90. fixed problem of Calculator and the iphone keyboard appearing when setMode(CURRENCY) was applied. Now only the Calculator appears.
91. fixed memory leak in RSACipher and PKCS1Signature when the object is created but not used. (not initialized)
92. added method equals to class totalcross.ui.html.Document.Entry, to compare only the entry value. This fixes an issue with Form.setValue.
93. changed Vector.indexOf(Object, int) to perform the comparison using the Vector's elements equals method, instead of the opposite.
94. fixed modulus (%) operator for double values.
95. fixed RemotePDBFile not allowing more than one file being synchronized.
96. fixed bug in File.read for PalmOS - under certain circumstances, it would not return the bytes read when the EOF was reached.



TotalCross 1.13

1. Now Edit fires a PRESSED event each time the text changes. Note that setText (and co-related methods) do not fire the event.
2. added ComboBox/ListBox.setSelectedItemStartingWith
3. added ComboBoxEditable, which is a ComboBox with an Edit, that selects items while the edit is typed
4. added Convert.isLowerCase and isUpperCase to test if a char is capitalized or not.
5. added ListBox/ComboBox.qsort(caseless), to be able to sort in caseless mode.
6. now Button.BORDER_GRAY_IMAGE computes its size based on values passed in setRect, and no more just in the gap passed in the constructor.
7. now the tcreq.pdb and tcsuc.pdb have the backup attribute set so they can be hotsynced.
8. added MessageBox.showExceptionTitle, so you can customize/localize the title that appears in the Message.showException.
9. now PRESSED event is sent when the action is pressed in the listbox.
10. fixed Settings.appSettins/appSecretKey migration from SuperWaba to TotalCross.
11. added ListBox.visibleLines, used to specify the number of lines that will be used by the PREFERRED height. The default is the number of items added to the ListBox.
12. now xml.AttributeList keys are case insensitive.
13. fixed bug in tc.Deploy when the main program was too big and the Settings properties was not being correctly retrieved.
14. fixed problem of multiple threads accessing HTTPS sites.
15. File.getCardVolume will always wrap volume path between slashes.
16. fixed ScrollBar problem when then number of elements in a Grid was less than the Grid's height, but the ScrollBar, when dragged, was taking a size smaller than the correct (actually, it was being moved up)
» Now ScrollContainer has a protected constructor that allow to disable the use of ScrollBars.
17. fixed problem of the vm not running when it finds an empty dir under folder where the vm is.
18. added the minimize button in win32.
19. fixed problem in the garbage collector that was causing the last big block created was not being released.
20. fixed wince problem of the device going into sleep even if setDeviceAutoOff was called. now we reset the system idle timer at the GC and at screen update.
21. fixed J2TC converter incorrectly handling empty try/catch blocks.
22. fixed NPE when the event that was highlighted was removed from its parent Container.
23. fixed Vm.setAutoOff not working on some WM devices.
24. fixed SIP behaviour on Windows CE devices.
25. fixed Window bug on Windows CE devices, that would mess the default size of any window opened after a TC application was closed.
26. fixed support for bb.pkg. It now works this way: lets assume your program is called MyApp; you create the bb.pkg file, and all files are installed in application's data folder (it ignores the Settings.dataPath, so you must use the default datapath). How it works: a new cod/alx file is created, with the Pkg name suffixed in the program's name (E.G.: MyAppPkg). You must install this file in the device, and also your application's cod file, and it will ask you to reset the device. After the reset, all files in the xxxPkg are automatically extracted to the data folder.
27. fixed native library support for Windows CE (in Windows Mobile it was working fine).
28. completely refactored the HtmlContainer and its subclasses. Some things will work like before, some things will be better, other things will not work at all. See samples.app.HtmlBrowser, click menu and see the samples.
. important: HtmlContainer and ComboBoxEditable does not work well yet in geographical focus. Will be fixed in version 1.14.
29. added AttributeList.caseInsensitive flag and XmlReadable/XmlReader.setCaseInsensitive method to make the list ignore upper/lowercases.
30. added flag to ResizeRecord to prevent multiple calls of endRecord for the same record.
31. added /monospace option to tc.tools.FontGenerator. Must be used in conjunction with monospaced fonts, like Courier New.
32. fixed Window.setDeviceTitle not working.
33. fixed Socket.read behaviour on win32, wince and iphone - it could block the read operation for the whole timeout.
34. fixed native implementation of SSL.read - it no longer requires two consecutive calls of this method to read a single block of information.
35. added support for high-resolution icons on BlackBerry: now it requires a 80x80x8 bmp. it also now accepts the appicon.gif file. improved instructions shown when tc.Deploy is called without parameters
36. added a fix for Treo devices to hide the virtual keyboard.
37. fixed MultiEdit not breaking correctly the words; sometimes, a letter was left behind the scrollbar.
38. fixed non-editable Edit/MultiEdit allowing the text to be selected. actually, the selection was enable but was impossible to copy/paste. Now the text can be scrolled but it is not marked as selected
39. added method Vector.addElements, which receives an array of objects to add at the end of the vector.
40. added the static method Base64.encode(byte[] bytes, int start, int count).
41. added Settings.circularNavigation (defaults to true), which lets you disable the wrap over that occurs when navigating in the first/last itens of controls ListBox, ComboBoxEditable, MenuBar.
» Added new package totalcross.net.mail, which provides classes to receive and send mails using SMTP and POP3.
This first implementation includes SMTP authentication and mailbox management with POP3, but currently only plain text messages under 4000 bytes are completely downloaded from the POP3 server.
Refer to the javadocs and the new mail sample for usage information.
» Fixed support to Dolphin scanner.
42. SIP button was not being shown on WM devices after change #24.
43. fixed File and PDBFile to return 0 if asked to read 0 bytes.



TotalCross 1.12

1. fixed daylightSavings not being updated after a setTime. now Java's daylightSavings has the same meaning of device's (if the device is currently in daylight savings)
2. fixed elapsed time shown in demo vms.
3. fixed event listeners being called twice.
4. fixed bluetooth port recognition on windows devices.
5. added totalcross.io.device.printer.BluetoothPrinter which allows to print to bluetooth printers (tested with Citizen CMP-10BT in Palm OS and Windows Mobile devices). added sample PrinterTest.
6. fixed (Int)Vector growth in javase when the initial size was 0.
7. added Image.getFrameInstance, used to retrieve the image of a single frame.
» added back the tc.samples.app.HtmlBrowser sample.
8. fixed problem when passing absolute paths in the pkg file.
9. fixed NPE with tc.Deploy for blackberry when there are no debug information.
10. In File: fixed implementation of getCardVolume() to work on devices recognized as WindowsMobile. (It would always return null)
» an optimization was made in the bytecode converter. All tcz files must be deployed again.
11. In IntVector: the method setSize now receives only the new size as argument, always keeping previously inserted elements that are still within the vetor size.
12. fixed Grid not scrolling horizontally after the removeAllElements was called.
13. fixed ClassCastException when a FocusListener was added to a control and the control received focus.
14. fixed iphone deleting files referenced in iphone.pkg.
15. File.getCardVolume now first attempts to retrieve the SDCard folder name from the Windows device registry.
16. fixed Registry.getString returning incorrect data on wince.
17. In MediaClip: fixed bug in native windows implementation of record.
18. fixed reset that occured when there was so few memory in the pda that not even the ClassNotFoundException was unable to be loaded. now all exception classes are loaded at the vm's start.
19. fixed problem when the PDBFile.modificationNumber was 0 but the file had records: it was always saving the file back to disk even if there were no changed.
20. fixed problem in PDBFile at JavaSE when the file was found in the classpath but it was being saved in a different location.
21. now Settings.dataPath is null by default (as in superwaba).
22. fixed PDBFile reading incorrect records when there was a appInfoBlock or sortInfoBlock.
23. added Image.smoothScaledFromResolution, to make easy to scale a button based in an initial resolution.
24. added Image.applyColor, which applies a given color in all pixels of an image. Works best when the image is grayscale.
25. added Button.BORDER_GRAY_IMAGE, which is used to create Image buttons based in a grayscale-empty template button.
26. added CENTER as option to text position in the Button constructor that receives a text string and an image. Inverted drawing order: now the image is drawn first, then the text is drawn.
27. Now the MenuBarDropDown allows an item to be selected by typing the numbers 1-9.
28. fixed Image's smooth scale resolution when the image was being expanded: was missing column 0 when expanding a button.
29. added Button.highlightColor, which can be used to highlight the button's text.
30. now the Button 3DG properties are set only after the setBorder is called. This improves speed, because most of the times these variables are not used.
31. fixed button borders when using BUTTON_3D_GRADIENT*: the borders were too big.
32. fixed File.readBytes/writeBytes in BB incorrectly throwing exception if len was 0.
33. added MultiListBox.clearValues, so you can specify which indexes will be selected when the clear method is called.
» Implemented GZipStream and refactored ZLibStream, both classes extends the abstract class CompressedStream.
34. added Graphics.getRGB/setRGB. improved performance when changing the highlighted focus in penless mode.
35. changed SOAP to use GZipStream instead of GZip to improve performance.



TotalCross 1.11

» started Symbian S60 port.
1. added support for 16bpp bmp plain images. RLE compressed 16-bpp is not supported.
2. fixed creation of resource-only tczs (tcz that has no class inside).
3. replaced Settings.minimizeOnClose by closeButtonType, which now can be Settings.NO_BUTTON/CLOSE_BUTTON/MINIMIZE_BUTTON.
4. added a memory profiler: Vm.TWEAK_MEM_PROFILER: prints the total memory in use and the maximum memory between two calls. see documentation for details.
. added totalcross.util.BigDecimal/BigInteger. taken from Gnu Classpath.
5. fixed infinite loop when converting "4.9E-324" in Convert.double.
6. fixed horizontal button colors on ListBox.enableHorizontalScroll.
7. fixed problem when moving a negative long/double to a long/double in the vm. this was resulting in a wrong computation when converting a negative long to string.
8. fixed Convert.toDouble not correctly returning values when they are infinite.
. fixed values of Convert.MAX_DOUBLE_VALUE and MIN_DOUBLE_VALUE.
. Note that besides of what the documentation for Vm.exec says, it IS implemented for BlackBerry.
9. fixed support for image drag in ImageControl when geo focus is on.
10. fixed support for HP cameras not accepting the resolution defined by the user. had to tweak the registry.
11. In ByteArrayStream: readBytes now return -1 on EOF.
12. In TagDereferencer: reverted hashCode implementation to use upper case characters instead of lower case.
13. In XmlRpcValue: tags inserted into the static hash table are now in upper case, because that's what TagDereferencer expects to use.
14. Now the Settings.appSettings/appSettingsBin/appSecretKey are also retrieved from SuperWaba's registry keys (on wince/win32). This allows you to retrieve settings that were stored when running SuperWaba. Note that if they exist, they will be deleted right after being retrieved, and then will be stored back on TotalCross' registry.
15. fixed problem of a finally block was not being called under situations where the exception in the catch block extends Throwable instead of Exception.
16. now a RuntimeException is thrown when the BlackBerry signature files are not at the correct location (etc/tools/bb/bin).
17. fixed messsage "Ignoring import '/TotalCrossSDK/etc/tools/bb/lib/net_rim_api.jar': java.io.IOException: File is not a RIM library.".
18. now the deploy aborts if BlackBerry sign fails.
19. added a check to see if jar.exe is reachable, otherwise a BlackBerry deploy will fail.
20. In PDBFile: Fixed listPDBs behaviour on the following platforms
  a - Bad usage of Vector class could result in a NullPointerException in Java.
  b - Fixed bug in BlackBerry implementation of listPDBs.
  c - Fixed Win32 and WINCE implementation to also search for pdb files in Settings.dataPath, if available.
21. fixed Tree not throwing PRESSED events in penless mode.
22. added support for bb.pkg and iphone.pkg (to add extra files to blackberry and iphone packages). added support for all.pkg (searched if the platform-specific pkg was not found).
23. fixed reset that occured when the AES key had wrong size.
24. added option /w to wait for a keypress if tc.Deploy gets an error during deployment.
25. fixed some problems when deploying for Mac.



TotalCross 1.1

» added iphone2 support. Currently requires manual install of the software.
» added BlackBerry Storm support.
1. File: Method readBytes now returns -1 on EOF on all platforms.
2. Socket: Fixed readBytes timeout behaviour. It no longer waits the whole timeout when the connection is gracefully closed by the remote host.
» TotalCross Companion, Appendix II: Be sure to read about the Throwable/Exception behaviour on BlackBerry!
» fixed NPE when calling setTextAlignment after constructing the MessageBox.
3. fixed TestSuite problem on Blackberry that was letting an exception to stop all test cases instead of just turning the bar to red and continuing.
4. fixed FontGenerator not being able to get the pixels of some glyphs. It was causing a NPE.
5. Vector and IntVector: Vectors created with size 0 would not grow on Java. Fixed to always increase the length in at least 1, regardless of the current length.
» on iPhone, DebugConsole was being overwritten after every program execution. Now it correctly appends to the previous one.
6. fixed drawPie/drawArc. Now it no longer draws the horizontal line when drawing from -x to +x that was a result of calling two times the internal piefill routine, one from -x to 0, and other from 0 to +x.
7. added MessageBox/InputBox/ControlBox.yPosition, so you can easily change the vertical position to TOP or BOTTOM.
8. fixed MessageBox fore/back colors not using the color that the user choosen.
9. removed memory leak on AESCipher.c.
10. fixed AES always using 128 bits. Now it uses 128 if the key has 16 bytes, or 256 if it has 32 bytes.
11. splitted Button.BORDER_3D_GRADIENT into BORDER_3D_VERTICAL_GRADIENT and BORDER_3D_HORIZONTAL_GRADIENT (so, button now supports horizontal gradient). Added an extra 'vertical' parameter to Graphics.drawRoundGradient.
12. added Window.HORIZONTAL_GRADIENT, VERTICAL_GRADIENT, gradientTitleStartColor, gradientTitleEndColor to allow the title look like the ones in Windows.
13. added Window.titleColor to explicitly define the title color.
14. added Label.setHighlighted to draw a highlighted label. see also setHighlightColor.
» fixed Label's preferred height when invert is on: it was not considering the commonVGap.
15. now the window drag shows the contents when moving.
16. fixed PushButtonGroup incorrectly painting the background of null names.
17. now the Radio has a new look on Vista ui style.
18. fixed Radio and Check sizes when font gets too small.
» added Convert. ints2bytes to convert an int array into a byte array.
19. now the tree icon sizes are based on the font metrics, and not on the screen resolution. increased sizes for wince.
20. Now the Chart type can be OR'ed with the following options: IS_3D, GRADIENT_HORIZONTAL, GRADIENT_VERTICAL, GRADIENT_DARK, GRADIENT_INVERT. It no longer has the TYPE_2D and TYPE_3D. Added gradient support for ColumnChart and PieChart.
21. fixed problem in the virtual machine when two methods with almost the same signature were being called one in place of the other.
22. fixed TCSync.dll requiring ActiveSync to be installed. It no longer requires ActiveSync if you're targetting Palm OS only.
23. now tc.Deploy aborts the convertion if the maximum number of constants was reached (4096 or 65535, depending on the type). A very detailed message with suggestions to bypass the limitation is then dumped to the console.
24. now File.listFiles does not try to list the "system volume information" folder.
25. fixed Conduit not being loaded when configuring in HotSync mode when the conduit's path was not the same of the vm.
26. added Conduit.onRegister/onUnregister methods to be called when it is registered/unregistered.
27. Added Conduit.setConduitRect to change the conduit window's bounds when configuring and when syncing. Changed default position to be centered on screen.
28. fixed bug when choosing a Font size that doesn't exist in the font file.
29. added gradient for Graphics' pie, circle and ellipse fill methods, and also fillPolygonGradient.
30. added perspectiveH/V so you can control the perspective distance on PieChart and ColumnChart.
31. now primitive-type fields that are "private static final" are removed from the tcz. These fields are always inlined in the code, so the constant is not used. If you get a "field not found error", remove the "final" keyword from the field.
» fixed MethodNotFoundError when using the Connection Manager.
32. fixed PDBFile on BlackBerry not correctly resetting the read/write offset when the calling setRecordPos for the same record.
33. fixed Convert.toString(String double, int n) breaking the vm.
» added ".bin" as valid suffix to be included in a tcz file. If you want to deploy the pdb files used by your application, you can rename them to .bin, package all .bin files in another tcz file. Then, your application when it starts for the first time, loads the tcz (using totalcross.util.zip.TCZ), extract the bin files, rename them to pdb, and delete the tcz.
34. fixed PDBFile.searchBytes not starting from the current position if it was previously set with setRecordPos.
35. fixed NPE when PDBFile.delete was called and the file was not removed.
36. fixed problem on windows ce install files when the tcz name contained spaces.
37. fixed Windows Mobile Smartphones not being correctly recognized as such.
38. added Grid.useHorizontalScrollBar static variable to replace the left/right buttons by a horizontal scrollbar.
39. now when the scrollbar bar is clicked, in wince and vista modes, it has a "pressed" look.
40. fixed problem when an OutOfMemoryError was thrown recursively because there was no more space to create its object. Also, if there are no space to create the stack trace, this one is dumped to the console.
41. added Grid.liveScrolling so you can control when the setDataSource will have live scrolling or not.
42. fixed LitebaseConduit not copying the files to the PDA if there were no tables in the PDA yet.
43. added Grid.refreshDataSource to refresh the data from the datasource.
44. added a progress bar to LitebaseConduit.
45. added ProgressBar.highlight to highlight the text.
46. fixed LitebaseConduit not being able to copy to the pda a file that already exists.
47. now the Grid's column resize is done in realtime.
48. fixed dragging having a strange gap for devices with pen (pen devices don't need this gap). now the dragThreshold is set only for iPhone.
49. fixed grid's height sometimes showing the last line truncated.
50. added Image.getFadedInstance, which does an interpolation of image pixels with a given color. Fixed Button.setEnabled(false) not fading the Image (if one was set).
51. now the ScrollBar's bar is made pressed on Vista en WinCE styles.
52. fixed when a PressListener was added to a MenuBar but the listener was never called.
» added MultiEdit.getLength
53. now in Windows CE devices, the MessageBox font is bold. Some wince devices have a very poor screen.
54. added totalcross.phone.SMS. Currently supports Blackberry and Windows Mobile.
55. added Window.SIP_ENABLE_NUMERICPAD and SIP_DISABLE_NUMERICPAD to programatically enable or disable the numeric pad on devices that have one. Works for Treo and Windows Mobile 6 devices. Edit automatically enable numeric pad if mode is set to CURRENCY. Note: none of the 2 WM6 devices we have here worked. But it may
56. added MultiEdit/Edit.mapKeys(from,to). With this, when the user types a character presented in "from", it shows the character in "to" at the same position. It can be used to artificially enable a numeric pad on any device. See javadocs for details.
57. fixed StackOverflow when creating iphone icons from a appicon.gif of size greater than 60x60.
» added Palm OS support for the given ConnectionManager methods: close, getHostAddress, getHostName, getLocalHost.
58. added TabbedContainer.setEnabled(on, index) and isEnabled(index) to disable a tab.
59. fixed TabbedContainer.useOnTabTheContainerColor not correctly painting the tabs that were not shown yet with the correct background color.
60. fixed NPE when a grid without checks was drawn.
61. changed Window.flickEnabled to private. Added setFlickEnabled and isFlickEnabled methods, because some variables must be set. see #48.
62. improved message shown when an error at PortConnector at desktop throws an exception.
» Socket: read and write operations no longer blocks until the specified number of bytes is processed. It will attempt to process the given number of bytes, returning the actual number of bytes processed. (which may be 0). These operations may also now throw a SocketTimeoutException if the operation is not completed within the specified timeout. (This is different from returning 0)
63. fixed Zire22 not turning on after it turned off while an TC app was running. Seems that Z22 does not likes the power on notification (when a power on is made, TotalCross sends a KeyEvent.SPECIAL_KEY_PRESS event with the key SpecialKeys.POWER_ON. Had to change to use launchcode notification.
64. fixed Grid.del that was not decreasing the itemsCount, and thus was throwing an exception.
65. now readBytes always returns -1 if the end of stream was reached. This applies for File, PDBFile, Socket, SerialPort, ByteArrayStream, etc.
» DataStream.skip is now deprecated. Use skipBytes instead.
66. fixed NPE that occured sometimes when dragging a window.
67. improved vm performance by caching more than one class bound to the same method name.
68. The line number information takes about 25% of the tcz file, but it is very important to aid debugging. Now a message is shown when tc.Deploy don't see a line number on the files.
69. changed line number information format on tcz files. this leads more than 10% size decrease of the tcz. all programs must be re-deployed
70. now a message is displayed at runtime if there's a tcz version mismatch (and the program is aborted).
71. fixed ByteArrayStream.readFully, it will now grow the internal buffer when necessary.
72. SOAP will now ask the server for encoded content by default (either gzip or zlib). This feature may be disable by setting the SOAP's static field disableEncoding to true.
73. Fixed usage of ByteArrayStream in SOAP.execute.
» net.Dial is moved to phone.Dial.
74. new RandomAccessStream class which defines a stream that can have random access. Currently only File and ByteArrayStream extends from it. Now you can pass a RandomAccessStream to MediaClip to read and write sound. This allows to play a wav file that was stored in a tcz.
» Fixed problem of the Windows CE scanner DLLs not being copied to the release folder of the demo SDK.
75. added Chart.showYValues to paint the y values in the chart.
76. added Convert.toCurrencyString(double, decimalPlaces) to show a number with decimal and thousands separators.
77. In SOAP: zlib encoding is preferred over gzip encoding.
» Fixed Litebase version information. Now Litebase correctly shows the version at Palm OS.
78. added Chart.legendPosition (RIGHT,LEFT,TOP,BOTTOM) and legendPerspective.
79. fixed keycode mapping in Java for the ESC key.
80. fixed ArrayIndexOutOfBoundsException when trying to call Vm.arrayCopy with length 0 at Java.
81. fixed a problem that was preventing exit from a MultiEdit in GeographicalFocus mode.
82. fixed problem in Palm OS when the args parameter of Vm.exec was null.
83. improved Vm.exec for Palm OS: now it checks if the database exists and is an application, and return error -999 if not.
84. fixed problem when calling a Palm OS application using Vm.exec with a command line argument.
85. added totalcross.ui.Ruler, a control that draw a 3d horizontal or vertical line that can be used to divide areas in a container.
86. added totalcross.ui.AlignedLabelsContainer, used to align a set of labels with the other controls.
87. moved totalcross.ui.chart.Insets to totalcross.ui.Insets. Now every container has a public inset that can be changed as desired (used in getClientRect). Added Container.setInsets and getInsets.
88. added CENTER_OF as a new relative positioning constant, used to center a control relative to another control (CENTER is always relative to the screen).
89. added MainWindow.onMinimize and onRestore, used at desktop and blackberry.
90. made the TabbedContainer's arrow bigger if using images in the tabs.
91: On Win32, TotalCross applications will run only in one processor. This should fix our problems with multi-core processors while thread synchronization is not supported.
92. fixed memory leak that occured when a class was referenced in itself, causing the class to be loaded two times.
93. fixed recursive search of files not stopping when the search was hit in a sub folder
94. fixed pdbfile not being searched recursively in the vm path
95: HttpStream: No longer stops reading the header when a bad response code is found, so we can get the error cause.
96. now Settings.romSerialNumber uses the mac address on win32 (last 6 bytes)
97. added Control.RIGHT_OF/BOTTOM_OF to place the control right/bottom aligned to other control. Note that SAME works as LEFT_OF
98. fixed AES algorithm blowing up on device.
99. fixed SIP not being correctly repositioned when a screen rotation occurs.
100. fixed problem in penless mode on MultiListbox: a highlighted item was shown in the combobox instead of the selected item.
101. fixed problem of a wrong field being choosen when fields with the same name appears on the class and in the superclass. This fix allows Proguard obfuscation to be used with TotalCross.
» new class GZip allows inflating and deflating streams with GZip encoding.
» new class ZLibStream may be used to partially read or write compressed data from/to a given stream using ZLib encoding.
102. In HttpStream: getResponse now checks the response's content encoding. You may after read the field contentEncoding.
103. In HttpStream: Added field contentRead, which may be useful when content length is not provided.
104. In HttpStream: Added hash table for request headers.
105. In PDBFile: Improved implementation of method skip for BlackBerry.
106. fixed bug in native implementation of SSLCTX.find(Socket s).
107. fixed support for 24-bit bmp images at desktop.
108. in File: added support for the alias "device/", which evaluates to the platform's base user directory.

1.1a
» fixed problem loading Png/jpeg images from a File.

1.1b
» fixed problem with Convert when deploying a class with more than 20 methods.




Copyright© 2002-2009 SuperWaba35 usuáriosmapa do site