Re: [fltk.general] How to change font and its size in a EditorWindow object ?

2010-07-19 Thread Domingo Alvarez Duarte
Here is how I managed to change font and it's size: static void set_textsize_styletable(EditorWindow *w, int fsize){ w->editor->textsize(fsize); int nStyles = sizeof(styletable) / sizeof(styletable[0]); for(int i=0; i< nStyles; i++) styletable[i].size = fsize; w->editor->redraw(); } v

Re: [fltk.general] How to change font and its size in a EditorWindow object ?

2010-07-10 Thread Matthias Melcher
On 08.07.2010, at 23:59, Alexander Walz wrote: > I am currently combining the editor and fonts test files (test/editor.cxx & > test/fonts.cxx) shipped with FLTK 1.1.10 to allow the user to define a > different font and font size in realtime for the text she/he entered into the > editor. I use

Re: [fltk.general] How to change font and its size in a EditorWindow object ?

2010-07-09 Thread Edzard Egberts
> I am currently combining the editor and fonts test files > (test/editor.cxx& test/fonts.cxx) shipped with FLTK 1.1.10 to allow > the user to define a different font and font size in realtime for the > text she/he entered into the editor. I use Windows XP. Please look for thread "Layout Manager"

Re: [fltk.general] How to change font and its size in a EditorWindow object ?

2010-07-08 Thread Domingo Alvarez Duarte
Maybe you already know but there is an old project called fldev http://www.hardl.de/fldev/about.php I have it compiling with fltk 1.3 but the editor only shows rubish, but the project has very nice features that after revision can return to be a nice ide. _

[fltk.general] How to change font and its size in a EditorWindow object ?

2010-07-08 Thread Alexander Walz
Dear community, I am currently combining the editor and fonts test files (test/editor.cxx & test/fonts.cxx) shipped with FLTK 1.1.10 to allow the user to define a different font and font size in realtime for the text she/he entered into the editor. I use Windows XP. I managed to assign the new