Search found 373 matches

by Josep Roca
Oct 21, 2018 3:22
Forum: Windows
Topic: please test my crappy owner-draw menu
Replies: 35
Views: 4823

Re: please test my crappy owner-draw menu

Which is not compatible with Windows.
by Josep Roca
Oct 20, 2018 14:09
Forum: Windows
Topic: please test my crappy owner-draw menu
Replies: 35
Views: 4823

Re: please test my crappy owner-draw menu

> CreateSolidBrush() ask for RGB, so BGR is to be avoided or the colours won't match. Hi Pierre. Apparently you don't know that the FB's BGR function is, in fact, a RGB function. Because an incompatible RGB function is used by the FB's graphic library, RGB was named as BGR to avoid collisions. From ...
by Josep Roca
Oct 19, 2018 7:02
Forum: Windows
Topic: please test my crappy owner-draw menu
Replies: 35
Views: 4823

Re: please test my crappy owner-draw menu

Change the rgb's ro bgr.

Code: Select all

            hBr_MIIBckgrnd = CreateSolidBrush(bgr(255,255,255))
            hBr_MBckgrnd = CreateSolidBrush(GetSysColor(COLOR_MENU))
            hBr_MouseOver_Bckgrnd = CreateSolidBrush(bgr(255,200,200))
            hBr_MouseOver_Frame = CreateSolidBrush(bgr(255,0,0))
by Josep Roca
Oct 17, 2018 1:47
Forum: Windows
Topic: How to create a Panel control with win api ?
Replies: 11
Views: 294

Re: How to create a Panel control with win api ?

In the beginning it was called a group box, then came the Visual Basic guys and called it a frame control, and now the .NET guys call it a panel control. It's never too late to create confusion. However, the panel control has some differences with a groupbox or frame control, among them it has no ca...
by Josep Roca
Oct 16, 2018 23:35
Forum: Windows
Topic: How to create a Panel control with win api ?
Replies: 11
Views: 294

Re: How to create a Panel control with win api ?

A Panel control is a control that allows grouping of other controls.

You can't create a Panel control with CreateWindowEx for the simple reason that Windows doesn't natively provide one. The closest one is a GroupBox control, although it has not scroll bars.
by Josep Roca
Oct 08, 2018 17:45
Forum: Community Discussion
Topic: Would anyone find a FreeBASIC vs JavaScript side-by-side series useful (+is it allowed here)?
Replies: 24
Views: 791

Re: Would anyone find a FreeBASIC vs JavaScript side-by-side series useful (+is it allowed here)?

If the question is "Are you interested in using JS instead of FB?", my answer is not. If the question was "Are you interested in using JS with FB?", then the my answer would be yes.
by Josep Roca
Sep 30, 2018 13:30
Forum: Documentation
Topic: Union
Replies: 24
Views: 615

Re: Union

@fxm

There is a little typo in Example 2:

Print Hex(ubgra.blue) ' Resulr: 44

Resulr instead of Result.
by Josep Roca
Sep 29, 2018 12:32
Forum: Documentation
Topic: Union
Replies: 24
Views: 615

Re: Union

An example that I think it is easy to understand: UNION BGRA_UNION color AS COLORREF TYPE blue AS UBYTE green AS UBYTE red AS UBYTE alpha AS UBYTE END TYPE END UNION DIM ubgra AS BGRA_UNION ' Setting the individual color values... ubgra.red = &h33 ubgra.green = &hcc ubgra.blue = &h66 ' W...
by Josep Roca
Sep 29, 2018 9:14
Forum: General
Topic: Getting past the 15 decimal place limit of a double in FreeBASIC?
Replies: 11
Views: 426

Re: Getting past the 15 decimal place limit of a double in FreeBASIC?

> FreeBasic\bin\win32\ld.exe: cannot find -lgmp

When trying to use third party libraries, specially the open source ones, you have to surf the web to find them.

See: https://gmplib.org/

Be aware that the GNU licenses set firm restrictions on the use with non-free programs.
by Josep Roca
Sep 29, 2018 8:47
Forum: Documentation
Topic: Union
Replies: 24
Views: 615

Re: Union

"A priori" is also much used in Spanish (at least in Spain). Not suprisingly, since both French and Spanish come from Latin. In English you can use "beforehand". The OP is confusing "a priori" with priority and, after that, the nonsense begins... > Now, what is your fee...
by Josep Roca
Sep 29, 2018 7:42
Forum: Documentation
Topic: Union
Replies: 24
Views: 615

Re: Union

> At the very least un-perplex me and put the 'ty' in 'priority'. lol This change will perplex the rest of us. I think that it is correct as is. "One field set a priority" doesn't make any sense in this context and also doesn't look as good English. > I see no reason not to set multiple un...
by Josep Roca
Sep 28, 2018 1:58
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 13, 2018)
Replies: 448
Views: 38833

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated September 5, 2018)

Hi, thanks for your work! It not have the option to have those "+" or "-" places to click to contract or expand the view in For/next; If/Endif; etc? Menu |_ Options |_ Environment Options |_ Code editor |_ Check checkbox "Show fold margin"
by Josep Roca
Sep 21, 2018 0:22
Forum: Projects
Topic: Complex Numbers Procedures
Replies: 3
Views: 215

Re: Complex Numbers Procedures

New functions, including CNthRoot, that uses de Moivre's formula: ' ======================================================================================== ' Returns the absolute square (squared norm) of a complex number. ' Example: ' DIM z AS _complex = (1.2345, -2.3456) ' print CAbsSqr(z) ' Outpu...
by Josep Roca
Sep 20, 2018 8:52
Forum: Projects
Topic: Complex Numbers Procedures
Replies: 3
Views: 215

Re: Complex Numbers Procedures

Part II ' ======================================================================================== ' * Returns the complex exponential of a complex number. ' Example: ' DIM z AS _complex = (1, 1) ' z = CExp(z) ' PRINT CStr(z) ' Output: 1.468693939915885 +2.287355287178842 * i ' ====================...
by Josep Roca
Sep 20, 2018 8:50
Forum: Projects
Topic: Complex Numbers Procedures
Replies: 3
Views: 215

Complex Numbers Procedures

Procedures to work with complex numbers. Complex numbers are represented using the type _complex. The real and imaginary part are stored in the members x and y. Documentation: https://github.com/JoseRoca/WinFBX/blob/master/docs/Numeric%20datatypes/Complex%20Numbers%20Procedures.md Part I ' #########...

Go to advanced search