Search found 1437 matches

by St_W
Nov 11, 2018 22:11
Forum: General
Topic: Program 1 time starting
Replies: 5
Views: 193

Re: Program 1 time starting

On Windows this is usually done using a named Mutex, as described in this article by Microsoft:
https://support.microsoft.com/en-us/hel ... n-visual-c
by St_W
Nov 11, 2018 21:05
Forum: Community Discussion
Topic: Forum Moderators
Replies: 19
Views: 1019

Re: Forum Moderators

My biggest issue being a mod here would be not laughing over how riled up the autists in the forum get over the absolute most petty stuff. Yet, this is (by far) not the first discussion of that kind we had, so there must be some issue. Just ignoring it and globally accusing most of the forum member...
by St_W
Nov 11, 2018 17:35
Forum: Community Discussion
Topic: Resignation
Replies: 74
Views: 2988

Re: Resignation

Constrict them too much [...] and there is a chance that the moderator candidate are either inexperience or powerhungry dilettantes that will live with the rules to exercise power. There's probably an even higher change of misuse of priviledge if there are no rules and they can basically do what th...
by St_W
Nov 10, 2018 21:04
Forum: Projects
Topic: BASIC Studio for Linux (in development)
Replies: 125
Views: 7400

Re: BasicStudio for Linux (in development)

I have been thinking about that, but considered the project in a too early stage to use a VCS. I don't think that there is such a thing as "too early to use a VCS", especially as there's no need to publish it if you're using e.g. GIT/Mercurial (or any over DVCS), you can upload it to GitH...
by St_W
Nov 07, 2018 20:10
Forum: Windows
Topic: Getting mouse position not working as expected
Replies: 13
Views: 537

Re: Getting mouse position not working as expected

UEZ wrote:Hmm, as I don't have that issue what is your issue? I assume the mouse cursor is not at proper position (middle of the cross-hairs).
Exactly; mouse pointer position and crosshairs position differ on the screen with scaling <> 100%. It works fine on the other display with 100% scaling.
by St_W
Nov 07, 2018 14:05
Forum: Windows
Topic: Getting mouse position not working as expected
Replies: 13
Views: 537

Re: Getting mouse position not working as expected

Can you try this when you are in your office again if it displayed properly please? No, unfortunately doesn't fix the issue. However, I tried setting HiDPI override to "application" in the compatibility settings and this does work. So dpi-awareness seems to be the issue, but your fix does...
by St_W
Nov 06, 2018 17:34
Forum: Windows
Topic: Getting mouse position not working as expected
Replies: 13
Views: 537

Re: Getting mouse position not working as expected

I also tested it in the office :-) but with a laptop (150% scaling) connected to a monitor (100% / no scaling). Depending on whether the application (console) was positioned on the one display or the other it worked or didn't. As you do not face issues i assume it's related to HiDpi. Maybe the app j...
by St_W
Nov 06, 2018 15:50
Forum: Windows
Topic: Getting mouse position not working as expected
Replies: 13
Views: 537

Re: Getting mouse position not working as expected

I think it behaves as expected: Hit testing of a layered window is based on the shape and transparency of the window. This means that the areas of the window that are color-keyed or whose alpha value is zero will let the mouse messages through. https://docs.microsoft.com/en-us/windows/desktop/winmsg...
by St_W
Nov 06, 2018 15:27
Forum: Projects
Topic: BASIC Studio for Linux (in development)
Replies: 125
Views: 7400

Re: BasicStudio for Linux (in development)

Munair wrote:Suggestions and improvements are welcome.
Consider using a VCS instead of versioning zip files. GitHub, GitLab or BitBucket are some free options to share your repository.
by St_W
Nov 06, 2018 0:48
Forum: General
Topic: Russian Sorting Halves Danilin
Replies: 12
Views: 535

Re: Russian Sorting Halves Danilin

leopardpm wrote:had to add a line [...]

Code: Select all

const as integer true=1, false=0
which means you're using an outdated FreeBasic version ;-)
by St_W
Nov 05, 2018 11:50
Forum: Community Discussion
Topic: Donations
Replies: 4
Views: 300

Re: Donations

Munair wrote:[...], which begs the question, who pays for the server/website?
freebasic.net is hosted by Plasma (aka Jon Petrosky). I don't know whether he takes any donations, though.

As others already pointed out contributing in terms of code, documentation, etc. is probably most beneficial for FreeBasic.
by St_W
Nov 05, 2018 1:09
Forum: General
Topic: Illegal non-static member access
Replies: 16
Views: 353

Re: Illegal non-static member access

@dodicat: but the TForm1 "x" inside TForm1.GetMenuItem1Click() is a different one than "Form1" defined outside. As far as I understand the OP the goal is to make the object instance of the defining UDT available in the callback.
by St_W
Nov 04, 2018 22:49
Forum: General
Topic: Illegal non-static member access
Replies: 16
Views: 353

Re: Illegal non-static member access

The problem with your code in the first post is that a member method always takes a (hidden) this pointer, which is a pointer to the object instance. For example, "sub TForm1.MenuItem1Click()" is actually "sub MenuItem1Click(thisPtr as TForm1 Ptr)". That should explain why that m...
by St_W
Nov 04, 2018 22:25
Forum: General
Topic: SUB pointer and optional single ANY PTR parameter
Replies: 9
Views: 233

Re: Procedure pointer and optional ANY PTR parameter

The bug seems to be in line 1 (type t, instead of Dim As ...) Those are different things. What fxm is using is called a type alias (see https://freebasic.net/wiki/wikka.php?wakka=ProPgTypeAliases ; you may also know "typedef" from C). @dodicat: didn't know that such syntax is even legal/p...
by St_W
Nov 04, 2018 20:47
Forum: Community Discussion
Topic: Resignation
Replies: 74
Views: 2988

Re: Resignation

[...] the admins take the reports seriously. There are a few members that are diligent in pointing out the problem posts. Like this topic even, which at the moment could go either way, constructive learning, or endless rant. Is it too much to ask that members conduct themselves civilly, without a g...

Go to advanced search