Stupid ? time again.. :-) Winlift Inc

Started by James Padgett, November 22, 2010, 11:13:26 AM

Previous topic - Next topic

James Padgett

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 


James Padgett

I removed all the comments from the
skDialogAlert
skDialogError
skDialogInfo
skDialogYesNo
skDialogInput
skVersion

And now it compiles with no error.

James Padgett

#2
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 ) ?

James Padgett

I posted in Jose's forum as well...  I'm sure it's something simple..

James Padgett

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.

James Padgett

I did this.. but would a simple redraw do the same thing?

ShowWindow hwndform, %SW_MINIMIZE
ShowWindow hwndform, %SW_RESTORE

James Padgett

#6
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 ?

James Padgett

I don't get it.. now it works as it should without the Minimize and Restore ...


Paul Squires

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.
Paul Squires
PlanetSquires Software