Search found 1188 matches

by jj2007
Jun 14, 2019 10:44
Forum: General
Topic: Squares
Replies: 6887
Views: 403803

Re: Squares

albert wrote:Every time you cut the length in half the hardness doubles.
No, the hardness is a constant. Basics of engineering.
by jj2007
Jun 13, 2019 22:03
Forum: General
Topic: Squares
Replies: 6887
Views: 403803

Re: Squares

dodicat wrote:I was going to say that the Moh's hardness scale only applies to solids, but I see mercury documented as hardness 1.5.
The other liquid element at room temperature is bromine, but it is not listed.
The Mohs value for mercury is valid only for solid mercury at -38.89 Celsius grades and lower.
by jj2007
Jun 12, 2019 8:42
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 4846

Re: FBC's Cairo clock example error

@dodicat: I get Clock.bas(120) error 24: Invalid data types:

Code: Select all

        Var g=Right("0"+Str(counter-1),2)
by jj2007
Jun 11, 2019 17:21
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 4846

Re: FBC's Cairo clock example error

Nice, Knatterton!
Image
by jj2007
Jun 10, 2019 11:55
Forum: Projects
Topic: Windows only : another simple tool for cartesian plots
Replies: 4
Views: 1008

Re: Windows only : another simple tool for cartesian plots

marpon wrote:very nice, but as you only provide an exe, no real interest for me.
The source is MasmBasic and still very confused. Perhaps when it is ready I could create a static lib to make the code accessible for FreeBasic (Win32 only, it's Gdi+).
by jj2007
Jun 10, 2019 0:18
Forum: Projects
Topic: Windows only : another simple tool for cartesian plots
Replies: 4
Views: 1008

Re: Windows only : another simple tool for cartesian plots

I am also working on such stuff, see here. It seems that anti-aliasing is off with your plots, is that intentional?
by jj2007
Jun 09, 2019 8:17
Forum: Windows
Topic: Tiny GUi and tiny Designer
Replies: 25
Views: 3810

Re: Tiny GUi and tiny Designer

Xusinboy Bekchanov wrote:for me the priority is unicode.
Works fine for me (my OS is Italian):

Code: Select all

print "Добро пожаловать"   ' say hello
sleep
My editor saves the source as UTF-8 with BOM, that's the whole secret.
by jj2007
Jun 08, 2019 9:21
Forum: Windows
Topic: How to detect that window has been resized
Replies: 5
Views: 968

Re: How to detect that window has been resized

BTW, when compiling your program I have got the following warnings (1.05). ..warning 1(1): Passing scalar as pointer, at parameter 10 of CREATEWINDOWEX() ..warning 4(1): Suspicious pointer assignment Yes, we had that discussion before . FreeBasic and Windows aren't the best friends. Just ignore suc...
by jj2007
Jun 08, 2019 2:46
Forum: Windows
Topic: How to detect that window has been resized
Replies: 5
Views: 968

Re: How to detect that window has been resized

The reason why you don't see this is another: Somebody decided that the poor FB coder should not see all those overwhelmingly complex messages, and therefore wisely excluded some of them from WaitEvent. You can override this by using a standard template as shown below, but that is Windows only, of c...
by jj2007
Jun 08, 2019 2:35
Forum: General
Topic: Prefilled INPUT - editing variables rather than retyping the whole thing
Replies: 12
Views: 558

Re: Prefilled INPUT - editing variables rather than retyping the whole thing

MbMicroDll.dll is written in Assembler, and crappy heuristic scanners "detect" that as suspicious. VirusTotal says at https://www.virustotal.com/gui/file/5a9f93cda80a8daf7250792a4d18c7cd3f18699155e10d98ddf5721d0aad06d5/detection that 7 out of 71 AV engines flag it as suspicious. Strangely ...
by jj2007
Jun 07, 2019 20:40
Forum: General
Topic: Prefilled INPUT - editing variables rather than retyping the whole thing
Replies: 12
Views: 558

Re: Prefilled INPUT - editing variables rather than retyping the whole thing

Thank you Mr Swiss for your most valuable contribution.
by jj2007
Jun 07, 2019 19:14
Forum: General
Topic: Prefilled INPUT - editing variables rather than retyping the whole thing
Replies: 12
Views: 558

Re: Prefilled INPUT - editing variables rather than retyping the whole thing

Windows 32-bit: #inclib "MbMicroDll" ' download from http://www.jj2007.eu/images/MbMicroDll.dll #include "crt.bi" Declare Function InputString Cdecl Alias "GETINPUT" (destination As Zstring ptr, prefill As Zstring ptr) As zString ptr Dim As zString*200 dest Dim As zStri...
by jj2007
Jun 07, 2019 2:07
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6191

Re: Creating (scientific) plots via gnuplot

Truly impressive, dodicat! I tried to debug it using a MessageBox(), but #include "Windows.bi" causes loads of errors. And a simple print "hello" does not output anything; boh... Here is a version that does not use the cpu excessively. Search for fpsmax, it should be pretty clear...

Go to advanced search