|
Post by floyesoft on Sept 27, 2010 19:11:33 GMT 1
When i make a form With gfa ressource editor all is with Vista style.
But when i compile the form and Burton have an old style
Why?
|
|
kalle
New Member
Posts: 5
|
Post by kalle on Mar 8, 2011 20:17:47 GMT 1
It is my problem too. And imagelists are empty after compiling. Before executing I get an error message "Exe is out of date". I allready posted it in German in the german help section of this forum. Kalle
|
|
kalle
New Member
Posts: 5
|
Post by kalle on Mar 9, 2011 10:37:02 GMT 1
Once more me, meanwhile I tried some more things. If I start a code by "RUN" on the editor all works fine, but if I start the exe after compiling a big lot of Ocxes do not occur Is there anyone who can tell me, what I am making wrong? (I simply downloaded the newest version of GFA completely and unzipped it. Then I start the GFA32.Exe and I code, that's all, my system is WIN 7 Professional Service pack 1)
|
|
bereb
New Member
Posts: 8
|
Post by bereb on Apr 23, 2011 20:49:49 GMT 1
With Windows XP, to obtain XP-Style for the EXEs, I have to create a manifest file, copying the GfaWin32.exe.manifest and renaming it in <program name>.exe.manifest.
Perhaps this works with Win7 or Vista?
|
|
|
Post by 649psoft on May 27, 2011 21:59:04 GMT 1
There are many things in the windows multitasking os that can affect the performance compiled executable ocx initialization. Often this is due to internal task switching, messages and initalization of the memory for the Ocx.
If you re-run a program in the IDE the memory for the OCX object may not have been given fully back to windows and the previous object of the same name can still be in the system.
It does not always occour but to be safe where there are a lot of Ocx objects a Try Catch is used to allow the system to catch up on events.
This is the best practice:
'on an ocx form initialization with repeated use
Try 'test if the object currently exists in memory or throw exception frm2.SetFocus 'or Use IsObject?() is object in memory Catch 'if no then the form needs to be loaded again LoadForm frm2 Pause 2 'thread catch up if several processes in use DoEvents 'empty the o/s messages pending EndCatch
Sub frmMain_Editor_Close(Cancel?)
'for each form in the application 'to ensure release of system memory 'when the program properly exits
Try Set frm2 = Nothing Catch 'nop EndCatch
Try Set frmMain = Nothing Catch 'nop EndCatch
End 'Use the "End" command in the IDE
'Use the "Quit" command instead if compiled
EndSub
|
|
|
Post by 649psoft on Jun 6, 2011 1:54:37 GMT 1
kalle: I ran your code and I see the same thing.
The ImageList In the Form Editor is sparse and the Image format has to be perfect and identical. It could use improvement. Did nothing wrong but easy to go wrong and should compile the same as it appears.
Your example works if compiled with the following roundabout code:
//Imagelist
'hardcode ocx in listing and delete the ocx in the form editor then:
Ocx ImageList iml1 iml1.ImageWidth = 16 //x pixel or other equal sides iml1.ImageHeight = 16 //y pixel
//load the images using the :files tab from file
//add to imagelist loaded from file pictures under the :files tab
.ListImages.Add , , LoadPicture(":btn1") .ListImages.Add , , LoadPicture(":btn2") .ListImages.Add , , LoadPicture(":btn3")
and toolbar works when compiled.
|
|