[Gambas-user] frm2form 0.06
ron
ronstk at ...239...
Thu Sep 30 10:32:45 CEST 2004
On Wednesday 29 September 2004 22:31, Rob wrote:
> I updated the VB form to Gambas .form perl filter. I fixed some
> bugs and added a few more supported controls and attributes.
>
> http://www.binara.com/gambas-wiki/bin/view/Gambas/Frm2form
>
> Rob
>
I just have a look in the perl code.
Good heavens, cryptic like ????
$type = "ListBox" if $type eq 'FileListBox';
$type = "TreeView" if $type eq 'DirListBox';
$type = "TreeView" if $type eq 'DriveListBox'; # drivelistbox would be a dirlistbox in linux
When I understand it good then you(perl) say in gambas
IF type = "FileListBox" THEN type = "ListBox"
The FileListBox is mear the gb.qt.ListBox.
The DirListBox and DriveListBox are more close to th gb.qt.ComboBox
There is code behind the VB one versions that adds the files,
directories or drives where the property Path/Dir/Drive is pointing.
And of course the drives do not exist in linux or it must
point to the wine drive directory is available.
The vb.ListBox is near the gb.qt.ListBox
The vb.ImageListBox is near the gb.qt.ListView
The vb.ComboBox is near the gb.qt.ComboBox
The vb.ImageComboBox is near the not existing gb.qt.ComboView
The nearest equivalent is the gb.qt.ListBox with reduced height to 1 row
The diff between vb.Image*Box and vb.*Box is the first one can have icons
oposite the second one.
The vb.ListView can be the gb.qt.ColumnView, and the
gb.qt.IconView is the replacement if the vb.ListView
is used in iconview.
For people porting from VB to GB may be a class module like the
TableViewX made by Charlie to emulate The vb.ListView can help
to switch between both and fill both controls with data.
The vb.TreeView is also the gb.qt.TreeView as most close substituut
in name but it is a deriviate of the QT ColumnView so the
gb.qt.ColumnView can be a better option.
In fact the gb.qt.ColumnView is the replacement for the
vb.TreeView and vb.ListView by QT.
For the frx files.
The property values for the controls, if not standard are stored in these files.
i.e. TextBox1.Text = "MyMessage" then "MyMessage" is in the *.frx file
If it is left empty then nothing in the *.frx file.
Also the icons used in the app are stored in this file.
I have already 50% ported to gambas. But has low priority for me.
Last part are some none basic things as declare functions into *.dll
I think the code is more complicated as the form in this case. 8)
More information about the User
mailing list