[Gambas-user] Treeview with vertical lines?
Gianluigi
bagonergi at gmail.com
Wed Jul 3 09:55:27 CEST 2019
Sorry I'm still sleeping, I had read GreedView :-(
Regards
Gianluigi
Il giorno mer 3 lug 2019 alle ore 09:44 Gianluigi <bagonergi at gmail.com> ha
scritto:
> Something like that? [0]
> Regards
> Gianluigi
> [0]
> Public Sub Form_Open()
>
> Dim b As New Border("style:none;right-style:solid;color:orange;width:2;")
>
> With GridView1
> .Header = 3
> .Columns.Count = 4
> .Columns.Width = 120
> .Columns[0].Text = "ID"
> .Columns[1].Text = "NAME"
> .Columns[2].Text = "SURNAME"
> .Columns[3].Text = "DATE"
> .Rows.Count = 10
> End With
> For r As Integer = 0 To GridView1.Rows.Max
> For c As Integer = 0 To GridView1.Columns.Max
> GridView1[r, c].Border = b
> Next
> Next
>
> End
>
> '------------------------------------------------------------------------------------------------
>
> Il giorno mer 3 lug 2019 alle ore 09:21 Bruce <adamnt42 at gmail.com> ha
> scritto:
>
>> Looks like its possible in QT5 using stylesheets :
>>
>> QTreeView::branch:has-siblings:!adjoins-item {
>> border-image: url(vline.png) 0;
>> }
>>
>> QTreeView::branch:has-siblings:adjoins-item {
>> border-image: url(branch-more.png) 0;
>> }
>>
>> QTreeView::branch:!has-children:!has-siblings:adjoins-item {
>> border-image: url(branch-end.png) 0;
>> }
>>
>> QTreeView::branch:has-children:!has-siblings:closed,
>> QTreeView::branch:closed:has-children:has-siblings {
>> border-image: none;
>> image: url(branch-closed.png);
>> }
>>
>> QTreeView::branch:open:has-children:!has-siblings,
>> QTreeView::branch:open:has-children:has-siblings {
>> border-image: none;
>> image: url(branch-open.png);
>> }
>>
>> See
>> https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
>> towards the bottom of the page
>> hth
>>
>> b
>>
>>
>> On 3/7/19 4:02 pm, Rolf-Werner Eilert wrote:
>> > Is it possible to add a vertical line to the Treeview so it is easier
>> to
>> > see which branch belongs to which parent?
>> >
>> > Just like the lines in the Gambas editor for blocks...
>> >
>> > Thanks for any hints.
>> >
>> > Rolf
>> >
>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>> ]----
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190703/682c620c/attachment-0001.html>
More information about the User
mailing list