Posted: Wed Jun 20, 2012 4:21 pm Post subject: Change Form Title of ce.createForm with Free Pascal
I currently developing a CE Plugin. I am creating a form with ce.createForm and want to change the Caption of the form. In Lua i could use the setProperty methode but this is not available in your SDK.
In general. Can i call CE internal functions from the plugin?
Joined: 09 May 2003 Posts: 19983 Location: The netherlands
Posted: Wed Jun 20, 2012 4:58 pm Post subject:
It's recommended to create your own window with it's own message handler in your dll instead of using the plugin's createForm export if you wish to do more advanced things, like changing the caption...
Alternatively, you could do a lua_call with the luavm you can get from the pluginexport and call setProperty and all other functions from there.
Note that if you are in a different thread, make use of MainThreadCall so the lua command gets called from inside the main thread
And alternate method 2 (not recommended): Get the same lcl and fpc version that ce was build with and use the TForm class to control that object.
Again, do all commands using a MainThreadCall call. The gui components are not threadsafe except the few I explicitly exported _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum