hi,
i like to set "TabStops" in ComboBox so i need Handle of Listbox Part when "open" ComboBox
how can i get Handle of "ComboLBox"
Handle of Listbox Part from Combobox
Moderator: Rathinagiri
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Handle of Listbox Part from Combobox
have fun
Jimmy
Jimmy
-
- Posts: 44
- Joined: Tue Dec 08, 2020 11:37 am
- DBs Used: DBF,MySQL,PostgreSQL
- Location: Brasil
- Contact:
Re: Handle of Listbox Part from Combobox
Hi To All ,
You can use GetControlHandle
Ex:GetControlHandle( 'br_grid', cActiveJan )
You can use GetControlHandle
Ex:GetControlHandle( 'br_grid', cActiveJan )
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Handle of Listbox Part from Combobox
hi,
a Combobox have 2 x "Parts" : TEXTBOX + LISTBOX
but i only want the Handle of Listbox "Part" which have "no Name" ...
you need a "Name" of Control which is a Combobox.
a Combobox have 2 x "Parts" : TEXTBOX + LISTBOX
but i only want the Handle of Listbox "Part" which have "no Name" ...
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Handle of Listbox Part from Combobox
hi,
got more Information
other Way COMBOBOXINFO structure (winuser.h)
https://docs.microsoft.com/de-de/window ... mboboxinfo
https://docs.microsoft.com/de-de/window ... mboboxinfo
now i have to look how to get it work under harbour
got more Information
this is one Waywhen CBN_DROPDOWN notification code is send Listbox Part will open
Then use FindWindowEx() to get the handle of the control ...
other Way COMBOBOXINFO structure (winuser.h)
https://docs.microsoft.com/de-de/window ... mboboxinfo
to get Information use GetComboBoxInfo function (winuser.h)hwndCombo Handle to the combo box.
hwndItem Handle to the edit box.
hwndList Handle to the drop-down list.
https://docs.microsoft.com/de-de/window ... mboboxinfo
now i have to look how to get it work under harbour
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Handle of Listbox Part from Combobox
hi,
i found "Handle" of Listbox-Part in Combobox : COMBOBOXINFO Structure (winuser.h)
https://docs.microsoft.com/de-de/window ... mboboxinfo
i have found that COMBOBOXINFO Structure is used by some FiveWin HB_FUNC which i modify for HMG
after found out that Constant
is not used in HMG i try to "add" it with
than i call HB_FUNC
from MiniGUI Extendet Version but it does not work ...
what í´m doing wrong
i found "Handle" of Listbox-Part in Combobox : COMBOBOXINFO Structure (winuser.h)
https://docs.microsoft.com/de-de/window ... mboboxinfo
i have found that COMBOBOXINFO Structure is used by some FiveWin HB_FUNC which i modify for HMG
after found out that Constant
Code: Select all
#define LBS_USETABSTOPS 128 // 0x80
Code: Select all
HMG_ChangeWindowStyle( nHwnd1 , LBS_USETABSTOPS , NIL , .T. )
Code: Select all
LISTBOXSETMULTITAB(nHwnd1, aTabStops )
have fun
Jimmy
Jimmy