Page 100 of 103
Re: Setting a parent window other than the main window?
Posted: Fri Nov 16, 2012 10:57 am
by gnozal
jassing wrote:I have a pureform project with 1/2 dozen windows.
Window#1 is defined as main.
When I open up window#2 (not a child window); it can then open up window#3 -- I want this window to have window#2 as parent, not Window#1 -- is there a way to do it pureform so I don't have to change it in the source?
No, you may only have one main window.
Re: Setting a parent window other than the main window?
Posted: Fri Nov 16, 2012 5:39 pm
by jassing
gnozal wrote:No, you may only have one main window.
Hmm. I am able to have multiple "main" windows, but it only will let me set windows to be child of one.
Maybe a wish list?
Re: Setting a parent window other than the main window?
Posted: Sat Nov 17, 2012 9:51 am
by gnozal
jassing wrote:gnozal wrote:No, you may only have one main window.
Hmm. I am able to have multiple "main" windows, but it only will let me set windows to be child of one.
You may only have one main window.
The other windows may be child windows (of the main window) or not ('Toggle child window' in 'Project' menu).
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Sat Nov 17, 2012 2:36 pm
by jassing
I found a work around where I can set the window to be a child of another after the window is created...
Code infusion and CR
Posted: Mon Nov 19, 2012 8:07 am
by Maitre_Kanter
Hello,
I'm using Pureform (without JaPBe), in code infusion,
when I put a CR as below :
and I save as PB file using Pureform, the CR between line1 and line 2 is missing.
When I edited the generated PB file, I notice that only one CR is present (the one after Line1).
Arnaud.
Re: Code infusion and CR
Posted: Mon Nov 19, 2012 9:31 am
by gnozal
Maitre_Kanter wrote:Hello,
I'm using Pureform (without JaPBe), in code infusion,
when I put a CR as below :
and I save as PB file using Pureform, the CR between line1 and line 2 is missing.
When I edited the generated PB file, I notice that only one CR is present (the one after Line1).
Arnaud.
Should be fixed in build 437.
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Mon Nov 19, 2012 7:02 pm
by Maitre_Kanter
[FIXED] : Code Infusion and CR
Thank you Monsieur !
PureFORM 1.99 - F5 KeyPress (WM_KEYUP vs WM_KEYDOWN)
Posted: Tue Nov 20, 2012 4:41 am
by Maitre_Kanter
Hi Gnozal,
Is it possbile to detect F5 to activate Build Mode / Preview Mode with WM_KEYDOWN.
The Event WM_KEYDOWN appears many times when I press F5 during seconds.
The problem can be corrected using WM_KEYUP instead of WM_KEYDOWN.
Kanter.
Re: PureFORM 1.99 - F5 KeyPress (WM_KEYUP vs WM_KEYDOWN)
Posted: Tue Nov 20, 2012 8:49 am
by gnozal
Maitre_Kanter wrote:Is it possbile to detect F5 to activate Build Mode / Preview Mode with WM_KEYDOWN.
Actually, the keys are detected with GetAsyncKeyState_() in the main loop, with a minimum of 50 ms between 2 keystrokes.
I don't remember why (2006 !), but it was the best solution at the time.
getting "toggle child window" to stick?
Posted: Mon Dec 03, 2012 3:59 pm
by jassing
Is it possible to get "Toggle child window" to stick between sessions?
while editing a project, I am always going to to screen where I do not want to have a parent defined and select "toggle child window" -- is there a way to get this preference to 'stick'?
Re: getting "toggle child window" to stick?
Posted: Tue Dec 04, 2012 11:08 am
by gnozal
jassing wrote:Is it possible to get "Toggle child window" to stick between sessions?
while editing a project, I am always going to to screen where I do not want to have a parent defined and select "toggle child window" -- is there a way to get this preference to 'stick'?
It does "stick" here.
The [Main Window], [Child Window] and 'non child window' status is saved with the form (*.pbf file) [if a main window is defined].
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Wed Dec 05, 2012 12:49 am
by Maitre_Kanter
gnozal wrote:Actually, the keys are detected with GetAsyncKeyState_() in the main loop, with a minimum of 50 ms between 2 keystrokes.
I don't remember why (2006 !), but it was the best solution at the time.
see below a little piece of code for Keystroke management using GetAsyncKeyState_ API :
Code: Select all
;- enumeration (Windows)
#KF_UP = $8000
#KF_RECENTLY_PRESSED = $0001
;- enumeration (Owner)
#KEY_UP = 0
#KEY_DOWN = 1
#KEY_STILL_DOWN = 2
;- Globals
Global F5_KeyCurrentState.u
Global F5_KeyTrigger.i
OpenWindow( 0 , 20 , 20 , 20 , 20 , "Test KeyUp" )
;{- Event loop
Repeat
;:PureFORM:Loop:Start:
Delay(1)
WaitWindowEvent()
F5_KeyCurrentState = GetAsyncKeyState_(#VK_F5)
If ( F5_KeyCurrentState > 0 )
Select ( F5_KeyCurrentState & (#KF_UP | #KF_RECENTLY_PRESSED ))
Case #KF_UP | #KF_RECENTLY_PRESSED
F5_KeyTrigger = #KEY_DOWN
Case #KF_UP
F5_KeyTrigger = #KEY_STILL_DOWN ;repeat
EndSelect
Else
If ( F5_KeyTrigger >= #KEY_DOWN )
F5_KeyTrigger = #KEY_UP
Debug "#KEY_UP"
EndIf
EndIf
;:PureFORM:Loop:End:
ForEver
"KEY_UP" appears only when F5 is released.
Re: getting "toggle child window" to stick?
Posted: Wed Dec 05, 2012 4:51 am
by jassing
gnozal wrote:The [Main Window], [Child Window] and 'non child window' status is saved with the form (*.pbf file) [if a main window is defined].
bummer, because everytime I open it; I have to re-toggle it off.
Has happened in at least 3 project files...
Is there a way to copy objects & code to a new window/project? Or would I need to recreate the project?
thanks.
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Wed Dec 05, 2012 10:06 am
by gnozal
Maitre_Kanter wrote:...
see below a little piece of code for Keystroke management using GetAsyncKeyState_ API :
...
Thanks, but I can't find any reference to #KF_RECENTLY_PRESSED ?
Re: PureFORM 1.99 (yet another FORM designer)
Posted: Wed Dec 05, 2012 10:14 am
by Maitre_Kanter
gnozal wrote:Maitre_Kanter wrote:...
see below a little piece of code for Keystroke management using GetAsyncKeyState_ API :
...
Thanks, but I can't find any reference to #KF_RECENTLY_PRESSED ?
Corrected, missing Windows Definitions in previous post:
Code: Select all
#KF_UP = $8000
#KF_RECENTLY_PRESSED = $0001