Page 1 of 1
About inserting controls in a Toolbar control
Posted: Tue Jun 02, 2009 6:49 pm
by jparada
Translated by Google
It is possible to "insert" a TextBox, Label, etc.. control in a Toolbar.
What I want is to insert a Textbox control in a Toolbar control, to search (incremental search in a table dbf).
Thanks
Greetings
Javier
Español,
Es posible "insertar" un control Textbox, Label, etc. en un control Toolbar.
Lo que quiero es insertar un control Textbox en un control Toolbar, para hacer búsquedas (búsqueda incremental en una tabla dbf).
Gracias
Saludos
Javier
Re: About inserting controls in a Toolbar control
Posted: Tue Jun 02, 2009 7:14 pm
by Rathinagiri
IMHO, it is not possible as of now.
Re: About inserting controls in a Toolbar control
Posted: Tue Jun 02, 2009 8:04 pm
by salamandra

Hi jparada,
jparada wrote:Translated by Google
It is possible to "insert" a TextBox, Label, etc.. control in a Toolbar.
What I want is to insert a Textbox control in a Toolbar control, to search (incremental search in a table dbf).
Thanks
Greetings
Javier
As far as I know.....you can't.
But you can take a look at
HMG\SAMPLES\CONTAINERS\SPLITBOX\Demo7.prg
and you will find a
excellent example about TOOLBAR and COMBOBOX working together.
May be that's what you are searching for.
Regards,
Salamandra
Re: About inserting controls in a Toolbar control
Posted: Wed Jun 03, 2009 2:05 am
by jparada
Thanks for answering, Rathinagiri, I feared that response.
Salamandra, I must confess that I am excited when I take a look at the example you told me, but apparently it is not possible to insert a Textbox control that way, help control Splitbox says:
- Controls / Windows defined as part of this container can be arranged
by users, using a gripperbar located at control's left side. It can be
used with listbox, grid, editbox, tree, browse, combobox, toolbar and
'SplitChild' windows. You must omit '@ <row>,<col>' in control
definition.
If I am wrong please correct to me
Thanks for answering
Greetings
Javier
Español,
Gracias por contestar, Rathinagiri, me temía esa respuesta.
Salamandra, debo confesar que me emocione cuando le eche un vistazo al ejemplo que me dijiste, pero al parecer no es posible insertar un control Textbox de esa manera, la ayuda del control Splitbox dice:
- Controls / Windows defined as part of this container can be arranged
by users, using a gripperbar located at control's left side. It can be
used with listbox, grid, editbox, tree, browse, combobox, toolbar and
'SplitChild' windows. You must omit '@ <row>,<col>' in control
definition.
Si estoy equivocado por favor corrijanme.
Gracias por contestar
Saludos
Javier
Re: About inserting controls in a Toolbar control
Posted: Fri Jun 05, 2009 5:25 pm
by salamandra
Hi
jparada,
- Controls / Windows defined as part of this container can be arranged
by users, using a gripperbar located at control's left side. It can be
used with listbox, grid, editbox, tree, browse, combobox, toolbar and
'SplitChild' windows. You must omit '@ <row>,<col>' in control
definition.
Using HMG\SAMPLES\CONTAINERS\SPLITBOX\DEMO7.PRG, I'd changed
COMBOBOX by TEXTBOX and really don't worked for me
(reports compilation error)
Then I'd changed code using EDITBOX instead COMBOBOX and changed code as follows:
EDITBOX edit_00 ;
WIDTH 160 ;
HEIGHT 20 ;
VALUE "" ;
MAXLENGTH 100 ;
ON CHANGE {|| Msginfo("** PUT HERE your ON CHANGE event **") };
NOVSCROLL ;
NOHSCROLL
.... and worked fine.
And... YES, EDITBOX it's not a TEXTBOX, but works fine and I think
this can solve your problem (or almost) ...
Regards,
Salamandra
Re: About inserting controls in a Toolbar control
Posted: Mon Jun 08, 2009 5:57 pm
by jparada
Thanks for answering Salamandra, your idea is very good I will try
Thanks
Greetings
Javier