![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
There IS an updated help file in the version 1.2 zip at post #20 here Build proper desktop apps in B4PPC with this awesome Forms library However the only difference over version 1 is that the resize event was added.
Code:
FormEx1.MaximumHeight = 600 FormEx1.MaximumWidth = 600 FormEx1.MinimumHeight = 300 FormEx1.MinimumWidth = 400 FormEx1.HasMaximizeBox = false FormEx1.HasMinimizeBox = false |
|
||||
|
This is y code
Code:
Sub App_Start
LoadINI
XForm.New1("Main")
XForm.MaximumHeight = 600
XForm.MaximumWidth = 600
XForm.MinimumHeight = 300
XForm.MinimumWidth = 400
XForm.HasMaximizeBox = false
XForm.HasMinimizeBox = false
Main.Show
End Sub
When I run the code, there's no error but the form shows has if the dll was not beeing called at all...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
|
||||
|
Quote:
To show only your FormEx use "XForm.Run". This is documented in the comments in the "Start Application" region of the example and also under the help for Run in the "FormExDesktop advanced topic". To get a window that Maximises and Minimises all you need is this Code:
Sub App_Start
LoadINI
XForm.New1("Main")
XForm.Run
End Sub
|
|
||||
|
Thaks agraham, got it working...
It a great lib, but a bit confusing with all the available options... An embeed dll option is starting to be needed in the Designer, a bit like VB,and to have a small panel/form were to seet the most commom props of the control...just a thought...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
|
||||
|
I usually try to make the defaults the most common values so you don't need to worry too much about the properties.
A good simplifying tip is to not set any properties at all to begin with. Just try it using the defaults and if the behaviour is not what you want/expect then explore the help for inspiration! |
|
||||
|
one last question:
Since it is easyer to create the form in the designer and then pass it to the dll, can i have two froms inherited from the designer, show up with diferent sizes? This second form not beeing the main form, what to use to show it? (show vs Run)
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
|
||||
|
Quote:
You "Show" them, not "Run" them and they will all close when the main form (the first one that is "Run") is closed. Note that "Close" truly closes and disposes a FormEx and does not "Hide" it like a B4PPC Close does. If you want the Close button on the form to emulate B4PPC and let a form be reshown then check help for "Closing" and the comments in the example region "Closing events - makes it more like B4PPC" for more information. |
|
||||
|
you mean that if i close one form, i cannot show it again, if it was an inherit form?
But if I create a form in runtime I ccan create it any time I need, right?
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Working with VGA screens | Erel | Tutorials | 18 | 06-01-2008 02:08 PM |
| working with date | gjoisa | Questions & Help Needed | 3 | 03-29-2008 09:40 AM |
| Working ipac METER??? | bGoody_iPAC_rx1950PPC | Questions & Help Needed | 2 | 03-20-2008 07:02 AM |
| Working with screen resolutions | Nycran | Questions & Help Needed | 25 | 02-13-2008 02:04 PM |
| desktop ide quit working | dennishea | Questions & Help Needed | 5 | 01-06-2008 07:31 PM |