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 »

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?
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Graphic component like form in IDE

Post 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
If at first you don't succeed , try doing something differently.
BruceS
User avatar
thatbruce
Posts: 161
Joined: Saturday 4th September 2021 11:29pm

Re: Graphic component like form in IDE

Post by thatbruce »

Interesting idea!
I'll look forward to further news.
b
Have you ever noticed that software is never advertised using the adjective "spreadable".
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Graphic component like form in IDE

Post 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
Attachments
Drag&Drop-1.0.tar.gz
(16.31 KiB) Downloaded 91 times
Post Reply