PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 1 
 on: October 21, 2017, 10:34:12 PM 
Started by Paul Squires - Last post by Paul Squires
Just a simple 18 second video showing a form with 3 sample controls on it. 1 Label and 2 Buttons. It shows what selected and active controls look like (grab handles and selection rectangle). The video shows selecting the controls, resizing and moving controls.
 
You will notice that the video does not render the selection lasso rectangle very well. I assure you that in real life there are no screen artifacts.
 
https://youtu.be/xHPTb9nbnf4

I need to now add keyboard support so controls can be selected and moved just using the keyboard.


 2 
 on: October 20, 2017, 11:56:42 AM 
Started by Paul Squires - Last post by Josť Roca
Here: http://users.freebasic-portal.de/stw/builds/
Josť,
  How did you incorporate the 1.06 build with the 1.05 download?
Did you just use the fb.exe or ...?

James


As you like it. The main changes are in the compiler. There may be also a few changes in the include files.

 3 
 on: October 20, 2017, 08:06:09 AM 
Started by Paul Squires - Last post by Steven Hua
In https://sourceforge.net/projects/mingw-w64 released in August version 7.2 is a virus, do not know http://users.freebasic-portal.de compiler fbc whether to use this virus version , Because it detects a virus, see the test report.

http://users.freebasic-portal.de/stw/builds/win32/fbc_win32_mingw_0482_2017-10-19.zip This version may use the mingw-w64 7.2 version to compile it, August released mingw-w64 version 7.2 There is a virus.

recommend manually compile the FBC 1.06.0 version, using the MINGW-W64 version of 7.1 or Mingw-w64 6.4 or other older versions, compile with Msys or MSYS2, which is easy to compile.

fbc_win32_mingw_0482_2017-10-19. Zip lib library file is incomplete.

up: https://sourceforge.net/projects/mingw-w64  October 18 update,recompiled version 7.2

Good luck!

 4 
 on: October 20, 2017, 06:58:38 AM 
Started by Paul Squires - Last post by James Fuller
Here: http://users.freebasic-portal.de/stw/builds/
Josť,
  How did you incorporate the 1.06 build with the 1.05 download?
Did you just use the fb.exe or ...?

James

 5 
 on: October 19, 2017, 01:15:23 PM 
Started by Paul Squires - Last post by Josť Roca
Here: http://users.freebasic-portal.de/stw/builds/

 6 
 on: October 19, 2017, 12:57:29 PM 
Started by Paul Squires - Last post by exjoburgr
Thanks for the great Open source FB editor.

Quick question - the release notes mention FBC 1.06 - where can I get FreeBASIC 1.06?
I only see 1.05 on freebasic.net and the FB forums at freebasic.net/forum/

Sorry for only asking this now, I've been away for a few weeks.

 7 
 on: October 19, 2017, 11:18:53 AM 
Started by Josť Roca - Last post by Josť Roca
Updated the download in the first post with a modified CDispInvoke class.

Changes in the CVAR class to ease the use of variants could cause an ambiguos call to overloaded function Invoke. I have removed the old overloads that caused the error.

With the changes, you no longer have to specify the number of parameters when calling Invoke and also you won't need the use of CVAR except in some cases.

This example

Code: [Select]
#define UNICODE
#INCLUDE ONCE "windows.bi"
#INCLUDE ONCE "Afx/CCLRHost.inc"
USING Afx

' // Create an instance of the CCLRHost class
DIM pCLRHost AS CCLRHost

' // Create an instance of the .NET ArrayList class
DIM pDisp AS CDispInvoke = pCLRHost.CreateInstance ("mscorlib", "System.Collections.ArrayList")
IF pDisp.DispPtr = NULL THEN END

pDisp.Invoke("Add", 1, CVAR("First string"))
pDisp.Invoke("Add", 1, CVAR("Second string"))
pDisp.Invoke("Add", 1, CVAR("Third string"))

DIM nCount AS LONG =  pDisp.Invoke("Count").ValInt
FOR i AS LONG = 0 TO nCount - 1
   print pDisp.Get("Item", CVAR(i)).ToStr
NEXT

PRINT
PRINT "Press any key..."
SLEEP

becomes

Code: [Select]
'#CONSOLE ON
#define UNICODE
#INCLUDE ONCE "windows.bi"
#INCLUDE ONCE "Afx/CCLRHost.inc"
USING Afx

' // Create an instance of the CCLRHost class
DIM pCLRHost AS CCLRHost

' // Create an instance of the .NET ArrayList class
DIM pDisp AS CDispInvoke = pCLRHost.CreateInstance ("mscorlib", "System.Collections.ArrayList")
IF pDisp.DispPtr = NULL THEN END

pDisp.Invoke("Add", "First string")
pDisp.Invoke("Add", "Second string")
pDisp.Invoke("Add", "Third string")

DIM nCount AS LONG =  VAL(pDisp.Invoke("Count"))
FOR i AS LONG = 0 TO nCount - 1
   print pDisp.Get("Item", i)
NEXT

PRINT
PRINT "Press any key..."
SLEEP

 8 
 on: October 16, 2017, 08:37:21 AM 
Started by Josť Roca - Last post by Josť Roca
Updated the download in the first post with the changes and new classes recently discussed.

 9 
 on: October 14, 2017, 09:10:22 AM 
Started by Josť Roca - Last post by Paul Squires
Thanks Josť!
BTW, I am back to programming again so if you need anything added/changed to the editor then just let me know. I am working on the visual designer now.

 10 
 on: October 13, 2017, 10:36:52 PM 
Started by Josť Roca - Last post by Josť Roca
This example demonstrates how to process keystrokes and the mouse.

Pages: [1] 2 3 ... 10