Search found 5907 matches

by dodicat
Oct 19, 2019 20:18
Forum: Tips and Tricks
Topic: Quick run tool - Windows
Replies: 20
Views: 1005

Re: Quick run tool - Windows

Thanks TT. Taskbar at the top, I never thought of that. I believe it can be at either side also? Line 60 (ish) SetWindowPos(consoleWindow,0,100,100,0,0,SWP_NOSIZE or SWP_NOZORDER ) should keep it clear. I have noted your suggestions. I could have a drop list of compiler options to choose from (fbedi...
by dodicat
Oct 19, 2019 19:42
Forum: Documentation
Topic: RGB and RGBA
Replies: 5
Views: 103

Re: RGB and RGBA

jj2007. I am using double to capture a 32 bit colour instead of ulong. if I use double for a loop variable also and pick ulong/double at random then double still has the edge (small) here with 32 bits, ulong has the edge (small) with 64 bits. screen 20,32 dim as integer w,h screeninfo w,h dim as dou...
by dodicat
Oct 19, 2019 18:49
Forum: Documentation
Topic: RGB and RGBA
Replies: 5
Views: 103

Re: RGB and RGBA

For me here using double is faster than ulong (By about 5% to 10%). Tested 32/64 gas (32) /gcc with optimisations or not. So is double (on both 32/64) a feasible alternative to ulong for a colour? And also, if I use double for the loop variable e.g. for x as double=0 to w-1 for y as double=0 to h-1 ...
by dodicat
Oct 19, 2019 17:42
Forum: General
Topic: Squares
Replies: 7013
Views: 423525

Re: Squares

Thanks Albert. Get back to it sometime, maybe after Brexit. We are all entranced here in Scotland watching the English parliament in action- every day. I daresay so is Wales and Ireland, N. and S. and maybe half of Europe. Your doodle looks like the Nautilus, forever out there roaming the ocean, min...
by dodicat
Oct 15, 2019 22:40
Forum: General
Topic: Squares
Replies: 7013
Views: 423525

Re: Squares

Albert. Getting away from compression for a bit, I have the same problem with fbide on Linux, only graphics code will [quick] run from the ide. fbedit has exactly the same problem.(all in wine). To get a console just wine cmd You can navigate around the file system (Linux and all). But Linux files w...
by dodicat
Oct 14, 2019 22:25
Forum: General
Topic: Squares
Replies: 7013
Views: 423525

Re: Squares

Albert. I installed wine in Linux. I didn't use fbide but my little quickrunner as posted last week. It runs OK with fbc.exe (the windows distro), but not with fbc (The Linux distro). Seems I cannot run Linux executable files from within wine. If I try say ./somefile from within wine cmd I get a pil...
by dodicat
Oct 13, 2019 13:34
Forum: Beginners
Topic: Controlling the window size of a compiled program?
Replies: 15
Views: 596

Re: Controlling the window size of a compiled program?

If you have a console numerical/statistical program, you wouldn't expect users to re do their console from cmd.exe properties appearance each time to run it. They would need to write down all their settings, change to your preference, then re-set to their original settings when they are done. In ess...
by dodicat
Oct 13, 2019 10:27
Forum: General
Topic: Squares
Replies: 7013
Views: 423525

Re: Squares

If you use single for v1 then it cannot fully represent ulong.
Double will get every ulong . (You could accurately use double for a 32 bit colour for instance).
If you use double then print culng(v1) will get back everything.
by dodicat
Oct 12, 2019 16:36
Forum: Windows
Topic: Windows 10 Printer Problems after latest updates.
Replies: 1
Views: 84

Re: Windows 10 Printer Problems after latest updates.

Windows 10 is riddled. Imagine if you have a POS system in your shop running win 10, and relying on the updates. You would soon return to a ledger. I notice that many businesses about the town use Linux, I usually try to get a peek at their monitors. Some of the old DOS systems are the most reliable...
by dodicat
Oct 12, 2019 13:56
Forum: Beginners
Topic: Controlling the window size of a compiled program?
Replies: 15
Views: 596

Re: Controlling the window size of a compiled program?

If you were using plots and charts e.t.c it will be a graphics window (screen something). If not then a console window. (I think QB64's console is a bit like screen 0 here, i.e. no vertical/horizontal scrolling) Here is a simplified version of my previous console code, which last for the session in ...
by dodicat
Oct 12, 2019 10:04
Forum: Beginners
Topic: Controlling the window size of a compiled program?
Replies: 15
Views: 596

Re: Controlling the window size of a compiled program?

Windows. For console you can change font size / console dimension for a session via code. #include "windows.bi" dim as HWND console = GetConsoleWindow() dim as RECT r GetWindowRect(console, @r) 'get the console size dim as integer s print "Original font size" print getconsolefont...
by dodicat
Oct 11, 2019 12:15
Forum: General
Topic: Squares
Replies: 7013
Views: 423525

Re: Squares

Regarding the Linux/fbide Albert, short of installing wine and trying out fbide for myself, I can't think of anything else, and I am not really a Linux user anyway these days. When I do use Linux (mainly to test run code), I use gedit set for language vb.net. It at least gives keyword highlighting a...
by dodicat
Oct 10, 2019 15:32
Forum: General
Topic: Useful defines
Replies: 24
Views: 1967

Re: Useful defines

Yea, Looks like the uinteger in 32 and 64 bits problem var x= rgb(255,255,255) +1 #print typeof(x) print x sleep '64 bits gives 4294967296 '32 bits gives 0 'x is uinteger in both cases Have to change the range parameters. function range(f as double,l as double) as double return int(Rnd*(((l)+1)-(f))...
by dodicat
Oct 10, 2019 13:11
Forum: General
Topic: Useful defines
Replies: 24
Views: 1967

Re: Useful defines

Agreed Mr Swiss. rgba covers 0 to rgba(255,255,255,255), so rnd* this range is good rgb covers rgb(0,0,0) to rgb(255,255,255) so rnd * rgb(255,255,255) is not good. Here are the three possibilities. But WHY does the 32 bit compiler fail completely here? #define range2(f,l) int(Rnd*(((l)+1)-(f)))+(f)...
by dodicat
Oct 09, 2019 18:40
Forum: General
Topic: Squares
Replies: 7013
Views: 423525

Re: Squares

Albert. Create a folder called bin in your home folder, not any deeper, but directly in your home folder. This bin folder automatically has special attributes, any executable in it is on the system path. pop your fb source code (.bas files) directly into this folder and use fbide as usual to run it/...

Go to advanced search