Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


CEMemo on MDIChild Form

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue Apr 23, 2019 12:08 pm    Post subject: CEMemo on MDIChild Form Reply with quote

Hi DB and all..

let say I created two forms, f and f2

Code:
f.FormStyle = 'fsMDIForm'
f2.FormStyle = 'fsMDIChild'


My questions:

1. If I create a CEMemo on f then I can be typing directly on the CEMemo, bur no if CEMemo created on f2. Why?
2. Is there any way to open 'Strings Editor Dialog' via lua script ?.

Thanks

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25785
Location: The netherlands

PostPosted: Tue Apr 23, 2019 1:38 pm    Post subject: Reply with quote

1: i never use mdi myself so can't help
2: no, not that specific dialog, but you can always create a form with a memo yourself

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue Apr 23, 2019 7:11 pm    Post subject: Reply with quote

Thanks, DB,

Here a sample for MDI form.

Code:
f = createForm()
f.Width = 600
f.Height = 600
f.Position = 'poScreenCenter'
f.Color = '0xfffffff'
f.Caption = 'Main Form'
f.FormStyle = 'fsMDIForm'
f.DefaultMonitor = 'dmMainForm'
f.BorderStyle = 'bsSingle'

b = createButton(f)
b.setSize(70,30)
b.setPosition(10,10)
b.caption = 'Test 1'
b.onClick = function(g)
showMessage('Button clicked')
end

memo1 = createMemo(f)
memo1.setSize(400,400)
memo1.setPosition(20,50)

f2 = createForm()
f2.setParent(f)
f2.FormStyle = 'fsMDIChild'
f2.BorderStytle = 'bsSingle'
f2.Caption = 'Child Form1'
f2.Color = '0x99AE90'
f2.AlphaBlend = true
f2.AlphaBlendValue = 50
f2.Width = 300
f2.Height = 300
f2.setPosition(200,200)
f2.ParentBidiMode = false

memo2 = createMemo(f2)
memo2.setSize(200,200)
memo2.setPosition(20,50)

b2 = createButton(f2)
b2.setSize(70,30)
b2.setPosition(10,10)
b2.caption = 'Test 2'
b2.onClick = function(x)
showMessage('Button clicked')
end


All components work fine except I can't typing text directly on memo2, not on memo1.

Then ok, I created a normal form or use a panel on the form for CEMemo.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites