fxruby (nonexistent) html widget

H

Hal Fulton

Fox apparently doesn't have an HTML widget.

What might be my options for displaying a small piece of
simple HTML in Fox?

I'm considering these possibilities:

- embed another app in a Fox frame somehow?
- embed a different toolkit main window in a
Fox frame (ugly code and perhaps impossible)
- write a simplistic html renderer

And yes, I'm considering using a different toolkit. But
Fox and Tk are what I know best, and I don't like Tk.


Thanks,
Hal
 
L

Lothar Scholz

Hello Hal,

HF> Fox apparently doesn't have an HTML widget.

HF> What might be my options for displaying a small piece of
HF> simple HTML in Fox?

HF> I'm considering these possibilities:

HF> - embed another app in a Fox frame somehow?
HF> - embed a different toolkit main window in a
HF> Fox frame (ugly code and perhaps impossible)

Did you look at SWT Fox, Ivan Markov implemented an embedded
Gecko/MSExplorer widget as a FOX widget ?

HF> - write a simplistic html renderer

I did this for the class browser in ArachnoRuby 0.6.
It's a lot of work to implement it, even if the line count
is only around 5000 lines.
 
H

Hal Fulton

Lothar said:
Did you look at SWT Fox, Ivan Markov implemented an embedded
Gecko/MSExplorer widget as a FOX widget ?

I have not heard of that... is it very "heavy"? Would I have
to install a lot just to be able to embed a browser?
HF> - write a simplistic html renderer

I did this for the class browser in ArachnoRuby 0.6.
It's a lot of work to implement it, even if the line count
is only around 5000 lines.

I probably am thinking a smaller more simplistic tool, very
poor in features. But I don't want to implement it unless
I have to.

What toolkit did you use for ArachnoRuby? It's not open
source, is it?


Thanks,
Hal
 
L

Lothar Scholz

Hello Hal,


HF> I have not heard of that... is it very "heavy"? Would I have
HF> to install a lot just to be able to embed a browser?

On windows you don't need to install anything.
On linux you must have Mozilla/Firefox installed, don't know if
it is able to detect this automatically, but i doubt it.

Can't tell you if it works, i never tried it myself but ask

HF> I probably am thinking a smaller more simplistic tool, very
HF> poor in features. But I don't want to implement it unless
HF> I have to.

Depends on what you want to do. But 5000 lines came together very
quickly. I would guess that about 70% of my code is just basics that
you must implement anyway.

HF> What toolkit did you use for ArachnoRuby? It's not open
HF> source, is it?

It is FOX, i only added some customized subclasses (for example for
FXTreeListItem etc.) and replaced the whole menu system with my own
implementation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top