jbailey268
Programmer
I created an object based on a form (scx). And although I set it as "In Top Level form" - it isn't, when instantiated.
Of course it doesn't really float. It just behaves as it was an independent window.
The Main Top form (call it form1); in it's init event I have
IF ! ("MYFORMCLASS" $ SET("Classlib"))
SET CLASSLIB TO C:\Develop\Progs3\MYFORMCLASS.vcx ADDITIVE
ENDIF
loformINSIDE=CREATEOBJECT('rankout')
loformINSIDE.SHOW()
ALso tried it with NEWOBJECT - no difference.
**loformINSIDE=NEWOBJECT('rankout','MYFORMCLASS')
The main top form shows and then the object that is shown just acts completely, independently of the MAIN FORM1 window.
What my objective is: That it be "attached." Like an image (or any other object) placed on the form. When the form moves it moves, as if it was a part of it's skin.
I tried "Always on Top"...I tried a foray into form sets. Sorry, too complicated...
I removed title bar of the class, experimented with border styles.
It's probably something simple. If not I can't work with the class object as is. When a user moves the main form the bottom section will not move.. ech!. I'll have to go back to painting objects directly on the main form1. I thought employing forward thinking my making it a class.
Also I'm in Visual 8.0 and I have not put this into an app yet. Just started fooling around with the form.
Of course it doesn't really float. It just behaves as it was an independent window.
The Main Top form (call it form1); in it's init event I have
IF ! ("MYFORMCLASS" $ SET("Classlib"))
SET CLASSLIB TO C:\Develop\Progs3\MYFORMCLASS.vcx ADDITIVE
ENDIF
loformINSIDE=CREATEOBJECT('rankout')
loformINSIDE.SHOW()
ALso tried it with NEWOBJECT - no difference.
**loformINSIDE=NEWOBJECT('rankout','MYFORMCLASS')
The main top form shows and then the object that is shown just acts completely, independently of the MAIN FORM1 window.
What my objective is: That it be "attached." Like an image (or any other object) placed on the form. When the form moves it moves, as if it was a part of it's skin.
I tried "Always on Top"...I tried a foray into form sets. Sorry, too complicated...
I removed title bar of the class, experimented with border styles.
It's probably something simple. If not I can't work with the class object as is. When a user moves the main form the bottom section will not move.. ech!. I'll have to go back to painting objects directly on the main form1. I thought employing forward thinking my making it a class.
Also I'm in Visual 8.0 and I have not put this into an app yet. Just started fooling around with the form.