|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Gtk::Stock::CANCELHello,
I am trying to add a stock icon to a button like this: this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); this is supposed to display a button with a X next to it (X Cancel), just like the Accept button in the example just above the description of ~Button(), which display a folded arrow pointing to the left [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] However, the button in my application does not display the intended image, does anyone know what I am doing wrong? TIA _______________________________________________ gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELHi, ArbolOne. Perhaps, you should call this->btnCancel->show_all_children(); ?
Best regards, Galymzhan. 2009/10/23, ArbolOne <arbolone@...>: > Hello, > I am trying to add a stock icon to a button like this: > this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); > this is supposed to display a button with a X next to it (X Cancel), > just like the Accept button in the example just above the description of > ~Button(), which display a folded arrow pointing to the left > [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] > > However, the button in my application does not display the intended > image, does anyone know what I am doing wrong? > > TIA > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@... > http://mail.gnome.org/mailman/listinfo/gtkmm-list > gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELOn Thu, 2009-10-22 at 20:31 -0400, ArbolOne wrote:
> Hello, > I am trying to add a stock icon to a button like this: > this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); > this is supposed to display a button with a X next to it (X Cancel), > just like the Accept button in the example just above the description of > ~Button(), which display a folded arrow pointing to the left > [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] > > However, the button in my application does not display the intended > image, does anyone know what I am doing wrong? Are you using Windows? The default GTK+ theme on Windows doesn't show stock button images on purpose. I believe that's meant to make GTK+ applications look more correct on Windows. -- murrayc@... www.murrayc.com www.openismus.com _______________________________________________ gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELI noticed that doesn't work for me either. Not sure why it doesn't work
myself and would like to know as well. Jim On 10/22/2009 08:31 PM, ArbolOne wrote: > Hello, > I am trying to add a stock icon to a button like this: > this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); > this is supposed to display a button with a X next to it (X Cancel), > just like the Accept button in the example just above the description of > ~Button(), which display a folded arrow pointing to the left > [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] > > However, the button in my application does not display the intended > image, does anyone know what I am doing wrong? > > TIA > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@... > http://mail.gnome.org/mailman/listinfo/gtkmm-list gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELHi,
On Thu, Oct 22, 2009 at 08:31:44PM -0400, ArbolOne wrote: > Hello, > I am trying to add a stock icon to a button like this: > this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); > this is supposed to display a button with a X next to it (X Cancel), > just like the Accept button in the example just above the > description of ~Button(), which display a folded arrow pointing to > the left [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] > > However, the button in my application does not display the intended > image, does anyone know what I am doing wrong? I tried out it in that way as well, and didn't work for me. Now I'm doing it in this way: Gtk::Widget *stckSave = Gtk::manage (new Gtk::Image (Gtk::Stock::SAVE, Gtk::ICON_SIZE_BUTTON)); m_refCmdOk->set_use_stock (true); m_refCmdOk->set_label (_("Save")); m_refCmdOk->set_image (*stckSave); agurr > > TIA > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@... > http://mail.gnome.org/mailman/listinfo/gtkmm-list _______________________________________________ gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELThat's interesting. I've been trying via a GtkBuilder GUI on Linux where
I select a stock button and neither in Glade3 nor when I run my GUI do the icons show up. Jim On 10/23/2009 08:25 AM, ga wrote: > Hi, > > On Thu, Oct 22, 2009 at 08:31:44PM -0400, ArbolOne wrote: >> Hello, >> I am trying to add a stock icon to a button like this: >> this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); >> this is supposed to display a button with a X next to it (X Cancel), >> just like the Accept button in the example just above the >> description of ~Button(), which display a folded arrow pointing to >> the left [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] >> >> However, the button in my application does not display the intended >> image, does anyone know what I am doing wrong? > > I tried out it in that way as well, and didn't work for me. > Now I'm doing it in this way: > > Gtk::Widget *stckSave = Gtk::manage (new Gtk::Image (Gtk::Stock::SAVE, Gtk::ICON_SIZE_BUTTON)); > m_refCmdOk->set_use_stock (true); > m_refCmdOk->set_label (_("Save")); > m_refCmdOk->set_image (*stckSave); > > > agurr > >> >> TIA >> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@... >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@... > http://mail.gnome.org/mailman/listinfo/gtkmm-list gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELYes, I am using WinXP, is there a way to change the theme, I really like
the look and feel of GNOME. TIA Murray Cumming wrote: > On Thu, 2009-10-22 at 20:31 -0400, ArbolOne wrote: > >> Hello, >> I am trying to add a stock icon to a button like this: >> this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); >> this is supposed to display a button with a X next to it (X Cancel), >> just like the Accept button in the example just above the description of >> ~Button(), which display a folded arrow pointing to the left >> [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] >> >> However, the button in my application does not display the intended >> image, does anyone know what I am doing wrong? >> > > Are you using Windows? The default GTK+ theme on Windows doesn't show > stock button images on purpose. I believe that's meant to make GTK+ > applications look more correct on Windows. > > -- ___ _____ _____ _____ _ _____ __ _ _____ / | | _ \ | _ \ / _ \ | | / _ \ | \ | | | ____| / /| | | |_| | | |_| | | | | | | | | | | | | \| | | |__ / / | | | _ / | _ { | | | | | | | | | | | |\ | | __| / / | | | | \ \ | |_| | | |_| | | |___ | |_| | | | \ | | |___ /_/ |_| |_| \_\ |_____/ \_____/ |_____| \_____/ |_| \_| |_____| ArbolOne.org specializes in Custom Web Site Design, Web Site Re Design, Web Site Template Modifications, Web Site Maintenance, Integration of Payment Gateways (API's), Database Applications, Custom Applications and much more. "O Allah, make my love for You the most beloved thing to me, and my fear for You the most fearful thing to me, and remove from me all worldly needs and wants by instilling a passion for meeting You, make the coolness of my eyes to worshipping You.” _______________________________________________ gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELDid you ever get a solution to this problem? Even trying some of the
suggestions on this list to your original post, I still can't get a stock image to appear on any buttons. I can get the text of the stock button to appear just fine, but never the associated image. Jim On 10/23/2009 10:33 AM, ArbolOne wrote: > Yes, I am using WinXP, is there a way to change the theme, I really like > the look and feel of GNOME. > > TIA > > Murray Cumming wrote: >> On Thu, 2009-10-22 at 20:31 -0400, ArbolOne wrote: >>> Hello, >>> I am trying to add a stock icon to a button like this: >>> this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); >>> this is supposed to display a button with a X next to it (X Cancel), >>> just like the Accept button in the example just above the description >>> of ~Button(), which display a folded arrow pointing to the left >>> [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] >>> >>> However, the button in my application does not display the intended >>> image, does anyone know what I am doing wrong? >> >> Are you using Windows? The default GTK+ theme on Windows doesn't show >> stock button images on purpose. I believe that's meant to make GTK+ >> applications look more correct on Windows. >> > gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELUnfortunately no.
I have tried every possible avenue, ideas and experiments, but to no avail. I asked Murray if he would give me some ideas about implementing the look and style of GNOME themes, but I am still waiting for a response. As Murray said in his last email, the Gtk+ team decided to remove that feature to make the GUI more MS like, which I find to be saddening. Please, please, Jim, if you find a work around, do, let us know. I hope the GTK+ team is reading these emails and re-implement the choice of adding widgets to the buttons, thus giving the developers the choice of the feel and look of his/her applications. Have a grate day! Jim Hodapp wrote: > Did you ever get a solution to this problem? Even trying some of the > suggestions on this list to your original post, I still can't get a > stock image to appear on any buttons. I can get the text of the stock > button to appear just fine, but never the associated image. > > Jim > > > On 10/23/2009 10:33 AM, ArbolOne wrote: >> Yes, I am using WinXP, is there a way to change the theme, I really like >> the look and feel of GNOME. >> >> TIA >> >> Murray Cumming wrote: >>> On Thu, 2009-10-22 at 20:31 -0400, ArbolOne wrote: >>>> Hello, >>>> I am trying to add a stock icon to a button like this: >>>> this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); >>>> this is supposed to display a button with a X next to it (X Cancel), >>>> just like the Accept button in the example just above the description >>>> of ~Button(), which display a folded arrow pointing to the left >>>> [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] >>>> >>>> >>>> However, the button in my application does not display the intended >>>> image, does anyone know what I am doing wrong? >>> >>> Are you using Windows? The default GTK+ theme on Windows doesn't show >>> stock button images on purpose. I believe that's meant to make GTK+ >>> applications look more correct on Windows. >>> >> > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@... > http://mail.gnome.org/mailman/listinfo/gtkmm-list > -- ___ _____ _____ _____ _ _____ __ _ _____ / | | _ \ | _ \ / _ \ | | / _ \ | \ | | | ____| / /| | | |_| | | |_| | | | | | | | | | | | | \| | | |__ / / | | | _ / | _ { | | | | | | | | | | | |\ | | __| / / | | | | \ \ | |_| | | |_| | | |___ | |_| | | | \ | | |___ /_/ |_| |_| \_\ |_____/ \_____/ |_____| \_____/ |_| \_| |_____| ArbolOne.org specializes in Custom Web Site Design, Web Site Re Design, Web Site Template Modifications, Web Site Maintenance, Integration of Payment Gateways (API's), Database Applications, Custom Applications and much more. "O Allah, make my love for You the most beloved thing to me, and my fear for You the most fearful thing to me, and remove from me all worldly needs and wants by instilling a passion for meeting You, make the coolness of my eyes to worshipping You.” _______________________________________________ gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELThanks for the reply. I remember reading that they removed this feature,
though I wasn't sure exactly what widgets it affected. I don't understand why they would remove the feature...they could leave it there but discourage the use of this feature through the HIG if they are going for a certain consistent look. I really need it in this case since I'm trying to implement buttons for a script interface that have functions like play, pause, stop, next, prev, etc. People are very familiar with the icons from everyday life and react faster to the icons than to reading the equivalent text. Jim On 11/04/2009 09:50 AM, ArbolOne wrote: > Unfortunately no. > I have tried every possible avenue, ideas and experiments, but to no avail. > > I asked Murray if he would give me some ideas about implementing the > look and style of GNOME themes, but I am still waiting for a response. > > As Murray said in his last email, the Gtk+ team decided to remove that > feature to make the GUI more MS like, which I find to be saddening. > > Please, please, Jim, if you find a work around, do, let us know. I hope > the GTK+ team is reading these emails and re-implement the choice of > adding widgets to the buttons, thus giving the developers the choice of > the feel and look of his/her applications. > > Have a grate day! > > Jim Hodapp wrote: >> Did you ever get a solution to this problem? Even trying some of the >> suggestions on this list to your original post, I still can't get a >> stock image to appear on any buttons. I can get the text of the stock >> button to appear just fine, but never the associated image. >> >> Jim >> >> >> On 10/23/2009 10:33 AM, ArbolOne wrote: >>> Yes, I am using WinXP, is there a way to change the theme, I really like >>> the look and feel of GNOME. >>> >>> TIA >>> >>> Murray Cumming wrote: >>>> On Thu, 2009-10-22 at 20:31 -0400, ArbolOne wrote: >>>>> Hello, >>>>> I am trying to add a stock icon to a button like this: >>>>> this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); >>>>> this is supposed to display a button with a X next to it (X Cancel), >>>>> just like the Accept button in the example just above the description >>>>> of ~Button(), which display a folded arrow pointing to the left >>>>> [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] >>>>> >>>>> >>>>> However, the button in my application does not display the intended >>>>> image, does anyone know what I am doing wrong? >>>> >>>> Are you using Windows? The default GTK+ theme on Windows doesn't show >>>> stock button images on purpose. I believe that's meant to make GTK+ >>>> applications look more correct on Windows. >>>> >>> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@... >> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> > gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
|
|
Re: Gtk::Stock::CANCELRight on man, right on.
Jim Hodapp wrote: > Thanks for the reply. I remember reading that they removed this > feature, though I wasn't sure exactly what widgets it affected. I > don't understand why they would remove the feature...they could leave > it there but discourage the use of this feature through the HIG if > they are going for a certain consistent look. I really need it in this > case since I'm trying to implement buttons for a script interface that > have functions like play, pause, stop, next, prev, etc. People are > very familiar with the icons from everyday life and react faster to > the icons than to reading the equivalent text. > > Jim > > On 11/04/2009 09:50 AM, ArbolOne wrote: >> Unfortunately no. >> I have tried every possible avenue, ideas and experiments, but to no >> avail. >> >> I asked Murray if he would give me some ideas about implementing the >> look and style of GNOME themes, but I am still waiting for a response. >> >> As Murray said in his last email, the Gtk+ team decided to remove that >> feature to make the GUI more MS like, which I find to be saddening. >> >> Please, please, Jim, if you find a work around, do, let us know. I hope >> the GTK+ team is reading these emails and re-implement the choice of >> adding widgets to the buttons, thus giving the developers the choice of >> the feel and look of his/her applications. >> >> Have a grate day! >> >> Jim Hodapp wrote: >>> Did you ever get a solution to this problem? Even trying some of the >>> suggestions on this list to your original post, I still can't get a >>> stock image to appear on any buttons. I can get the text of the stock >>> button to appear just fine, but never the associated image. >>> >>> Jim >>> >>> >>> On 10/23/2009 10:33 AM, ArbolOne wrote: >>>> Yes, I am using WinXP, is there a way to change the theme, I really >>>> like >>>> the look and feel of GNOME. >>>> >>>> TIA >>>> >>>> Murray Cumming wrote: >>>>> On Thu, 2009-10-22 at 20:31 -0400, ArbolOne wrote: >>>>>> Hello, >>>>>> I am trying to add a stock icon to a button like this: >>>>>> this->btnCancel = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); >>>>>> this is supposed to display a button with a X next to it (X Cancel), >>>>>> just like the Accept button in the example just above the >>>>>> description >>>>>> of ~Button(), which display a folded arrow pointing to the left >>>>>> [http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Button.html] >>>>>> >>>>>> >>>>>> >>>>>> However, the button in my application does not display the intended >>>>>> image, does anyone know what I am doing wrong? >>>>> >>>>> Are you using Windows? The default GTK+ theme on Windows doesn't show >>>>> stock button images on purpose. I believe that's meant to make GTK+ >>>>> applications look more correct on Windows. >>>>> >>>> >>> _______________________________________________ >>> gtkmm-list mailing list >>> gtkmm-list@... >>> http://mail.gnome.org/mailman/listinfo/gtkmm-list >>> >> > -- ___ _____ _____ _____ _ _____ __ _ _____ / | | _ \ | _ \ / _ \ | | / _ \ | \ | | | ____| / /| | | |_| | | |_| | | | | | | | | | | | | \| | | |__ / / | | | _ / | _ { | | | | | | | | | | | |\ | | __| / / | | | | \ \ | |_| | | |_| | | |___ | |_| | | | \ | | |___ /_/ |_| |_| \_\ |_____/ \_____/ |_____| \_____/ |_| \_| |_____| ArbolOne.org specializes in Custom Web Site Design, Web Site Re Design, Web Site Template Modifications, Web Site Maintenance, Integration of Payment Gateways (API's), Database Applications, Custom Applications and much more. "O Allah, make my love for You the most beloved thing to me, and my fear for You the most fearful thing to me, and remove from me all worldly needs and wants by instilling a passion for meeting You, make the coolness of my eyes to worshipping You.” _______________________________________________ gtkmm-list mailing list gtkmm-list@... http://mail.gnome.org/mailman/listinfo/gtkmm-list |
| Free embeddable forum powered by Nabble | Forum Help |