gibes probelm bei machen Widget mit Pango oder liegt es am Windows
-
hallo
Hab e ein Testprogramm für gtkmm und c++
geschrieben und möchte selber austest was GTKmm so kannnun sin mehrere unstimmigkeiten ausgetreten
kann in keinen Widget wie Button,Entry,Label Hintergrundfarbe ändern
kann nicht Text eigenschaften ändern
in Button keine Schrift Grösse und Farbe änderliegt es am Windows System
compiler meldet keinen Fehler#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)); entry.modify_bg(entry.get_state(),Gdk::Color("black")); dat.modify_text(dat.get_state(),Gdk::Color("red")); entry.modify_text(entry.get_state(),Gdk::Color("red")); entry.set_alignment (1); box.add(entry); std::cout <<"suche nach "<< lab1.get_layout() << std::endl; lab1.modify_font(Pango::FontDescription(font_name)); lab1.modify_bg(entry.get_state(),Gdk::Color("black")); lab1.modify_text(lab1.get_state(),Gdk::Color("red")); box.add(lab1); dat.modify_font(Pango::FontDescription(font_name)); box.add(dat); //button.modify_font(Pango::FontDescription(font_name1)); //button.modify_text(button.get_state(),Gdk::Color("blue")); box.add(button); label.modify_font(Pango::FontDescription(font_name)); label.modify_text(lab1.get_state(),Gdk::Color("red")); box.add(label); box.modify_font(Pango::FontDescription(font_name1)); //box.modify_text(box.get_state(),Gdk::Color("red")); add(box); show_all(); } void Dialogue::on_button_clicked(){ label.set_text(logic->eval(entry.get_text(),dat.get_text())); }
oder ist die GTKmm version nicht in Ordnung
edit: bitte codetags verwenden