Search found 729 matches

by UEZ
Jun 06, 2021 10:25
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 55
Views: 2186

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

The problem I discovered is only for Win7 - Win10 seems to work properly.
by UEZ
Jun 05, 2021 21:32
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 55
Views: 2186

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Well, only with screencontrol fb.SET_DRIVER_NAME, "GDI" '' good 'ol GDI it works as expected. Test script: 'Ported from yonatan's code @ https://www.dwitter.net/d/10076 to FB by UEZ build 2020-10-16 #Include "fbgfx.bi" Using FB Randomize Dim As Integer w = 420, h = 420 'screencon...
by UEZ
Jun 05, 2021 19:21
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 55
Views: 2186

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

In my WIndows 7 Test VM the screen is not dpi aware. When it's set to 125% the GUI is smaller accordingly. No problem with previous version.
by UEZ
Jun 02, 2021 6:36
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2021.06.19)
Replies: 1133
Views: 216790

Re: FreeBasic IDE-poseidonFB(Update 2021.05.30)

Of course, this is also possible, but with sub menus it would be clearer if you have plenty of versions. Sorry I’ve no plan to add this feature. I added an ’Edit' feature(double-click on item) at rev.448, rename the item now is possible Thanks, no problem - nothing important. Btw, I don't know if t...
by UEZ
May 30, 2021 17:18
Forum: Windows
Topic: Retrieving the command line parameters with __getmainargs
Replies: 3
Views: 289

Re: Retrieving the command line parameters with __getmainargs

The function __getmainargs exported by msvcrt.dll returns also the number of the command line parameters. Here is a quick example : #include "windows.bi" Declare Function __getmainargs Cdecl Alias "__getmainargs" (Byval As Integer Ptr,_ Byval As Zstring Ptr Ptr Ptr,Byval As Zstr...
by UEZ
May 30, 2021 14:21
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2021.06.19)
Replies: 1133
Views: 216790

Re: FreeBasic IDE-poseidonFB(Update 2021.05.30)

Kuan Hsu wrote:I think no need to add a sub menu, we can do like this:
Image

The tip will show it's content:
Image


Of course, this is also possible, but with sub menus it would be clearer if you have plenty of versions.
by UEZ
May 30, 2021 13:11
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2021.06.19)
Replies: 1133
Views: 216790

Re: FreeBasic IDE-poseidonFB(Update 2021.05.30)

Change at rev.447 I added an path option to select compiler in 'Custom Compiler Option...', we can select to change our defferent FBC version by using it, no need to change the 'Compiler Path' in 'Preference'. Edit the 'Custom Compiler Option...' first: https://i.imgur.com/nJpWUwK.png Then select i...
by UEZ
May 23, 2021 11:06
Forum: Windows
Topic: How to set icon
Replies: 6
Views: 322

Re: How to set icon

For SetMenuItemBitmaps and SetMenuItemInfo GetLastError is 0. For both the return value is 1. I meant SetMenuItemBitmaps (SetMenuItemInfo is not needed). So no error - interesting, but it confirms my suspicion that the console window doesn't let you do what you want. The odd thing is that I can rem...
by UEZ
May 22, 2021 22:13
Forum: Windows
Topic: How to set icon
Replies: 6
Views: 322

Re: How to set icon

jj2007 wrote:Which error messages do you get?

For which function call?

For SetMenuItemBitmaps and SetMenuItemInfo GetLastError is 0. For both the return value is 1.
by UEZ
May 22, 2021 22:07
Forum: Windows
Topic: How to set icon
Replies: 6
Views: 322

Re: How to set icon

Something like this: AppendMenuW(hSysMenu, MF_STRING Or MF_BYCOMMAND, id_Exit, "&Exit") SetMenuItemBitmaps(hSysMenu, id_Exit, MF_BYCOMMAND, LoadImage(...), LoadImage(...)) I doubt, though, that you can change the icon of the console window. I tried it also with SetMenuItemBitmaps but ...
by UEZ
May 22, 2021 20:57
Forum: Windows
Topic: How to set icon
Replies: 6
Views: 322

How to set icon

Any idea how to set the icon for the menu entry "Exit" from the console system menu? #include "windows.bi" #Ifdef __Fb_64bit__ #Inclib "gdiplus" #Include Once "win\gdiplus-c.bi" #Else #Include Once "win\gdiplus.bi" Using Gdiplus #Endif Dim Shared gdi...
by UEZ
May 19, 2021 20:13
Forum: Windows
Topic: Console Clear issue
Replies: 6
Views: 310

Re: Console Clear issue

OLEAUt32 is where COM strings/BSTRs come from. Something might be corrupting one of those somewhere. Maybe try setting the OANOCACHE environment variable to 1 then run your program (i.e. it has to be set before your app starts, your app can't set it for itself). That turns off the BSTR caching and ...
by UEZ
May 19, 2021 14:30
Forum: Tips and Tricks
Topic: Water droplets and ripples effect
Replies: 5
Views: 266

Re: Water droplets and ripples effect

srvaldez wrote:all I see is a screen-full of "This is a test for the FreeBasic. This is a test for the FreeBasic. This is a test for the FreeBasic"
nothing else


Press lmb and move it around. ;-)

My version: viewtopic.php?f=7&t=27352
by UEZ
May 18, 2021 19:03
Forum: Windows
Topic: Console Clear issue
Replies: 6
Views: 310

Re: Console Clear issue

Just an idea : try with less characters : dwConSize=25*80 or even less 100. Hmm, I need all the lines to provide some information. Anothing thing is that from time to time the program hangs for approx. 1 second and afterward it continues. Rarely it closes completely. I don't know how to debug it pr...
by UEZ
May 18, 2021 11:50
Forum: Windows
Topic: Console Clear issue
Replies: 6
Views: 310

Re: Console Clear issue

Thank you SARG for investigating. :-) As I'm absolute a C/C++ novice I would never get the idea that character to write to the buffer should be the ASCII code rather than the character itself, particularly there is nothing written on the website about the ASCII code. Anyhow, the clearing of the wind...

Go to advanced search