Mida Converter

Please login or register.

Login with username, password and session length
Advanced search  

News:

8 July 2012 - New server and new Forum !

Author Topic: Can the Pro do this better?  (Read 34161 times)

PeterT

  • Newbie
  • *
  • Posts: 2
    • View Profile
Can the Pro do this better?
« on: September 27, 2014, 12:35:37 am »

Hello,

I have Delphi Xe5 and Mida Basic 2.72.
I have some problems, actually the current output of Mida is not usable at all.
Before buying the Pro version I would like to know whether it solves my problems.

1. (Smaller problem) I am trying to convert a quite big project, about 150 dfm files.
The code is split into 12 folders (one folder with 12 subfolders).
So I tried to enter the name of the main folder. But nothing was converted because there is nothing directly in that folder. I cannot see any checkbox saying "recurse all sub-folders". Can Mida Pro or Studio do that?

2. (Big problem) After converting one of the folders I looked at the result of some simple forms containing only standard components.
But even those are not converted well.

Example (just the beginning of the files):

VCL:

inherited ButtonDialog: TButtonDialog
  Left = 664
  Top = 247
  ClientHeight = 254
  ClientWidth = 431
  PixelsPerInch = 96
  TextHeight = 13
  object gr_shape: TLabel

    Left = 8
    Top = 128
    Width = 34
    Height = 13
    Caption = '&Shape:'
  end
  inherited HelpBtn: TButton
    Left = 352
    Top = 224
  end
  object OKBtn: TButton [2]
    Left = 352
    Top = 8
    Width = 75
    Height = 25
    Caption = 'OK'
    Default = True
    ModalResult = 1
    TabOrder = 1
  end

Converted FMX:

inherited ButtonDialog: TButtonDialog
  Left = 664
  Top = 247
  ClientHeight = 254
  ClientWidth = 431
  object gr_shape: TLabel

    Left = 8
    Top = 128
    Width = 34
    Height = 13
    Caption = '&Shape:'
WordWrap = False
AutoSize = True
  end
  inherited HelpBtn: TButton
Position.Point = '(352,224)'
  end
  object OKBtn: TButton [2]
    Left = 352
    Top = 8
    Width = 75
    Height = 25
    Caption = 'OK'
    Default = True
    ModalResult = 1
    TabOrder = 1
  end

You can see that gr_shape was not converted at all even if it is a TLabel (a very standard component), it has still Left and Top instead of Position, and it has Caption instead of Text.
HelpBtn (a TButton) seems to be converted.
But OKBtn (also a TButton) is not converted again.
It seems to me that the problem is with the numbers in square brackets (which indicate tab order, I think). It seems that Mida is confused by them.
Can the Pro version handle the above file?

Thanks
Logged

PeterT

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Can the Pro do this better?
« Reply #1 on: September 27, 2014, 04:28:39 pm »

Because there was no answer, I had to try myself.
So I invested into the pro version just to see that it does not solve any of the two problems.

Please correct me if I am wrong, but it seems to me that:
1. Mida cannot convert in one step a project that consists of several folders
2. Mida cannot process properly components that have a number in square brackets that follows the class name like this:
  object CancelBtn: TButton [3]
    Left = 352
    Top = 40
    Width = 75
    Height = 25
    Cancel = True
    Caption = 'Cancel'
    ModalResult = 2
    TabOrder = 2
  end
It does not understand such class' name and it does not modify the component at all.
The square brackets appear in dfm files of forms that are inherited from other forms and additionally they define new components that did not exist in their ancestor.

Can I hope that some of the problems will be solved soon?
Logged

MauroBotta

  • Titolo
  • Administrator
  • Jr. Member
  • *****
  • Posts: 97
  • Mida Converter - Official Forum
    • View Profile
Re: Can the Pro do this better?
« Reply #2 on: October 01, 2014, 11:25:34 pm »

Hi

>> 1. Mida cannot convert in one step a project that consists of several folders

sorry, Mida can't do it, we are working on this feature, for the next updates of Mida Studio



>> 2. Mida cannot process properly components that have a.....

Mida generally supports inherited forms, but it can happen at times that certain properties (missing in the child form) can not be managed properly.

As our customer active, we ask you to send us a small project with forms that you can not convert, we will update soon Mida to solve the case ( if possible ) .


Do not hesitate to contact us again for any reason, at email support: info@midaconverter.com
Logged