Search found 1565 matches

by BruceSteers
Monday 24th October 2022 12:52pm
Forum: General
Topic: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling
Replies: 11
Views: 1729

Re: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling

I got the form to load in a project but all i could make was a bit of a mess ;) the right hand panel does not fit the buttons. adding rooms was , er , peculiar to say the least. i got a misplaced tableview at the top. and if you zoom in on the attached picture you can see where the mouse is there is...
by BruceSteers
Monday 24th October 2022 12:10pm
Forum: General
Topic: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling
Replies: 11
Views: 1729

Re: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling

Hi I know the code is bad. It is my first prototype to display AI results. But yes, i appreciate the corrections I did not know those details. Indeed, the "New TableView" was causing me problems which I circumvented with Variants. But now is better. I am using 3.17.5 version, and I did te...
by BruceSteers
Monday 24th October 2022 10:17am
Forum: General
Topic: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling
Replies: 11
Views: 1729

Re: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling

Maybe try refreshing the tables on scrolling?
Public Sub Dyntable_root_Scroll()

  Last.Refresh

End

by BruceSteers
Monday 24th October 2022 10:02am
Forum: General
Topic: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling
Replies: 11
Views: 1729

Re: Dynamically Created Tables on a Scrollarea - random artefacts after scrolling

I don't want to sound harsh but your code is pretty bad in places. from the very first line.. Public parentTable As New TableView(elementTraningForm) considering parentTable gets used later as.. Public Sub Dyntable_root_ColumnClick(c As Integer) parentTable = Last End Means using "New" in ...
by BruceSteers
Sunday 23rd October 2022 4:30pm
Forum: General
Topic: [Solved] Linux Workspace 2-4
Replies: 26
Views: 4372

Re: Linux Workspace 2-4

fixed following on gnome/cinnamon/kde with this.. Public Sub ShiftWorkSpace((Direction) As Integer, Optional Follow As Boolean) Dim xw As DesktopWindow = New DesktopWindow(Me.Handle) Select Direction Case Move_Right If Desktop.Type = "MATE" Then xw.Move(Screen.Width + Me.X, Me.Top) Else xw...
by BruceSteers
Sunday 23rd October 2022 12:47pm
Forum: General
Topic: [Solved] Linux Workspace 2-4
Replies: 26
Views: 4372

Re: Linux Workspace 2-4

I tested this on other desktops like gnome and cinnamon and find it does not really work on anything except MATE desktop. :( this was because i found setting the X11.DesktopWindow.Desktop property did not make the window switch workspace ,, on MATE , but turns out it does on gnome and cinnamon. So i...
by BruceSteers
Sunday 23rd October 2022 12:02pm
Forum: General
Topic: [Solved] Linux Workspace 2-4
Replies: 26
Views: 4372

Re: Linux Workspace 2-4

This has been interesting. I made a class file.. It's in my project .src called Form.class EDITED: ' Gambas class file ' with file name Form.class in your .src folder this adds workspace shifting to ALL Forms ' Requires gb.desktop.x11 Create Static Export Public Enum Move_Left, Move_Right, Move_Up, ...
by BruceSteers
Saturday 22nd October 2022 9:36pm
Forum: Beginners
Topic: icon inside a gridview cell
Replies: 4
Views: 3710

Re: icon inside a gridview cell


GridView1[0, 0].Picture = Picture["/my/pic.png"].Image.Stretch(64, 64).Picture

' resize grid cell to fit picture
GridView1.Rows[0].Height = -1
GridView1.Columns[0].Width = -1

by BruceSteers
Saturday 22nd October 2022 7:04pm
Forum: Beginners
Topic: icon inside a gridview cell
Replies: 4
Views: 3710

Re: icon inside a gridview cell

Sure...
GridView1[0,0].Picture = Picture["/my/pic.png"]
http://gambaswiki.org/wiki/comp/gb.qt4/ ... ll/picture