-
When there are some TBGL script that rotate I usually can use arrows keys.
They use TBGL_GetwindowKeyState where hWnd is the handle of TBGL window created using TBGL_CreateWindowex
Example:
Code:
if TBGL_GetwindowKeyState( hWnd, %VK_UP) then ...
if TBGL_GetwindowKeyState( hWnd, %VK_DOWN) then ...
if TBGL_GetwindowKeyState( hWnd, %VK_LEFT) then ...
if TBGL_GetwindowKeyState( hWnd, %VK_RIGHT) then ...
-
this exactly what i do in tKeyboard.IsInput(). (called by tUI.ProceedInput)
I'm really clueless and i urge for a way to proceed input "international" without the need of keyboard_<language>.ini-files and my script knows what char to print if the user presses a key.
I'm certain that windows has some information about the user-keyboard stored somewhere, but i don't know where it's located nor how to read the information
-
This seems like kind of clue, investigating how to bring it to TB in easy to use manner:
http://stackoverflow.com/questions/6...current-keyboa
Petr
-
yes, reads as if it were a connection but i have no idea how to bring this to work in thinBasic.
-
not much changed.
I disabled the functions-list which was accessible via CTRL+^ or click onto the small button up-left in codewindows.
(too slow and was not working correct in all cases)
Autocomplete now behaves little different when if using Up+Down-keys.
( if for example the top line was selected, key-Up now selects the bottom line etc.)
As usual download at first post.
-
CTRL+^ is back again... but in another way:
I added keyboard-input to tControl_Treeview.
If you check out the Sub Codefield_KeyDown, Case Else... you'll find one more reason to have another way of retrieving keyboard-input since the char "^" is not to achieve the same way on all keyboards. I hope this works on all layouts using CTRL + the key where you have the "^" without to interfere in something else.
So if you press CTRL+^ in codewindow, thinICE will set focus on the codetree where you may
• select nodes via up- & down-keys now
• expand & collapse nodes on a tree using left- or right-keys
• call _Click() on a node using the Return-key.
-
René,
is it possible to change vertical scroll speed of editor windows when using mouse central wheel?
Actually (in my case) it just scroll up/down of few lines only.
I would like to have vertical scroll moving more lines.
Thanks
Eros
-
Yes you can. Hold shift to scroll mousewheel * 10 ^1, Ctrl to scroll mousewheel * 10 ^2, hold menukey * 10 ^4 or any combination of these
This applies to all tUi-controls that react on mousewheel ;-)
For codefield you also may hold Ctrl+Vk_up or vk_down to go to the next function
ps. Posted via smartphone, so excuse if not matches usual style ;)
-
another -unexpected- update.
To load included files in correct order I added 2 new functions to tControl_Treeview that allow to Get & Set a nodes position within their parents child-list.
See the effect if you load thinICE into thinICE: tControl_Codefield & tControl_Autocomplete are now correctly listed below the type they extend (tControl_Multiline)
Download here.
EDIT:
added deleting of log-file on Runtime-Errors
added reload of current project (click file-list on Explorer-Tab)
fixed UCASE of udt-subelements, now Mcase (as defined) again in Codetree & Autocomplete
-
Latest change:
thinICE does not run in periodic intervals by default any more, but in a straight loop.
Except YOU want it periodic, then enter a time for periodic intervals (in ms) in thinICE.ini,
Section:
If you want to set any value, simply divide 1000 by desired number of frames per second
Periodic=16
then it's around 60Hz
Periodic=10
should be 100Hz
etc.
You may as well change this in thinICE.tBasic before you run it, go to line 45
Code:
%PeriodicInterval = Val(INI_GetKey(APP_IniFIle, "Run", "Periodic", "0"))
replace 0 with whatever you want,
example 60 Hz:
Code:
%PeriodicInterval = Val(INI_GetKey(APP_IniFIle, "Run", "Periodic", TStr$(Int(1000/60)) ))