Home > Back-end >  Xe began some FMX controls, have a good introduction, instructions?
Xe began some FMX controls, have a good introduction, instructions?

Time:09-22

To xe7 now, but I can search on the net related introduction, the specification is very few,,,,
The company also don't know how to think, FMX corresponding controls, and the VCL properties, methods and mechanism are far away,,,,
Should be the same name as far as possible, with mechanisms to facilitate the original VCL developers directly to fit FMX!

Such as the treeview, FMX node is no longer a treenode, but treeviewitem
Also, the original treenode. Data can also be associated (point to) a corresponding data (if there is a treenode. Stringdata is better)
The treeviewitem it is said that even without the data
More surprisingly, the VCL treeview originally savetofile/stream can be directly put the node hierarchy of stored
FMX simply didn't!
I didn't find, or that everyone needs to write their own a savetofile/stream function??

See xe7 originally generated by the android program can run, a little consideration to learn well,,,,,

CodePudding user response:

Xe with less people, don't have a lot of books, any estimation is also in English,

CodePudding user response:

Yes, it is difficult to find a data, this is the weakness of EDGC company, to promote the use of their products, must be convenient for the user, information is not available, the double if...

CodePudding user response:

refer to the second floor lyhoo163 response:
yes, it is difficult to find a data, this is the weakness of EDGC company, to promote the use of their products, must be convenient for the user, information is not available, the double if...


No data, also does not matter, as long as the products do want to user, let the users feel, what guess is what you get
Learning is zero, it better!
I first use delphi1, fumble along the way very well

FMX, however, is that after the VCL, should as far as possible on the external performance inherit the VCL
In this way, the old users can at least learn cost, new users also can see the old basic will use FMX VCL data can


FMX treeview simply no savetofile, really not understand,,,, also is not a summary of the class, metasomatism in the introduction, cancel

CodePudding user response:

Can only see the official data, Google search

CodePudding user response:

FMX can replace the VCL?

CodePudding user response:

I also in learning xe, find a data is looking for a needle in a haystack, it is too hard

CodePudding user response:

reference 5 floor luxuewei5214 reply:
FMX can replace the VCL?


The mobile platform, can only use FMX
So, in order to later gm, with FMX can only as far as possible

CodePudding user response:

Xe7, below 2 items are the data, but actually is not a type,,,,
Treeviewitem1. Data;
The property Data: TValue read GetData write SetData;
The function TFmxObject. GetData: TValue;
The begin
Result:=Name;
end;

Procedure TFmxObject. SetData (const Value: TValue);
The begin
end;//didn't achieve? !
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Listboxitem1. Data;
The property Data: TObject read FData write FData;//this is with the previous data about



It seems best to know about the design thinking and overall FMX constructed,,,,

CodePudding user response:

FMX EMB is acquired KSDev DXScene reformation, it is design and standard VCL components is not very consistent,

CodePudding user response:

references 9 f DelphiGuy response:
FMX EMB is acquired KSDev DXScene reformation, it is design and standard VCL components is not very consistent,


Oh, that'll be able to understand it,,,,
Should, however, by the VCL and FMX personnel to discuss first, public attribute, the method name change as far as possible consistent
Not consistent, not more, come out, also had better have an explanation

CodePudding user response:

I was a novice, simple program is also cannot write well, you have to go far away

CodePudding user response:

references to the tenth floor sz_haitao response:
Quote: references 9 f DelphiGuy response:

FMX EMB is acquired KSDev DXScene transformation, the design of it is standard and the VCL component is not very consistent,


Oh, that'll be able to understand it,,,,
Should, however, by the VCL and FMX personnel to discuss first, public attribute, the method name change as far as possible consistent
Cannot be consistent, no more, and there is also a best explanation


Two groups of people, who also don't like to change their own design to accommodate others, in our work, we should also encountered this kind of problem, this is the weakness of human nature,
But indeed FMX TTreeView has beyond the VCL TTreeView advantages, such as node Item can be placed arbitrarily control, like a button, the combo box, such as

CodePudding user response:

The
refer to 12 floor DelphiGuy reply:
Quote: reference to the tenth floor sz_haitao response:

Quote: references 9 floor DelphiGuy response:

FMX EMB is acquired KSDev DXScene transformation, the design of it is standard and the VCL component is not very consistent,


Oh, that'll be able to understand it,,,,
Should, however, by the VCL and FMX personnel to discuss first, public attribute, the method name change as far as possible consistent
Cannot be consistent, no more, and there is also a best explanation


Two groups of people, who also don't like to change their own design to accommodate others, in our work, we should also encountered this kind of problem, this is the weakness of human nature,
But indeed FMX TTreeView has beyond the VCL TTreeView advantages, such as node Item can be placed arbitrarily control, like a button, the combo box, such as


Intervention: but, the company should do to take care of the old customers first,,,,
FMX. Treeview really no saveto/loadfrom method?
It can columns show? The window height only 20 lines, but is wide, so the three bar display line 60 treeview node at the same time

CodePudding user response:

I'm sorry, I haven't study of the use of complex, saveto/loadfrom method should be not, however, estimates that this is because the TreeViewItem can add any control, because of the save/load is bad to do,

CodePudding user response:

On the 14th floor DelphiGuy
reference response:
, I'm sorry, but I haven't study of the use of complex, saveto/loadfrom method should be not, however, estimate this is because the TreeViewItem can add any control, because of the save/load is bad to do,


Then I according to the traditional way to use TV, also don't have to,,,
It seems only wrote by yourself? And they were afraid to reinvent the phone (already written) others,,,,

In addition, the one thousand blogs, xe2, listbox or have saveto/loadfrom method, but now I'm xe7 seems to be no

CodePudding user response:

Write a helper to fill a few methods,

CodePudding user response:

reference 16 floor DelphiGuy response:
write a helper to fill a few methods,


Savetofile such functions, can be directly write a generic function external
The VCL treeview, I have written a save/take of general situation,
the condition of selected function
But, for the VCL treeview treenode increase datastring, really have no good way,,,
(because the data need to first create memory object, finally released, direct assignment datastring an arbitrary length of string, need not care about release)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related