PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 1 
 on: April 20, 2018, 05:26:27 PM 
Started by Paul Squires - Last post by SeaVipe
Thanks for the update, Paul.

 2 
 on: April 20, 2018, 04:18:33 PM 
Started by Paul Squires - Last post by Paul Squires
Finally finished the coding for saving forms/controls and then loading/restoring them. I am very happy with the resulting code. It is simple and works great.
I need to work on the Property List now because it is pretty rudimentary at this point.
Just to let you guys that progress is being made... and should be much faster now that the busiest time of the year is behind me for my day job.

 3 
 on: April 19, 2018, 05:14:19 PM 
Started by Vinod Chandran - Last post by Josť Roca
The "magic" is casting.

Code: [Select]
Type MyType
m_String As String
Declare Constructor(Byval sParam As String)
DECLARE OPERATOR CAST () BYREF AS STRING
End Type
Constructor MyType(Byval sParam As String)
m_String = sParam
End Constructor

OPERATOR MyType.CAST () BYREF AS STRING
   OPERATOR = m_String
END OPERATOR

Dim sample As MyType = "enter man"
Print sample

 4 
 on: April 19, 2018, 05:10:02 PM 
Started by Vinod Chandran - Last post by Vinod Chandran
Hi,
I am i missing this ?
Code: [Select]
Declare Operator Print(Byval udtName as MyType)And ...
Code: [Select]
Operator MyType.Print(Byval udtName as MyType)
    Print udtName. m_String
End Operator

 5 
 on: April 19, 2018, 05:04:10 PM 
Started by Vinod Chandran - Last post by Vinod Chandran
Hi Jose Roca,
Code: [Select]
Dim sample As CWSTR = "My Sample String"
Print sample
This will print "My Sample String" on screen. I know that cwstr is a udt. What is the magic behind this ? I mean when i try to write a udt like this
Code: [Select]
Type MyType
m_String As String
Declare Constructor(Byval sParam As String)

End Type
Constructor MyType(Byval sParam As String)
m_String = sParam
End Constructor
 
Dim sample As MyType = "enter man"
Print sample
It result in an "Invalid data type " error. I know that i am missing so many things in my constructor. I have posted this code only for expressing my idea because, i knew that i cant really express this idea through words. English is not my first language. Thats why the subject title look weird. Could you please explain me how to do this ?

 6 
 on: April 19, 2018, 03:50:52 PM 
Started by Paul Squires - Last post by Paul Squires
Available on GitHub:  https://github.com/PaulSquires/WinFBE/releases

Version 1.6.0 (April 19, 2018)
- Added: italian.lang lanuage file thanks to Massimiliano Argenti from the PlanetSquires forum.
- Added: czech.lang lanuage file thanks to Norcom (Robert) from the PlanetSquires forum.
- Fixed: QuickRun in top menu now correctly disabled when a Project is active.
- Fixed: Endless loop if file remained opened in editor but deleted manually from disk.
- Fixed: Corrected instances where the Autocomplete popup list would appear when it should not.
- Fixed: Corrected saving/restoring Explorer width when moving between high/low resolution monitor settings.

 7 
 on: April 17, 2018, 12:31:38 PM 
Started by Christian Weilguny - Last post by Christian Weilguny
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

 8 
 on: April 17, 2018, 11:37:36 AM 
Started by Christian Weilguny - Last post by Christian Weilguny
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

 9 
 on: April 17, 2018, 08:59:14 AM 
Started by Christian Weilguny - Last post by Paul Squires
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


 10 
 on: April 14, 2018, 09:16:45 PM 
Started by Christian Weilguny - Last post by Christian Weilguny
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

Pages: [1] 2 3 ... 10