a probelm with FrontDescription



High this my  first time programming in Gtkmm and c++

 

 

Here a my short foo program

 

I work on windows system with Dev-c++ IDE

 

 

 

#include "Dialogue.h"

#include <iostream>

#include <string>

Dialogue::Dialogue(ButtonLogic* l)

: logic(l)

, button(Glib::locale_to_utf8(l->getDescription()))

, label("keine Eingabe erfolgt")

, lab1("Basis")

 

{

               Glib::ustring font_name = "Arial 36";

               Glib::ustring font_name1 = "Arial 72";

set_border_width(10);

button.signal_clicked().connect(sigc::mem_fun (*this, &Dialogue::on_button_clicked));

entry.modify_font(Pango::FontDescription(font_name));

box.add(entry);

std::cout <<"suche nach "<< lab1.get_layout() << std::endl;

 

lab1.modify_font(Pango::FontDescription(font_name));

box.add(lab1);

dat.modify_font(Pango::FontDescription(font_name));

box.add(dat);

 

button.modify_font(Pango::FontDescription(font_name1));

 

box.add(button);

label.modify_font(Pango::FontDescription(font_name));

box.add(label);

 

box.modify_font(Pango::FontDescription(font_name1));

add(box);

show_all();

 

}

void Dialogue::on_button_clicked(){

label.set_text(logic->eval(entry.get_text(),dat.get_text()));

 

}

 

 

 

All used widgets without button change the font and the size

What is the Problem

 

 

Thanks for reading

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]