Hi all,
Glad to hear the new info. It was around 14 months ago I tried ThinBasic for a hobby project. And later I found that, the UDTs ae under construction. So I shelved my project for some time...
Type: Posts; User: kcvinu; Keyword(s):
Hi all,
Glad to hear the new info. It was around 14 months ago I tried ThinBasic for a hobby project. And later I found that, the UDTs ae under construction. So I shelved my project for some time...
After posting the above text, I just tried the SetWindowText & SendMessage functions inside the CbDialog function. Amazingly, it worked very well. The same result. So I am assuming that ThinBasic's...
Hi all,
I don't know if anyone tried this already. This is a nice trick which you can change a normal thinbasic ansi window to a unicode window. For an experiment, I started with a normal gui window...
@Rene Miner,
Thanks for the reply. I am not sure I get your idea completely. I think SetProp and GetProp seems a good idea but how does it solve the problem I stated ?
My problem was the access...
You mean, like the Add reference dialog in Visual Studio ?
Thants a good idea.
Well, I ThinBundle has a problem. It wants us to turn off the antivirus to do the bundling.
I found the answer.
First, I experimented with OS_GetCommand at the middle of my script. Then I paste the code to start of the script and it worked. But It dosen't catch the string inside quotes....
Hi all,
I need to get the cmd line arguments in my script.
OS_GetCommand(1)
This is not working. Please help. Thanks in advance.
Hi Eros,
I was working on a GUI toolkit. But some imperfections in Thinbasic got in my way. They are as follows.
Private is not working. So now we can access any private variable from a type.
...
@Rene Miner,
I am sorry, I didn't get you. I am confused about "SetAt". What is it used for ? To set a pointer at new memory location ?
Hi all,
Last day, I was trying to create a static control (Label) for my gui toolkit. Eventually, I need to implement the AutoSize property for my tLabel type.
After a few minutes of google search,...
The reason I wanted to switch to a new IDE is,
1. When I scroll up & down with the laptop's touchpad, it scrolls horizontally.
2. If I change the editor font, It won't save that change. I...
I just tried VS Code successfully.
1. Set the syntax highlighting to VB for extensions like "*.tbasic", "*.inc", "*.unit".
2. There is an extension for vs code called code-runner. Install it.
3....
Hi all,
Is it possible to use a FreeBasic UDT in ThinBasic ? If so, please explain how ? Thanks in advance.
@Rene Miner,
I think that's the reason. Currently, "Private" is making no difference.
@Rene Miner,
Thanks for the details reply. So yeah, I miss-understood the concept behind _Set & _Get. I thought it is something like this VB .Net code.
Public Class Sample
Private _SomeValue...
Hi all,
I know this is an old thread. But I would like to tell you something. I am writting a GUI library in ThinBasic. Since, thinBasic UI is not supporting unicode, I wrote my own with full...
@Rene Miner,
Wow !! That's a great approach. Thanks for the code sample.
Could you please elaborate a little more about "Set" & "Get" ?
@Rene Miner,
When I read this words from your comment, I suddenly typed "Set" in thinAir and it recognize it as a keyword. But Then I search in Sample script folder to find an example with "Set"...
@Rene Miner & @Petr
The one and only easy workaround in front of me is this.
type Sample
iVal As Integer
sVal as String
bVal As Boolean
InitSample1 As Function
InitSample2 As...
@ReneMiner
Yes, obviously. That's why I comment out that line.But still it is working fine. That's strange.
tWindow is a type. Here is the typical usage.
Dim win As tWindow
@ReneMiner,
First of all thank you for the reply. Well, CreateGreadientBrush was a typo. Usually, I do copy & paste for function names. I corrected it to "Gradient". I was about to change the code...
Hi all,
I am trying to implement a gradient background color in tWindow class. Here is the the function for it.
Function tWindow.SetGradientBackColor(Byval c1 As Long, Byval c2 As Long)
...
Free version of power basic ? Is it ? Does Power Basic have Unicode support ?,
These are the things I attracted in a programing language.
1. Is it Free ? (At least a limited free version is...
Hi all,
I need to use overloaded constructors for RGB type. One ctor will receive a long parameter and another will receive 3 byte parameters. But now thinbasic is stop working when i use two...
@ReneMiner,
Thans a lot for the help. I will sure check your code sample. First of all, let me study your approach. I will come up with my questions. Thanks again.:D