Fxruby (nonexistent) html widget

(HAL 9000) #1

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

(Lothar Scholz) #2

Hello Hal,

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)

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

   - 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.

···

--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ruby-ide.com
CTO Scriptolutions Ruby, PHP, Python IDE 's

(HAL 9000) #3

Lothar Scholz wrote:

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?

> - 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

(Lothar Scholz) #4

Hello Hal,

Lothar Scholz wrote:

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?

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
Ivan Markov <ivan.markov at sciant dot com>

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.

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.

What toolkit did you use for ArachnoRuby? It's not open
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.

···

--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ruby-ide.com
CTO Scriptolutions Ruby, PHP, Python IDE 's