-
Every day some news:
today i added "UI_3dTemplate.tBasic" that demonstrates how to combine TBGL-UI and scene+entity-system.
Therefore some additional "tScene.tBasicU" in the download which handles easy setup of generic scenes with 1 lit camera.
Also minor changes to the TBGL_Requester.exe:
now it's mandatory to locate it next to the app to start (same path).
This prevents from too long subfolder-names which OS_Command can not handle.
And of course fixes etc. to thinICE and tUI
-
Amazing! Rene, I need to find a way to make it easier to enter characters - the keyboard profiles are okay, but I noticed some unusual behavior on different PCs, such as right arrow behaving as constantly pressed on one specific PC. If you have any hints or ideas, let me know.
Petr
P.S. Cool 3D demo!
-
Strange, i have no idea what the cause is.
%VK_Right is of Keyboard.KeyTypeEdit which gets treated like Keyboard.KeyTypeChar.
If you like, you may have a look at unit tKeyboard.IsInput().
There's nothing special about any key- all are treated the same - except Shift/CTRL/Menu-keys
KeyDown-events get repeated on KeyHold after a while -
therefore some Static RepeatDown in that method -
IsInput() gets called from tUI.ProceedInput() where the results of IsInput (tMouse + tKeyboard) get passed to the control that is supposed to receive the input.
However, you may test the whole thing without periodic function.
Goto TBMain()
Code:
' -- comment these 2 lines:
' >>> TBGL_PeriodicBindFunction( Win.hWnd, "TBMain_Period", %PeriodicInterval )
' >>> TBGL_PeriodicProcessFunction(Win.hWnd)
' -- then paste this as classic main-loop here:
' (between "AllControlsCreate()" and " TBGL_ShowCursor( On )")
While All( TBGL_IsWindow( Win.hWnd ), keepRunning )
Win.NewInfo()
UI.ProceedInput()
TBGL_ClearFrame
UI.Render()
Mouse.DrawPointer()
TBGL_DrawFrame
Wend
-
3 Attachment(s)
autocomplete now smart enough to suggest correct enclosure when you type something like "End ".
-
Need thinBasic v 1.9.16.7 now - added a little For Next When -tuning to speed up whatever possible :)
-
Hi René,
few problems I found:
- typing some code into thinICE seems Y and Z keyboard keys are inverted. When I press Y I get Z and the other way round.
- runtime error when typing TYPE and then END TYPE: openType variable is not defined in TokenFindStart fucntion source tControl_Codefield.tBasicU
Ciao
Eros
-
thanks for the hint- i really forgot to dim a variable that i used. Uploaded fixed version
For the y/z-keyboard-thing:
In the beginning you get prompted for screen-resolution/window-size and keyboard-layout.
Currently i have only the layouts for 4 kinds of keyboards. There are files as "keyboard_[language].ini" which just hold the %VK-equates and the char to print for this key,
depending on no shift (lower) shift(upper) or right menu-key (AltGr)
Sadly not an "keyboard_italian.ini", but czech, french, german and english(US).
(Maybe i find the thread were Petr was so kind to make a czech version some time ago, there i had some script that makes it easier to create a keyboard-layout-ini-file...)
Delete the thinICE.ini-file to change the layout again on next startup or replace the setting in thinICE.ini with your desired layout-file.
-
Thanks.
I'm using English keyboard and fixed those lines in Keyboard_EnglishUS.ini:
Code:
VK_Y_Lower=z
VK_Y_Upper=Z
VK_Z_Lower=y
VK_Z_Upper=Y
Now typing is fine.
I tried to push at 1920x1080x32 resolution and thinICE crash just after opening the main TBGL window
Ciao
Eros
-
strange... i'm investigating this...
use smaller resolution & windowed - the TBGL-window is sizeable anyway.
(you also can use F12-key or double-click on statusbar to toggle window-size)
-
Yes, yes.
Mine was just a ... push to the limit test :)