[Gambas-user] Column Alignment Property
Lewis Balentine
lewis at ...3412...
Sat Jan 10 15:13:48 CET 2015
My application is sort of a mini-datamanager where the end user
determine which tables/fields they need/want to access. The application
generates the datasources and dataviews at run time. Each table is
displayed in its own tab of a Tabstrip /(small screen shot attached)/.
There are two tables in the DB that hold the parameters for the run-time
tabs.
My OOP competency level is marginal :-[
I am actually amazed that I have made as much progress with this as I have.
*Correct me if I am wrong: *
The event handler would have to be created at design time.
Thus I would need to create a new control class that inherits dataview.
Lewis
On 01/10/2015 07:08 AM, Benoît Minisini wrote:
> The DataView control (normally) raises a Data event for each cell it draws.
>
> In the event handler, you can use the DataView.Data property to modifiy
> the contents of the cell just before it is drawn, exactly like the Data
> event of the TableView control.
>
> Then you can change how the cell value is drawn, the alignment, the
> colors...
>
> Regards,
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KWPVR2-Gui2.png
Type: image/png
Size: 62295 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150110/c44c4130/attachment.png>
More information about the User
mailing list