Eros, all works great on WinXP. I went through all the tabs and looked at the data all was there!
The menus worked just fine too!!
Hi all,
I need confirmations if some new features we are developing are working or not.
Attached to this post you will find a bundled exe that implements new User Interface CALLBACKS for dialogs and controls. It also implements Tab Control.
You should get an application like the attached image: a sort of easy address book with tabs. Data is loaded from a text file included in the bundled exe.
Can you please see if you get any problem/error running the application?
If yes, can you be so kind to state:
- description of the problem
- operating system version
Thanks a lot
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Eros, all works great on WinXP. I went through all the tabs and looked at the data all was there!
The menus worked just fine too!!
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
Thanks a lot Kent.
As indication: "Info", "References" and "Links" Tabs are just empty. Window should resize and all controls in main and child windows should resize accordling.
CPU usage should be very close to zero.
Creating Tabs and handling them will be easy like adding a control: only one line. ThinBasic will create child windows inside any Tab and will handle automatically tab switching and resizing.
Ciao
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Yeah, it worked fine in Vista too.
Operating System: Windows 10 Home 64-bit
CPU: Intel Celeron N4000 CPU @ 1.10GHz
Memory: 4.00GB RAM
Graphics: Intel UHD Graphics 600
Thanks a lot Matthew.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
I tried it on XP box and worked well,
the effect of edit field highlighting is very nice.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
It is all done using new Callbacks functionality that will be present in next release.
It will add precise control to every aspect of the User Interface without the filter of UI module.
For example the effect of coloring background color of text fields when they get focus is done in this way.
When adding a new field just indicate which is the callback function that will handle field events (obviously it is not mandatory):
[code=thinbasic]
'...
CONTROL ADD textbox, cbhndl, %CtrlID, , xPos, yPos, tWidth, lHeight, %WS_CHILD, , call cb_Text
'...
[/code]
Note that the name of the callback can be a function or a text expression resulting to a function name.
So the following will produce the same effect:
[code=thinbasic]
'...
CONTROL ADD textbox, cbhndl, %CtrlID, , xPos, yPos, tWidth, lHeight, %WS_CHILD, , call cb_Text
'... OR
CONTROL ADD textbox, cbhndl, %CtrlID, , xPos, yPos, tWidth, lHeight, %WS_CHILD, , call "cb" & "_Tex" & chr$(asc("t"))
[/code]
This open an extreme freedom in handling callbacks names.
The callback function adding coloring is the following:
[code=thinbasic]
'----------------------------------------------------------------------------
callback function cb_Text()
'----------------------------------------------------------------------------
'---Common to all fields
select case CBCTLMSG
case %EN_SETFOCUS
'---When textbox get focus, change colors
CONTROL SET COLOR CBHNDL, CBCTL, -1, rgb(233, 244, 250)
return %TRUE
case %EN_KILLFOCUS
'---When the control lost its focus, change colors to standard one.
CONTROL SET COLOR CBHNDL, CBCTL, 0 , rgb(255, 255, 255)
return %TRUE
end select
end function
[/code]
Of course inside the callback you can check many other aspects at every events that will occur.
I'm very excited about the many possibilities that will open callbacks introduction. The most important is the way a UI window will be handled in thinBasic: it will be the same as programming in real compilers.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Worked fine here too: WinXP.
I tried the program on Win98 and works ok,
just the highlighting behaves a bit differently, see screen.
It basically highlights the text, but not control as a such - this might be feature of older Windows, I am not sure.
But as you can see, after I highlighted all items, they did not swapped back to white background.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Eros:
It works fine for me under XP.
Pretty neat.
Don B.
XPS 1710
Bookmarks