PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: FireFly 3 ctl-files  (Read 303 times)

Christian Weilguny

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 73
  • FF3 Newbie
FireFly 3 ctl-files
« on: April 14, 2018, 09:16:45 PM »

Hello,

I have a new problem width building a ctl-file.

I have to make the following definition:

prop_action = USER32.DLL|SendMessage|SendMessageA|BYVAL LONG //CTRL_HWND//|BYVAL LONG MESSAGE|BYVAL LONG //PROP_VALUE//|BYVAL LONG %null

where the PROP_VALUE is a string and I have to put the pointer to this string.

How can I do this?

Thanks in advance
Christian
Logged

Paul Squires

  • Administrator
  • Master FireFly Member
  • *****
  • Posts: 8366
  • Windows 10
    • PlanetSquires Software
Re: FireFly 3 ctl-files
« Reply #1 on: April 17, 2018, 08:59:14 AM »

Hi Christian,

It's been a long, long, long time since I've done any work in this area. You could try the following and see if it works:

prop_action = USER32.DLL|SendMessage|SendMessageA|BYVAL LONG //CTRL_HWND//|BYVAL LONG MESSAGE|BYVAL ASCIIZ //PROP_VALUE//|BYVAL LONG %NULL

Logged
Paul Squires
PlanetSquires Software
FireFly Visual Designer, WinFBE Editor

Christian Weilguny

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 73
  • FF3 Newbie
Re: FireFly 3 ctl-files
« Reply #2 on: April 17, 2018, 11:37:36 AM »

Hello Paul,

this way I tried first.
The control loads correct in Firefly and I can change the value.
Then a compiletime error  occured, because the type is not long.

kind regards
Christian
Logged

Christian Weilguny

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 73
  • FF3 Newbie
Re: FireFly 3 ctl-files
« Reply #3 on: April 17, 2018, 12:31:38 PM »

Now I have figured out if I use 'BYVAL VARPTR //PROP_VALUE//' I can compile the program and the value is correct used.
Unfortunatly every formatting after this in code (WM_Create) is not processed.
If I format the string in code I have to use STRPTR, but in the ctl-file this crashes Firefly loading the project.

Kind regards
Christian
Logged