Res: Res: Res: set_focus( ComboBox ) doesn't work!!!



Hi Bob.

It works 100%.

Thanks.

(o_o)



In that case, I would make this call instead of window->set_focus(*focusNextButtonClick):

focusNextButtonClick->grab_focus();

Bob

Marcelo David wrote:
Thanks Bob, again.

You're right. This is not my real code, is just an example. In the real code I used correctly, and it doesn't work.

I'm glad for your attention. Thanks.


(o_o)
Marcelo David


----- Mensagem original ----
De: Robert Caryl <bob fis-cal com>
Para: Marcelo David <mdsbrasil yahoo com br>
Enviadas: Quinta-feira, 19 de Abril de 2007 10:02:20
Assunto: Re: Res: set_focus( ComboBox ) doesn't work!!!

I just noticed why your window->set_focus called probably does not work:  Your call syntax is wrong, and should be:

window->set_focus(*focusNextButtonClick);

I am surprised that it compiles without error the way you have written it

Bob


Marcelo David wrote:
Thanks Bob,

but my use for focusNextButtonClick is for general type of Widget. window->set_focus( focusNextButtonClick ) is in a method that can be called by various diferents events or situations by signal event. Before the event, focusNextButtonClick receive a pointer for the next focus disired. With another Widgets works ok, but not with ComboBox.

----- Mensagem original ----
De: Robert Caryl <bob fis-cal com>
Para: Marcelo David <mdsbrasil yahoo com br>
Cc: gtkmm-list <gtkmm-list gnome org>
Enviadas: Quinta-feira, 19 de Abril de 2007 9:31:21
Assunto: Re: set_focus( ComboBox ) doesn't work!!!

Just call combo->grab_focus instead.

Bob

Marcelo David wrote:
Hi,


I have this,

Gtk::ComboBox *combo = new Gtk::ComboBox();

(...)

Gtk::Widget *focusNextButtonClick = combo;

(...)

window->set_focus( focusNextButtonClick );


set_focus doesn't work???!!!
Somebody can help me?


Thanks.






__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



--
Robert L. Caryl Jr.
Fiscal Systems, Inc.
102 Commerce Circle
Madison, AL 35758-2706 USA
256-772-8922 ext. 108

This e-mail message may contain privileged or confidential information. If you are not the intended recipient,
you may not disclose, use, disseminate, distribute, copy or relay this message or attachment in any way.
If you received this e-mail message in error, please return by forwarding the
message and it's attachment
to the sender and then delete the message and it's attachment from your computer.


Neither Fiscal Systems, Inc., nor its affiliates, accept any liability for any errors, omissions, corruption
or viruses in the contents of this message or any attachments that arise as a result of e-mail transmission.




__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/

--
Robert L. Caryl Jr.
Fiscal Systems, Inc.
102 Commerce Circle
Madison, AL 35758-2706 USA
256-772-8922 ext. 108

This e-mail message may contain privileged or confidential information. If you are not the intended recipient,
you may not disclose, use, disseminate, distribute, copy or relay this message or attachment in any way.
If you received this e-mail message in error, please return by forwarding the
message and it's attachment
to the sender and then delete the message and it's attachment from your computer.


Neither Fiscal Systems, Inc., nor its affiliates, accept any liability for any errors, omissions, corruption
or viruses in the contents of this message or any attachments that arise as a result of e-mail transmission.




__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/

--
Robert L. Caryl Jr.
Fiscal Systems, Inc.
102 Commerce Circle
Madison, AL 35758-2706 USA
256-772-8922 ext. 108

This e-mail message may contain privileged or confidential information. If you are not the intended recipient,
you may not disclose, use, disseminate, distribute, copy or relay this message or attachment in any way.
If you received this e-mail message in error, please return by forwarding the message and it's attachment
to the sender and then delete the message and it's attachment from your computer.


Neither Fiscal Systems, Inc., nor its affiliates, accept any liability for any errors, omissions, corruption
or viruses in the contents of this message or any attachments that arise as a result of e-mail transmission.




__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/

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