Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM_ComboBox EM_SETCUEBANNER
#2
for ComboBox controls there is a different message to use.
it is CB_SETCUEBANNER
example
Code:
Copy      Help
,SendMessage id(4 hDlg) CB_SETCUEBANNER 0 @"Tip txt2"
,SendMessage id(5 hDlg) CB_SETCUEBANNER 0 @"Tip txt3"    

QM_ComboBox cuebanner text can be set this way . But it is designed to do this way easier
use a csv string and can assign all kinds of settings
read here for more info
QM_ComboBox control
example
 
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54030080 0x200 32 8 96 12 ""
;4 QM_ComboBox 0x54030242 0x0 32 32 96 13 ""
;5 QM_ComboBox 0x54030242 0x4 32 56 96 13 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""

str controls = "3 4 5"
str e3 qmcb4 qmcb5

qmcb4=
;-1,,,Tip txt2
;hello
;world
qmcb5=
;-1,,,Tip txt3
;hello
;world
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,SendMessage id(3 hDlg) EM_SETCUEBANNER 1 @"Tip txt1"
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread
QM_ComboBox EM_SETCUEBANNER - by Davider - 02-14-2023, 10:13 AM
RE: QM_ComboBox EM_SETCUEBANNER - by Kevin - 02-14-2023, 01:24 PM
RE: QM_ComboBox EM_SETCUEBANNER - by Davider - 02-14-2023, 11:33 PM
RE: QM_ComboBox EM_SETCUEBANNER - by Kevin - 02-15-2023, 02:53 AM
RE: QM_ComboBox EM_SETCUEBANNER - by Davider - 02-15-2023, 03:49 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)