Page 1 of 1

Graphic component like form in IDE

Posted: Thursday 4th August 2022 10:56pm
by sushisan
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?

Re: Graphic component like form in IDE

Posted: Friday 5th August 2022 12:13am
by BruceSteers
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

Re: Graphic component like form in IDE

Posted: Saturday 6th August 2022 1:42pm
by thatbruce
Interesting idea!
I'll look forward to further news.
b

Re: Graphic component like form in IDE

Posted: Saturday 6th August 2022 2:23pm
by cogier
I dug out an old piece of 'Drag & Drop' code and put it on the Gambas Farm and below. I hope it helps.
Image