flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > IDE Development > FreshLib GUI, window is no visible

Author
Thread Post new topic Reply to topic
goranv



Joined: 17 Apr 2016
Posts: 5
FreshLib GUI, window is no visible
When create FreshLib GUI, compile is ok, but window is no visible.

I use Fresh IDE 2.2.5. Windows 10 x64
Post 17 Apr 2016, 17:29
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3415
Location: Bulgaria
Hm. Can you explain more detailed? What are you trying to compile? Some of the examples? New project from template? Your own code?
Post 17 Apr 2016, 23:15
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
goranv



Joined: 17 Apr 2016
Posts: 5
Compile default code when is project created without change.
Post 17 Apr 2016, 23:47
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3415
Location: Bulgaria
@goranv: Look, my telepathy device is broken right now and I can't read your thoughts. Please, provide more detailed report of the problem.

If your english is bad, I can use Russian or Bulgarian as well. Even google translator will be better than a report of 9 words.
Post 17 Apr 2016, 23:58
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
goranv



Joined: 17 Apr 2016
Posts: 5
Compile and run project is ok, in TaskManager i find main project, but window of project is not visible.
This is default code created by Fresh IDE:


FILE: main.asm

; _______________________________________________________________________________________
;| |
;| ..:: Fresh IDE ::.. template project. |
;|_______________________________________________________________________________________|
;
; Description: FreshLib portable GUI application.
;
; Target OS: Any, supported by FreshLib
;
; Dependencies: FreshLib
;
; Notes:
;_________________________________________________________________________________________

include "%lib%/freshlib.inc"

@BinaryType GUI, compact

include "%lib%/freshlib.asm"

; include your includes here.
include "MainForm.asm"

start:
InitializeAll

create [pApplication], TApplication

stdcall CreateFromTemplate, frmMainForm, 0

set [pApplication], TApplication:MainWindow, frmMain

stdcall Run

FinalizeAll
stdcall TerminateAll, 0



-------------------------------------------------------------------
FILE: MainForm.asm


; _______________________________________________________________________________________
;| |
;| ..:: Fresh IDE ::.. template project. |
;|_______________________________________________________________________________________|
;
; Description: FreshLib portable GUI application; Main form source file;
;
; Target OS: Any, supported by FreshLib
;
; Dependencies: FreshLib
;
; Notes:
;_________________________________________________________________________________________

iglobal
frmMainForm:
ObjTemplate tfEnd, TForm, frmMain, \
x, 100, \
y, 50, \
width, 320, \
height, 240, \
Visible, TRUE, \
Caption, 'FreshLib portable application.'
endg
Post 18 Apr 2016, 00:34
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3415
Location: Bulgaria
I understand now. It is a new project created from the template "FreshLib portable GUI application".

The problem is probably some bug in the library, that manifests itself only on Windows 10. I will try to test it here and fix as soon as possible, but first I have to install Windows 10 somewhere. Smile

P.S. Please, when posting source code on the forum, enclose it in "[code]" tags. This will make it look much better. Smile
Post 18 Apr 2016, 04:44
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
goranv



Joined: 17 Apr 2016
Posts: 5
This same problem now i have in Visual Studio 2015 if use linker flag YES(/NODEFAULTLIB). This problem i saved with replace code 'ShowWindow(hWnd, nCmdShow);' with ShowWindow(hWnd, SW_SHOW);. I dont know how this solution import here in fasm.
Post 20 Apr 2016, 20:01
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3415
Location: Bulgaria
I still can't find working Windows 10, but please, test the following quick hack. Include in "main.asm", just before the line "stdcall Run" (line 33) the following code:

Code:
        set     [frmMain], TWindow:VisibleFALSE
        set     [frmMain], TWindow:VisibleTRUE

Post 21 Apr 2016, 05:08
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
goranv



Joined: 17 Apr 2016
Posts: 5
No working.
Post 21 Apr 2016, 13:18
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.