[Gambas-user] Column Alignment Property
Lewis Balentine
lewis at ...3412...
Fri Jan 9 11:11:17 CET 2015
It appears to me that the Column Alignment Property does not work for
some types.
---- Sample Code: ----
Public Sub ButtonCenter_Click()
Dim I As Integer
For I = 0 To DataView1.View.Columns.Max
DataView1.View.Columns[I].Alignment = Align.Center
Next
Me.Caption = Application.Name & ": Center"
End
---------------------
The results are:
Serial, Boolean, Long, Date: Column Alignment as expected
Integer, Float: always Align.Right
String: always Align.Left
Please see that attached project archive for source code and otherwise
useless SQLite3 Database.
On another note:
I wanted to verify these results with a later verions of GAMBAS. I have
one machien set up with: deb
http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu trusty main. It
reported version 3.6.99 available. I did the normal update but it still
reported 3.6.90.
I then did: $ sudo apt-get purge gambas3
followed by: $ sudo apt-get autoremove
followed by: reboot
followed by: sudo apt-get install gambas3
It still reports version 3.6.90 although as I watched the install I
clearly saw references to 3.6.99 (see below).
... and the results were the same for all three version tests.
Regards,
Lewis Balentine
[System 2 updated] ============
Gambas=3.6.90
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=3944M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4
[System 2 not-updated] ============
Gambas=3.6.90
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=3944M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4
[System 1] ========
Gambas=3.6.2
OperatingSystem=Linux
Kernel=3.13.0-24-generic
Architecture=x86_64
Distribution=Linux Mint 17 Qiana
Desktop=MATE
Theme=QGtk
Language=en_US.UTF-8
Memory=15994M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AlignmentTest-0.0.1.tar.gz
Type: application/gzip
Size: 5667 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150109/1ce7dcc2/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Alignment-Test-Center.jpg
Type: image/jpeg
Size: 26423 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150109/1ce7dcc2/attachment.jpg>
More information about the User
mailing list