[Gambas-user] ¿Why I can't modify a Table in TextEdit Example?

Jorge Carrión shordi at ...626...
Thu Aug 20 15:09:45 CEST 2009


Mmm It sounds fine. I'll try it. Thanks a lot Dimitris.
Regards


2009/8/20 Dimitris Anogiatis <dosida at ...626...>

> hey shordi,
>
> The only thing closer to a wysiwyg editor would prolly be to use the
> WebBrowser
> control. What that means is that you have to limit yourself to the Qt
> framework
> and your dependencies are way more... if that's no concern you can try
> the FCKEditor; put the editor into your gambas project and point the
> webbrowser
> to the index file. After you're done all you need to do is get the code
> from
> the
> editor and get back the one you edited already.
>
> Check the live demo @  http://www.fckeditor.net/demo
>
> Don't forget to enable Javascript in the Webbrowser control
>
> you get the webbrower control by pressing Ctrl + P then select
> Components and click on the gb.qt, gb.qt.kde and gb.qt.kde.html
>
> Point the path to the index file of the FCKEditor and that should be
> it.
>
> I hope this helps
>
> Regards
> Dimitris
>
> On Thu, Aug 20, 2009 at 5:10 AM, Jorge Carrión <shordi at ...626...> wrote:
>
> > I think so too. Rich Text is not html text..
> > Its a Pity. I've use html with a template system of my own to output
> prints
> > of database. I have to call /usr/bin/ooweb (or any other html editor) to
> > edit that html, and all seems be ok, but ooweb changes the code that it
> > don't understand -the template-, and is very confuse for my clients who
> > don't know html language.
> > I need a basic html wisiwig editor who respect (or ignore) all code I put
> > in
> > the text. TextEdit example is near of that, but not enough (I need html
> > tables).
> > This is a image of the screen. The html code don't means nothing at all
> to
> > my users. They can use "Editar Plantilla con Editor Externo" to call a
> > editor, but after edit code, they must rewite the templates (<--LOOP-->
> OR
> > {databasefield}) in it's proper place.
> >
> > ¿Some idea of what control (or external editor) can I use to embed or
> call
> > from my application?
> >
> > Excuse me English. Hop not have been too much confuse.
> >
> > Regards
> >
> > 2009/8/20 Benoît Minisini <gambas at ...1...>
> >
> > > > shordi wrote:
> > > > > I'm making tries with the TextEdit example of Gambas2. (I need a
> > simple
> > > > > web editor integrated with mi proyect). And I have tried this:
> > > > >
> > > > > Make a new toolbutton with this code
> > > > >
> > > > >  DIM tabla AS String
> > > > >   tabla = "<table border=1 width='100%'><tr><td width='100%'>hola
> > mundo
> > > > > </td><td width='100%'>como estas</td></tr><tr><td width='100%'>yo
> muy
> > > > > bien</td><td width='100%'>gracias</td></tr></table>"
> > > > >   TextEdit1.text &= tabla
> > > > >   TextEdit1.Refresh
> > > > >
> > > > > The table appears on screen integrated in the example text... but I
> > > can't
> > > > > modify in Main form the content of the table.
> > > > > Why?
> > > > > Confused...
> > > >
> > > > Nobody knows? I need some clues, please...
> > >
> > > Maybe a limitation of the underlying Qt control? TextEdit was never
> > > intended
> > > to be a Wysisyg HTLM editor anyway...
> > >
> > > Regards,
> > >
> > > --
> > > Benoît
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> > 30-Day
> > > trial. Simplify your report design, integration and deployment - and
> > focus
> > > on
> > > what you do best, core application coding. Discover what's new with
> > > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus
> > on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list