Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Listbox, select item on ENTER or SPACE?
#8
1. It is how ListBox control class works. It is an obsolete class and now almost not used in programs, but still can be used in macro dialogs where perfection is not necessary. If want a better listbox, instead use SysListView32 or QM_Grid control. It shows h. scrollbar or/and tooltips for partially cut item text. For example function ListDialog uses SysListView32.

Code:
Copy      Help
ListDialog("visible visible visible visible visible visible hidden hidden hidden hidden hidden hidden hidden hidden")

2. Let cm_Backup call OsdHide.

Macro cm_Main
Code:
Copy      Help
mes "before cm_Backup"
cm_Backup
mes "after cm_Backup"
Function cm_Backup
Code:
Copy      Help
OnScreenDisplay "Backing up, please wait..." -1 0 -1 "" 0 0x00000f 8|1 "cm_Backup" 0x00ffff
mes "in cm_Backup"

err+
,OsdHide "cm_Backup"
,end _error
OsdHide "cm_Backup"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)