Jump to content
jarto

New Alpha update

Recommended Posts

57 minutes ago, jarto said:

Version 2.9.9.90 is now available with SmartUpdate. It adds support for push notifications. I also made a post with details and sample code: https://forums.smartmobilestudio.com/topic/4524-creating-a-mobile-app-for-android-and-ios/?do=findComment&comment=22566

 

 

For those of you who don' know what push notifications are, here is a good explanation:

https://www.urbanairship.com/push-notifications-explained

 

Share this post


Link to post
Share on other sites

After a long break, a new update is available: 2.9.9.97

IDE:
- Added support for search paths
- Updated SynEdit
- Bug fixes
- ACE (TW3AceEditor) added to the Component Palette

RTL:
- New units:
  - System.Collections
  - System.StorageDevice
- Marjor improvements to TW3Dataset, TW3DatasetFilter and WebSQL
- Bug fixes and improvements to TextParser
- Bug fixes to WebFonts support
- Moved TCriticalSection to System.Types
- Improvements to TW3ListBox and TW3CheckListBox:
  - Support for SelectedIndex and automatic change of style
    background for selected items
  - Support for MultiSelect
  - Possibility to override creation of TW3ListBoxItemData
    - Allows use of own classes and properties
    - Allows overriding SetSelected to control what styling
      changes should be made when items are selected

Bug fixes to many demos

Share this post


Link to post
Share on other sites

exciting to see the update.

 

smartcl.pas needs 


    // Implementation of storage-device "Browser:"
    //SmartCL.StorageDevice.Browser,

 

as SmartCL.StorageDevice.Browser, file doesn't exist

Share this post


Link to post
Share on other sites
14 hours ago, IElite said:

Thanks for the TW3ListBox and TW3CheckListBox changes!

How do you override the creation of the TW3ListBoxItemData ?  Specifically how to override the SetSelected?

I'll try to write an example today.

Edit: Actually, while doing it I found some bugs too. I will fix those too.

Share this post


Link to post
Share on other sites

New update available: 2.9.9.102

In this one I've fixed some bugs in TW3ListBox and TW3CheckListBox. @IElite Have a look at the TW3CheckListBox source to see how you can control the creation of TW3ListBoxItemData. I also added TW3ListBox.Selected[Index] so that you can easily toggle selected on/off for items.

Share this post


Link to post
Share on other sites

Excellent to see a new update - downloading as I type. Any chance of making the IDE usable? 

- improve internal browser (incredibly slow and buggy compared to actual browser). Often when your project throws up an error the internal browser will stop working until you close SMS and restart.
- maximise internal browser space by allowing console to appear on the sides rather than only the bottom 
- improve IDE stability. Double click to create events often is broken and once it breaks makes code unstable. Building an app in visual designer is basically not doable - unlike say VCL in delphi.
- improve switch between internal and external projects. Very confusing and the dialog messages are not clear as to their intent
- styling of IDE is broken - anything but "windows" them cause weird characters to appear in popup boxes

That is just off the top of my head. 

When I introduce SMS to new programmers I spend a great deal of time apologising for the bits that don't work :( Makes it difficult for me to "sell" it :)

 

I love this project, massively powerful but it needs polish to entice people to come in and stay.

 

Share this post


Link to post
Share on other sites

Unfortunately the visual designer is buggy. The way to fix it is to replace it completely. @lennarthas been doing some work on this, but it won't make it into our 3.0 release.

Head's up: I pushed another update today. So here's the two latest changelogs:

8.6.2018

RTL:
- Prevent whole page from being dragged down/up in iOS.
- TW3TabControl:New property AllowSwipe, to control if tabs can be changed by swiping sideways.
- Bug fix to TW3CustomControl.SetNativeScrolling

7.6.2018

NodeJS:
- New Ragnarok message framework.
- Lots of changes and improvements to the websocket server.
- Use the latest node.js engine and get rid of the websocket.io framework.
- SQLite3 import api: Nodejs.SQLite3.pas
- Lots of imporvements to TApplication object.
- Lots of improvements and bug fixes to the WebSocket server
- TW3DirectoryWatch moved to SmartNJ.Device.Storage.Watch.pas
- New logfile using write-stream in append mode: SmartNJ.LogFile.pas

RTL:
- New base-classes for a unified DB Framework: System.DB.pas
- All Base64 and UTF8 encoding implemented in Smart Pascal code instead of external js.
- Added OnChildAdded/Removed events to TW3TagContainer.
- New TIniFile-class: System.IniFile.pas
- TW3TagObj.FreeAfter, which can be used to free components after a delay.
- Src property published in TW3IFrame
- TW3ScrollControl to lock scrolling direction to the detected direction.
  - Can be controlled with ScrollController.LockMovementDirection -property.
- Improvements and bug fixes to TW3ListBox
  - Added InvalidateVisible for a quick and full repaint.
  - Added horizontal scrolling if ItemWidth is wider than the listbox.
- Improvements and bug fixes to TW3EditBox and TW3Memo
  - Fix text selection bug in Firefox.
  - Add MaxLength-property.
- New function TString.EncodeTags, which converts tags and dangerous characters to safe html symbols.
- EventManager: Prevent extra mouse events if OnClick was generated from touch events.
- TabControl:
  - Prevent from calling InitializeForm twize, if the tab was a form.
  - Improve tab header resizing.  
- ListBox:
  - Change TagValue to Variant.
- Fixed mouse handling bugs in the ACE editor.
- Bug fixes to font measurement.

Compiler:
- Implemented 'static' linking of Javascript files: {$I 'file.js'}

 

Share this post


Link to post
Share on other sites
Quote

RTL:
- Prevent whole page from being dragged down/up in iOS.

love it,

in which unit is this feature ( "Prevent whole page from being dragged down/up in iOS" ) implemented ?

Share this post


Link to post
Share on other sites
3 minutes ago, lynkfs said:

love it,

in which unit is this feature ( "Prevent whole page from being dragged down/up in iOS" ) implemented ?

SmartCL.EventManager.pas. It takes care of everything automatically. This was already implemented in earlier updates, but Apple caused a regression in iOS 11.3.

Here's some discussion about it: https://bugs.webkit.org/show_bug.cgi?id=182521

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×