Graphic component like form in IDE

Post your Gambas programming questions here.
Post Reply
sushisan
Posts: 1
Joined: Thursday 4th August 2022 10:53pm

Graphic component like form in IDE

Post by sushisan » Thursday 4th August 2022 10:56pm

Hi to all:

I want make a graphic panel where to drag and drop components like in main form editor in IDE, ie that align in a grid automatically. Is possible in Gambas?

BruceSteers
Posts: 849
Joined: Thursday 23rd July 2020 5:20pm

Re: Graphic component like form in IDE

Post by BruceSteers » Friday 5th August 2022 12:13am

sushisan wrote:
Thursday 4th August 2022 10:56pm
Hi to all:

I want make a graphic panel where to drag and drop components like in main form editor in IDE, ie that align in a grid automatically. Is possible in Gambas?
Possible, yes
Automatic, no

You'll have to use . _Drag() event

https://gambaswiki.org/edit/comp/gb.qt4/control/drag
https://gambaswiki.org/edit/comp/gb.qt4/drag

User avatar
thatbruce
Posts: 31
Joined: Saturday 4th September 2021 11:29pm

Re: Graphic component like form in IDE

Post by thatbruce » Saturday 6th August 2022 1:42pm

Interesting idea!
I'll look forward to further news.
b

User avatar
cogier
Site Admin
Posts: 900
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Graphic component like form in IDE

Post by cogier » Saturday 6th August 2022 2:23pm

I dug out an old piece of 'Drag & Drop' code and put it on the Gambas Farm and below. I hope it helps.
Image
Attachments
Drag&Drop-1.0.tar.gz
(16.31 KiB) Downloaded 2 times

Post Reply