Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Listbox, select item on ENTER or SPACE?
#7
Sorry 2 questions

1)
In the first example you gave at the very top (Function test_lb).
When I have content which has many characters, the listbox doesn't render a horizontal scrollbar at the bottom.
I did set the horizontal scrollbar style (and vertical) but with items in the listbox with many characters it get's cutt of by the listbox.

2)
When I have the below ocde, it works perfectly in a macro.
But when I put the below code in function called "cm_Backup" which is triggered by a button in a QM dialog called "cm_Main", the OSD message dissapears when the main thread "cm_Main" finishes (which is the dialog).
I want it to finish (dissapear) when "cm_Backup" is done. (I tried it with the '2' flag, but it doesnt work).
The dialog that runs "cm_Backup" is an standalone QM compiled .exe
This initial behavior is expected because of the way how a macro and function runs, but I was wondering if there is a workaround?

Macro osd_test
Code:
Copy      Help
;; 0x00000f = font color
;; 0x00ffff = background color
;; '8|1'
;;  -  the '1' sets it to none transparent! IMPORTANT)
;;  -  the '8' runs until macro ends!
OnScreenDisplay "Backing up, please wait..." -1 0 -1 "" 0 0x00000f 8|1 0 0x00ffff
3 ;; from here the backup code starts.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)