About inserting controls in a Toolbar control

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

About inserting controls in a Toolbar control

Post 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
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: About inserting controls in a Toolbar control

Post by Rathinagiri »

IMHO, it is not possible as of now.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: About inserting controls in a Toolbar control

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

Re: About inserting controls in a Toolbar control

Post 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
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: About inserting controls in a Toolbar control

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

Re: About inserting controls in a Toolbar control

Post by jparada »

Thanks for answering Salamandra, your idea is very good I will try

Thanks

Greetings
Javier
Post Reply