Websites

Hi!

When programming a GUI, how can I implement drag&drop ("move"
listbox1-items to listbox2).

and drag (upload) external files to an area?

thank you
Opti

Most users would employ a framework or library, whether programming a desktop GUI or a browser-based GUI. If you choose not to use a framework or library, then for a browser-based GUI you would have to respond to DOM events, and in a Desktop-based GUI, you would have to issue the appropriate GUI calls to the operating system (in general this is usually done by writing C-code that is callable from Ruby — Ruby doesn’t really give you the tools to make system calls directly, and even if they did coding it in Ruby would result in slow-running code, as Ruby is farther removed from the machine level than C is.

···

On Nov 16, 2021, at 3:00 AM, Die Optimisten <inform@die-optimisten.net> wrote:

Hi!

When programming a GUI, how can I implement drag&drop ("move"
listbox1-items to listbox2).

and drag (upload) external files to an area?

thank you
Opti

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

Ok, so how can I do it - using libui, glimmer?
Any gems doing that already (have not found a solution!)
Opti

···

Am 16.11.21 um 18:20 schrieb Jack Royal-Gordon:

Most users would employ a framework or library, whether programming a desktop GUI or a browser-based GUI. If you choose not to use a framework or library, then for a browser-based GUI you would have to respond to DOM events, and in a Desktop-based GUI, you would have to issue the appropriate GUI calls to the operating system (in general this is usually done by writing C-code that is callable from Ruby — Ruby doesn’t really give you the tools to make system calls directly, and even if they did coding it in Ruby would result in slow-running code, as Ruby is farther removed from the machine level than C is.

On Nov 16, 2021, at 3:00 AM, Die Optimisten <inform@die-optimisten.net> wrote:

Hi!

When programming a GUI, how can I implement drag&drop ("move"
listbox1-items to listbox2).

and drag (upload) external files to an area?

thank you
Opti

glimmer-dsl-tk sample:

glimmer-dsl-swt sample:

···

On 11/16/21, Die Optimisten <inform@die-optimisten.net> wrote:

Am 16.11.21 um 18:20 schrieb Jack Royal-Gordon:
> > On Nov 16, 2021, at 3:00 AM, Die Optimisten <inform@die-optimisten.net>:
> > When programming a GUI, how can I implement drag&drop ("move"
> > listbox1-items to listbox2).
> > and drag (upload) external files to an area?
> >
> Most users would employ a framework or library, whether programming a
> desktop GUI or a browser-based GUI.>>
>
Ok, so how can I do it - using libui, glimmer?
Any gems doing that already (have not found a solution!)