fxm wrote:I think the only cause of this bug in fbgfx is the handle change on a minimized graphic window.
Minimized windows are not taken in charge in FB?
fxm wrote:I think the only cause of this bug in fbgfx is the handle change on a minimized graphic window.
Code: Select all
'******************************************************************************
'******************************************************************************
'allg. Destruktor**************************************************************
'sub Maindestructor destructor
' if sGUI.SysEvents then delete sGUI.SysEvents
'end sub
'******************************************************************************
'******************************************************************************
'Hauptprogramm*****************************************************************
using sGUI
screen 19,32
SysEvents=new SystemEvents
dim as string key
do
sleep 1
print ".";
key=GetInkey
if key<>"" then print key;
loop until key=chr(27)
delete SysEvents
Code: Select all
' WIN Console Program, aka FBC -s console ...
Width 80, 220 ' it doesn't matter with or without Width Statement
For i As Long = 0 To 50
Locate i+1, 1
Print "Step Value: " & i; ' <--- here is the Problem !!!
'Print "Step Value: " + Str(i); ' <--- here is the Problem also !!!
'Print "Step Value: "; Str(i); ' <--- here is the Problem also !!!
Next
Print : Print "Any Keypress EXIT's Program ..."
Sleep : End 0
Output: wrote:Step Value: 0
Step Value: 1
Step Value: 2
Step Value: 3
Step Value: 4
Step Value: 5
Step Value: 6
Step Value: 7
Step Value: 8
Step Value: 9
Step Value: 10
Step Value: 11
Step Value: 12
Step Value: 13
Step Value: 14
Step Value: 15
Step Value: 16
Step Value: 17
Step Value: 18
Step Value: 19
Step Value: 20
Step Value: 21
Step Value: 22
Step Value: 23
Step Value: 24Step Value: 25Step Value: 26Step Value: 27Step Value: 28Step Value
: 29Step Value: 30Step Value: 31Step Value: 32Step Value: 33Step Value: 34Step V
alue: 35Step Value: 36Step Value: 37Step Value: 38Step Value: 39Step Value: 40St
ep Value: 41Step Value: 42Step Value: 43Step Value: 44Step Value: 45Step Value:
46Step Value: 47Step Value: 48Step Value: 49Step Value: 50
Any Keypress EXIT's Program ...
fxm wrote:'LOCATE' which does not induce a scrolling up of screen (when requesting a positioning below the last line) as does a CR/LF.
DOS386 wrote:> but MinGW/32 version does NOT work on ME due to "_localtime64" import
> ... also the binary is full of CMOVNTQ's so it wouldn't work on P2 and even less on 80386
Code: Select all
#define typename1 byte
#if typename1 = integer
#endif
#define typename2 short
#if typename2 = object
#endif
#define typename3 object
#if typename3 = integer
#endif
fxm wrote:Bug or not bug?
The built-in type 'Object' cannot be used in a conditional '#If' expression, both as symbol/parameter value or string literal:Compiler output:Code: Select all
#define typename1 byte
#if typename1 = integer
#endif
#define typename2 short
#if typename2 = object
#endif
#define typename3 object
#if typename3 = integer
#endif
....\FBIde0.4.6r4_fbc1.05.0\FBIDETEMP.bas(6) error 20: Type mismatch in '#if typename2 = object'
.....\FBIde0.4.6r4_fbc1.05.0\FBIDETEMP.bas(10) error 20: Type mismatch in '#if typename3 = integer'
This behavior appears with fbc version 0.90.0?
(with the new keywords 'Virtual', 'Abstract', and 'Override')
Code: Select all
#macro test(typename)
#if typename = OBJECT
Print "OK"
#else
Print "NOK"
#endif
#endmacro
test(integer)
test(object)
Code: Select all
#macro test(typename)
#if x##typename = XOBJECT
Print "OK"
#else
Print "NOK"
#endif
#endmacro
test(integer)
test(object)
Code: Select all
NOK
OK
Code: Select all
type mystruct
dummy as integer
declare constructor()
end type
#if mystruct = undeclaredid '' error: type mismatch
#print "equal"
#else
#print "not equal"
#endif
Code: Select all
#if typeof(integer) = typeof(object)
#print "equal"
#else
#print "not equal"
#endif
Return to “Community Discussion”
Users browsing this forum: No registered users and 10 guests