Search found 35 matches

by jmgbsas
Apr 20, 2022 1:17
Forum: Beginners
Topic: Can I check I understand file put & get correctly?
Replies: 12
Views: 7004

Re: Can I check I understand file put & get correctly?

Save and load a udt array. It is all in the help files. For no warnings/errors, fixed length strings and arrays. If you extend object and use OOP in general, then you may be in trouble, but I have not really tested this out yet. (If you use abstract then you won't be able even to create udt objects...
by jmgbsas
Nov 17, 2021 23:48
Forum: Windows
Topic: How to add menus to an MDI Child window
Replies: 14
Views: 5111

Re: How to add menus to an MDI Child window

@dodicat nice tiny example love it :-) I have a short tip for the ULONG FBGFX BGRA to OpenGL RGBA var p8 = cptr(ubyte ptr,@col):swap p8[0],p8[2] : glColor4ubv(p8) and you can leave the pixel loop much early ! I added all ascii codes 0 to 255 and cleaned the code a bit If you mix DrawString with oth...
by jmgbsas
Oct 10, 2021 18:46
Forum: Libraries & Headers
Topic: GUI library for Windows \ Linux (window9)
Replies: 1050
Views: 271713

Re: FBGUI library for windows 2

Another. Matrix values are printed Ok in listbox, which is scrollable Ok. Now I need scan fo keypress F1 , ( which opens second window with menu - sort matrix by XY column; by this choice is matrix completely resorted and again called window with listbox and printed rearranged all values of matrix)...
by jmgbsas
Sep 29, 2021 22:07
Forum: Community Discussion
Topic: FreeBASIC IDEs/Editors
Replies: 44
Views: 35756

Re: FreeBASIC IDEs/Editors

For some time now I wanted list the IDEs, editors available for FreeBASIC. Here are the most notable (sorted by date of knowledge) FBIde (2004) https://fbide.freebasic.net/ Author: vongodric Coded in: FreeBASIC Interface: Traditional Comment: #1 editor for FreeBASIC, the most popular freebasic IDE....
by jmgbsas
Sep 29, 2021 19:23
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 893
Views: 131442

Re: VisualFBEditor - IDE for FreeBasic

Hi Xusinboy: Just for your information, VisualFBEditor will not compile with latest GitHub FreeBASIC 1.0.9 compiled with WinLibs gcc-11.2.0. fbc "VisualFBEditor.bas" -s gui -x "../VisualFBEditor64.exe" "VisualFBEditor.rc" -i "D:\Dev\FB\Xusinboy\VisualFBEditor\MyFb...
by jmgbsas
Jul 24, 2021 19:29
Forum: Beginners
Topic: Can I define an array index using a variable?
Replies: 6
Views: 1295

Re: Can I define an array index using a variable?

fxm: The working code is: '================================== 'InputBox_GridMultiCol_Dev4.bas 'Shows a grid of InputBoxes 'in 9 columns 'Includes Row and Column Headings 'Shows variable numbers of Rows '---------------------------------- 'Posted on 29 Mar 2016 'Last Change on 31 Mar 2016 'Using Lot...
by jmgbsas
Jul 15, 2021 19:41
Forum: Community Discussion
Topic: my best effort
Replies: 149
Views: 42788

Re: my best effort

Passing an array of udt is always byref Passing udt is default byref, but you can choose byval. Type dat Field=1 nota As UByte dur As UByte vol As UByte pan As UByte pb As UByte inst As UByte End Type ' --------------- and then Type inst As dat trk(Any, Any) End Type sub R1( Roll as inst) print &qu...
by jmgbsas
Jul 15, 2021 18:59
Forum: Community Discussion
Topic: my best effort
Replies: 149
Views: 42788

Re: my best effort

Passing an array of udt is always byref Passing udt is default byref, but you can choose byval. Type dat Field=1 nota As UByte dur As UByte vol As UByte pan As UByte pb As UByte inst As UByte End Type ' --------------- and then Type inst As dat trk(Any, Any) End Type sub R1( Roll as inst) print &qu...
by jmgbsas
Jul 15, 2021 18:55
Forum: Community Discussion
Topic: my best effort
Replies: 149
Views: 42788

Re: my best effort

Lost Zergling wrote:Roll.trk is dat, not inst. Added : Maybe you could have a look here viewtopic.php?f=8&t=27695
about issues related to passing arrays (lzae exotic, bit complex and incomplete)
Thanks I will see the topic.....I am new beginners is a a big topic ...
by jmgbsas
Jul 15, 2021 18:31
Forum: Community Discussion
Topic: my best effort
Replies: 149
Views: 42788

Re: my best effort

Examples: Type dat Field=1 nota As UByte dur As UByte vol As UByte pan As UByte pb As UByte inst As UByte End Type ' --------------- and then Type inst As dat trk(Any, Any) End Type ' --------------------- Dim As inst Roll ' ------------- examples Sub si(i as inst) redim i.trk(2, 3) End Sub ' ---- ...
by jmgbsas
Jul 15, 2021 17:59
Forum: Community Discussion
Topic: my best effort
Replies: 149
Views: 42788

Re: my best effort

OK I admit it: I am new to oop. In prep for Paul's contribution I am trying to explain some stuff and ran into a question about passing UDT's through subs and functions. Ironic, since I'm actually coding the little game I mentioned using purely procedural programming. There's no OOP in sight, so do...
by jmgbsas
Mar 23, 2021 12:30
Forum: Windows
Topic: How to add menus to an MDI Child window
Replies: 14
Views: 5111

Re: How to add menus to an MDI Child window

HOW CAN I EXECUTE COMMANDS IN A MENU ON A WINDOWS SCREEN ScreenRes Graphics mode ? I was able to add a menu to ScreenRes, but it doesn't execute commands ... Is it impossible?' ------- You can't, easily. The graphics window doesn't listen for WM_COMMAND messages, so menu clicks are just ignored. Yo...
by jmgbsas
Mar 22, 2021 15:37
Forum: Windows
Topic: How to add menus to an MDI Child window
Replies: 14
Views: 5111

Re: How to add menus to an MDI Child window

(I can only reply to one post, but I can't create a new one ... that's why I always use reply) This is my question ,,, HOW CAN I EXECUTE COMMANDS IN A MENU ON A WINDOWS SCREEN ScreenRes Graphics mode ? I was able to add a menu to ScreenRes, but it doesn't execute commands ... Is it impossible?' ----...
by jmgbsas
Mar 16, 2021 22:51
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 107
Views: 28517

Re: FreeBASIC 1.07 Release Discussion

dodicat wrote:I have tweaked the cairo code slightly.
I show the mouse and a mapping to the original screen 1024,768.
Also I tested on 64 bits, OK.
Good!
by jmgbsas
Mar 16, 2021 15:54
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 107
Views: 28517

Re: FreeBASIC 1.07 Release Discussion

Discussion of FreeBASIC 1.07.x releases, issues, comments, remarks, etc. Full release announcement is posted at Version 1.07.0 released . Original opening post follows. Sorry SARG, this is a good topic to commandeer for the discussion :) -- Jeff ---- Hi coderJeff, Thanks for this new version. The l...