PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: James Padgett on November 22, 2010, 11:13:26 AM

Title: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 22, 2010, 11:13:26 AM
I am playing with Winlift  ( so don't put too much in to this ).. and I kind of remember something somewhere about line comments.. but I don't trust my memory that much any more.

I added Winlift.INC to my modules .. ( and nothing else ) ' so this could me my ignorance showing

With the following error  .. it looks like FF3 is not including the last line from the winlift.inc file ** only one declare shown but all appear to be missing the last line  .

Error 414 in
...\_remote_declares.inc(185:003): ")" expected
Line 185: DECLARE FUNCTION skDialogError LIB "WinLIFT.dll" ALIAS
"skDialogError"(_



From.. Codegen_remote_declares.inc

  DECLARE FUNCTION skDialogError LIB "WinLIFT.dll" ALIAS "skDialogError" ( _
  zCaption AS ASCIIZ, _
  zMessage AS ASCIIZ, _
  zButton AS ASCIIZ _                ' Text of the button (will be "Ok" if empty).


From: Winlift.inc

  DECLARE FUNCTION skDialogError LIB "WinLIFT.dll" ALIAS "skDialogError" ( _
  zCaption AS ASCIIZ, _              ' Text of the caption.
  zMessage AS ASCIIZ, _              ' Text of the message.
  zButton AS ASCIIZ _                ' Text of the button (will be "Ok" if empty).
  ) AS LONG 

Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 22, 2010, 12:19:08 PM
I removed all the comments from the
skDialogAlert
skDialogError
skDialogInfo
skDialogYesNo
skDialogInput
skVersion

And now it compiles with no error.
Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 22, 2010, 12:59:12 PM
I have gotten winlift to skin my app, but the left, right and bottom of the form don't show the skin unles I grab the resize handle and size the window just a little larger.

Winlift is pretty easy to use so far.. but dummys like me sure have to read a bit to use it... it does look good though...

I guess I'm allright putting the skInitEngine (  in the WM_CREATE of the form ) ?
Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 22, 2010, 08:47:38 PM
I posted in Jose's forum as well...  I'm sure it's something simple..
Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 23, 2010, 09:02:05 PM
How do I minimize and restore my main window form and where do I put the code?

I can show / hide a second form, but I can't make it work with the main form.
Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 23, 2010, 09:22:26 PM
I did this.. but would a simple redraw do the same thing?

ShowWindow hwndform, %SW_MINIMIZE
ShowWindow hwndform, %SW_RESTORE
Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 24, 2010, 07:16:01 AM
Patrice says:"
You must call the WinLIFT engine BEFORE you show the main window.
If you want, send me your FireFly code, then i could tell you what to do.
In a standard DDT or SDK application, WinLIFT must be call before you show the main window and before running the message pump."


I would assume this would need to happen after the WM_Create ?
Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: James Padgett on November 24, 2010, 09:21:01 AM
I don't get it.. now it works as it should without the Minimize and Restore ...

Title: Re: Stupid ? time again.. :-) Winlift Inc
Post by: Paul Squires on November 24, 2010, 05:54:07 PM
I am still in the Toronto airport.... been gone for the last few days. Hopefully you have figured out the answer? If not, I can try to help when I get home.