Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2018, 12:42 PM
lex lex is offline
Junior Member
 
Join Date: Feb 2012
Posts: 27
Default Sub form dominates over mainform

I have a mainform and from the mainform
I have a timer delay to free the mainform mouse code to call a subform
This works good on previous subform

I have been trying mild methods to call the subfirm
1st turn visible true
a) BringToFront
b) BringWindowToTop
c) SetWindowPos

I replaced the Subform with a completely new Subform
(all default settings in subform)
But as soon as the subform is visible it only sits over the Mainform
No mater how many times I click on the mainform to bring to front
on the mouse down event in an object on the mainform I have BringToFront
method installed and the mainform does not come to the front.

Why
Reply With Quote
  #2  
Old 04-16-2018, 07:42 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,305
Default

Since you don't post any code it's guessing
And the best guess is that you show your subform with ShowModal, which explains that your MainForm doesn't receive any messages.
Reply With Quote
  #3  
Old 04-16-2018, 08:46 PM
lex lex is offline
Junior Member
 
Join Date: Feb 2012
Posts: 27
Default

Its setting to the form because their is no code
How do I send a picture.
Reply With Quote
  #4  
Old 04-17-2018, 06:45 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,305
Default

There is always code, the way you create your form, the way you make the form visible, and so on...
Reply With Quote
Reply

Tags
delphi 7

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:58 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, vBulletin Solutions, Inc.