Form with in a Panel
Posted
#1
(In Topic #509)
Enthusiast

Is it possible to display a form with in a Panel?
I am trying to replicate a MDI application and so far I have not worked out how to do this so I was thinking could I use a Panel to show the form in?
Posted
Regular

AndyGable said
…I am trying to replicate a MDI application and so far I have not worked out how to do this…
I haven't done it either (I'm sure others on this forum have…) but I think you need to look at the gb.form.mdi component: /comp/gb.form.mdi - Gambas Documentation
Come back if you are still struggling Andy and one of us will knock up some example code.
Posted
Enthusiast

Posted
Enthusiast

stevedee said
AndyGable said
…I am trying to replicate a MDI application and so far I have not worked out how to do this…
I haven't done it either (I'm sure others on this forum have…) but I think you need to look at the gb.form.mdi component: /comp/gb.form.mdi - Gambas Documentation
Come back if you are still struggling Andy and one of us will knock up some example code.
I have been reading that all night and I still can not get it to work (am very new to Gambas) if someone would be kind enough to show me a example code I would be most appreciated
Posted
Regular

AndyGable said
stevedee said
AndyGable said
…I am trying to replicate a MDI application and so far I have not worked out how to do this…
I haven't done it either (I'm sure others on this forum have…) but I think you need to look at the gb.form.mdi component: /comp/gb.form.mdi - Gambas Documentation
Come back if you are still struggling Andy and one of us will knock up some example code.
I have been reading that all night and I still can not get it to work…
Not sure if I understand what you want to do, but to use the gb.form.mdi, add this component to a new project and then add a Workspace from the Special component category to the main form.
Now add 2 more forms with some visual components (e.g. labels, buttons) and add the 2 forms to the main form using the two lines of code in the image.
I hope this helps.
Posted
Guru

<IMG src="https://www.cogier.com/gambas/Workspace.png">
</IMG>
Posted
Enthusiast

this is what I am trying to do
I have my background form (frmbackground)
<IMG src="http://support.algpos.co.uk/images_help/Background_1.png">
</IMG>and then I have my First form that i display when the app starts up
<IMG src="http://support.algpos.co.uk/images_help/SignedOff.png">
</IMG>So when the application is running the user would see
<IMG src="http://support.algpos.co.uk/images_help/ApPRun.png">
</IMG>When the user Presses the Sign on key (for example A the system will then display with in the Background from the sign on screen) This is because the Form FrmSignedOff (as this has the code for the keyPress) has focus and not the FrmBackground
The icons on the side of the app changes depending on what the program is doing (that is why they are placed on the background form and not each individual form as some forms are powered via multiple menu select example User Menu -> Till Menu -> No Sale etc
This works perfectly in windows (as this screen examples are from my VB.net application) so I need to work out how to replicate this in Linux.
1 guest and 0 members have just viewed this.



