ComboBox bigger "Button to open" Droplist

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 1448
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 267 times
Been thanked: 416 times

ComboBox bigger "Button to open" Droplist

Post by AUGE_OHR »

hi,

is there a Way to get bigger Button in ComboBox to "open" (F4) Droplist.
it is hard to "open" Combobox on Table PC with Touch Screen when Button is "so small"
have fun
Jimmy

User avatar
andyglezl
Posts: 1356
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 46 times
Been thanked: 170 times
Contact:

Post by andyglezl »

Tal vez...
*--------------------
Maybe...


DEFINE COMBOBOX CB_Seleccion
PARENT &cFormPanel.
ROW 25
COL 495
WIDTH 100
HEIGHT 50
ITEMS { }
VALUE 1
FONTNAME "Consolas"
FONTSIZE 20
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
AUGE_OHR
Posts: 1448
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 267 times
Been thanked: 416 times

Post by AUGE_OHR »

hi,

it does help to use bigger Size / Font but it is still hard to "hit" it on small Touch Screen

now i use F4 and GOTFOCUS Event so Listbox Part will open

p.s. ComboBox is not a good Control for Touch Screen this Way ...
to "scroll" you need to use Scrollbar :(
have fun
Jimmy

User avatar
andyglezl
Posts: 1356
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 46 times
Been thanked: 170 times
Contact:

Post by andyglezl »

No he desarrollado para touch,
pero al deslizar el dedo en la lista de elementos
no se mueve hacia arriba o hacia abajo ?
*------------------------------------------------------------
I have not developed for touch,
but when you slide your finger in the item list
not moving up or down ?
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
AUGE_OHR
Posts: 1448
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 267 times
Been thanked: 416 times

Post by AUGE_OHR »

hi,

HMG Combobox will "mark" Item "under" Cursor
it will scroll when using Wheel

when you "touch" Screen nothing happens in Listbox Part of Combobox
only when DblClick on Touch Screen it does react
have fun
Jimmy

franco
Posts: 628
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 47 times

Post by franco »

ADDED TO TOPIC JUNE 21 SO YOU CAN SEE WHAT I CHANGED EASILY.
I CHANGED FONT AND ADDED SIZE SEEMS TO WORK OK TOUCH SCREEN. CAN NOT GET SCROLL BAR IN COMBOBOX
I MADE AN ERROR. THE FONT FOR COMBO BOX IS NOT CONTROLLED BY WINDOW DEFINE.
maybe try. font is set at window define.
demo 1 3.4.4.

Code: Select all

/*
* HMG ComboBox Demo
* (c) 2002 Roberto Lopez
*/

#include "hmg.ch"
Function Main

	DEFINE WINDOW Form_1 ;
		AT 0,0 ;
		WIDTH 400 ;                             //modified
		HEIGHT 200 ;                            //modified
		TITLE 'ComboBox Demo' ;
		MAIN ;
		FONT "courier" SIZE 12      
		        
		DEFINE MAIN MENU
			DEFINE POPUP '&Test'
				MENUITEM 'Item Content' ACTION MsgInfo ( Form_1.Combo_1.Item (1) )
			END POPUP
		END MENU

		@ 10,10 COMBOBOX Combo_1 ;
			WIDTH 300 ;                   //modified
			HEIGHT 400 ;                 //modified
			ITEMS { '1 | Uno' , '2 | Dos' , '3 | tres' } ;
			VALUE 1 ;
			ON ENTER MsgInfo ( Str(Form_1.Combo_1.value) ) ;
			FONT 'Courier' SIZE 30                // ADDED

	END WINDOW

	CENTER WINDOW Form_1

	ACTIVATE WINDOW Form_1

Return

All The Best,
Franco
Canada

Post Reply