Combobx control

Moderator: Rathinagiri

Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Combobx control

Post 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
Attachments
COMBO_8.ZIP
source with a greater dbf
(16.59 KiB) Downloaded 230 times
correct viewing
correct viewing
Screenshot_2.jpg (35.22 KiB) Viewed 6987 times
inorrect viewing
inorrect viewing
Screenshot_1.jpg (40.34 KiB) Viewed 6987 times
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Combobx control

Post 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.
Attachments
Combo82.jpg
Combo82.jpg (57.63 KiB) Viewed 6964 times
Combo8.jpg
Combo8.jpg (138.07 KiB) Viewed 6966 times
Andrés González López
Desde Guadalajara, Jalisco. México.
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: Combobx control

Post 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.
Marin
Posts: 33
Joined: Tue Dec 20, 2016 1:39 pm
DBs Used: DBF
Location: Bulgaria, Sofia
Contact:

Re: Combobx control

Post 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
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: Combobx control

Post 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?
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Combobx control

Post 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
There's nothing you can do that can't be done...
Marin
Posts: 33
Joined: Tue Dec 20, 2016 1:39 pm
DBs Used: DBF
Location: Bulgaria, Sofia
Contact:

Re: Combobx control

Post 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
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Combobx control

Post by andyglezl »

Andrés González López
Desde Guadalajara, Jalisco. México.
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: Combobx control

Post 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
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: Combobx control

Post 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
Post Reply