> Matthias Melcher <mm@...> writes:
>
> > Fluid was designed with Fluid. You can open the .fl file in the
> > source tree
> > and change the layout and font
> > sizes. There is no function (yet) that scales the entire application.
> >
> > Since you need to run Fluid to create Fluid, you should use a copy of
> the
> > program for editing. Also note that
> > you have to generate the code from the fl files manually
> > (menuitem 'create code').
> >
>
> I searched around and found the place where
> I believe the font is being set here:
>
> Function {make_code_panel()} {open selected
> } {
> Fl_Window code_panel {
> label {Code Properties} open
> xywh {359 171 546 201} type Double labelsize 11 hide resizable
> code0 {o->size_range(200, 150);} modal
> } {
> Fl_Text_Editor code_input {
> xywh {10 10 520 130}
> box DOWN_BOX labelsize 11 textfont 4 textsize 15 resizable
> code0 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
> code1 {\#include "CodeEditor.h"}
> class CodeEditor
> }
>
> I think it is this section since the title of the
> input box where I am entering code is "Code Properties";
> yet even though I changed it from "textsize 11" to
> "textsize 15" here
> (and did the write code and rebuilt fltk/fluid),
> when I run it, the font is still the smaller font in that box.
>
> Do you have any suggestions to help me to find out how to
> make that font bigger?
Ah - I fear you may have been misdirected...
I think the editor panel is something of a special case - you probably need to
edit the font size in widget_panel.fl as above (using fluid to do so, of
course!) and ALSO edit the file CodeEditor.cxx and look for the block that
looks like...
Fl_Text_Display::Style_Table_Entry CodeEditor::
styletable[] = { // Style table
{ FL_FOREGROUND_COLOR, FL_COURIER, 11 }, // A - Plain
{ FL_DARK_GREEN, FL_COURIER_ITALIC, 11 }, // B - Line
comments
{ FL_DARK_GREEN, FL_COURIER_ITALIC, 11 }, // C - Block
comments
{ FL_BLUE, FL_COURIER, 11 }, // D - Strings
{ FL_DARK_RED, FL_COURIER, 11 }, // E -
Directives
{ FL_DARK_RED, FL_COURIER_BOLD, 11 }, // F - Types
{ FL_BLUE, FL_COURIER_BOLD, 11 } // G -
Keywords
};
And change all those 11's into 15's or whatever too, just to be on the safe
side!
I'm not sure if the Code Editor logic will inherit the widget font size
correctly or not, but your tests suggest that it maybe does not...
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk