Page 1 of 2

Combobx control

Posted: Tue Jun 06, 2017 6:07 pm
by Georg_BA
Function does not accept the HEIGHT parameter

records must be more than just going into the window

I used a standard demo
and canceled the array with images
d:\hmg344\SAMPLES\Controls\ComboBox\COMBO_8\

used OS W7 Profi 32bit

in win XP SP3 works well

Re: Combobx control

Posted: Wed Jun 07, 2017 2:41 am
by andyglezl
Probado en W7 PRO 32bits y funciona OK.

Pareciera que tu archivo de indices está mal.
el HEIGHT solo muestra las ciudades que hay en el dbf, pudieras añadir mas.
-----------------------------------------------------------------------
Tested on W7 PRO 32 bit and works OK.

It looks like your index file is wrong.
The HEIGHT only shows the cities that are in the dbf, you could add more.

Re: Combobx control

Posted: Wed Jun 07, 2017 3:25 am
by Georg_BA
Thank you for your response
Bust please use the database I sent
It will not be in the index, I deleted it before running it.

Re: Combobx control

Posted: Wed Jun 07, 2017 10:25 am
by Marin
Hi, Georg_BA,

Would you, please, try this (from my humble experience with COMBOs):

Code: Select all

		DEFINE COMBOBOX Combo_2
			ROW 10
			COL 250
			// ITEMSOURCE CIDADES->CODIGO , CIDADES->DESCRICAO 
			ITEMSOURCE CIDADES->CODIGO + " " + CIDADES->DESCRICAO
			VALUE 2
			WIDTH 200					
			HEIGHT 100					
			IMAGE aImages
			DROPPEDWIDTH 350
			ONDROPDOWN PlayBeep()
			ON CLOSEUP PlayAsterisk()		
		END COMBOBOX
Kind regards,
Marin

Re: Combobx control

Posted: Wed Jun 07, 2017 11:36 am
by Georg_BA
Thank you for your interest
Problem is not in combo 2
Screenshot_1.jpg -corect view
There is no problem in not seeing the field, but it places the displayed values
Screenshot_1.jpg top Windows

Combo 1 and cobmo 2 should be displayed as well
In combo 1 I canceled the images to fake the bug

Can I try to compile the example I sent?

Re: Combobx control

Posted: Wed Jun 07, 2017 12:11 pm
by serge_girard
George,

It must be some bug when using it with IMAGE.
This will give about the same result:..

Code: Select all

		DEFINE COMBOBOX Combo_1
			ROW 10
			COL 10
			ITEMSOURCE CIDADES->DESCRICAO
			VALUE 5
			WIDTH 200					
			HEIGHT 50					
			DROPPEDWIDTH 200
			ONDROPDOWN PlayBeep()
			ON CLOSEUP PlayAsterisk()		
		END COMBOBOX


		DEFINE COMBOBOX Combo_2
			ROW 10
			COL 250
			ITEMSOURCE CIDADES->CODIGO , CIDADES->DESCRICAO
			VALUE 2
			WIDTH 200					
			HEIGHT 500					
			IMAGE aImages
			DROPPEDWIDTH 200
			ONDROPDOWN PlayBeep()
			ON CLOSEUP PlayAsterisk()		
		END COMBOBOX
Very strange indeed.
Serge

Re: Combobx control

Posted: Wed Jun 07, 2017 1:03 pm
by Marin
Sorry, Georg,

I didn't understand your question right.

As far as I remember, there was somewhere in our forum a clarification, that the HEIGHT property applies to the height of the initial box of the combobox only and not to the height of the expanded dropdown list.
Unfortunately, I can not give here the exact link.

Regards,
Marin

Re: Combobx control

Posted: Wed Jun 07, 2017 2:22 pm
by andyglezl

Re: Combobx control

Posted: Wed Jun 07, 2017 2:51 pm
by Georg_BA
I went through the forum, there were more complaints, but no problem solving :(

viewtopic.php?f=24&t=4797&p=45556&hilit ... ght#p45556
viewtopic.php?f=24&t=4205&p=39783&hilit ... ght#p39783

Re: Combobx control

Posted: Wed Jun 07, 2017 3:01 pm
by Georg_BA
viewtopic.php?f=24&t=4797&p=45556&hilit ... GHT#p45556

The same problem, but not the solution

I use hmg 3.4.4 /ANSI