Problem with positioning a pushbutton in a dlgArea: I have created a re-sizable dialog with two dialog areas like this (excluding margins): +---------------------------------+ dlgArea1 | +-----------------------------+ | | | | | | | | | | | ListView | | | | | | | | | | | +-----------------------------+ | +---------------------------------+ +---------------------------------+ dlgArea2 | +--------+ | | | Button | | | +--------+ | +---------------------------------+
But when I re-size to the right (or left) the button does not keep its right
edge in line with the right edge of the ListView, the result looking like
this:
+------------------------------------------+ dlgArea1
| +------------------------------------+ |
| | | |
| | | |
| | ListView | |
| | | |
| | | |
| +------------------------------------+ |
+------------------------------------------+
+------------------------------------------+ dlgArea2
| +--------+ |
| | Button | |
| +--------+ |
+------------------------------------------+
The relevant code (a modification of the ooDialog sample
dlgAreaUDemoThree.rex) is as follows:
--------------------------------------------------
::method init
...
success = self~createCenter(250, 250, ... )
::method defineDialog
u = .dlgAreaU~new(self)
...
u~noResizePut(IDC_PB_0) -- prevents re-size of button when dialog is
re-sized.
...
e = .dlgArea~new(u~x , u~y , u~w, u~h('90%')) --
ListView area
s = .dlgArea~new(u~x , u~y('90%'), u~w, u~hr ) --
Button Area
self~createListView(IDC_OMGMT_ICONS, e~x, e~y, e~w, e~h, 'icon')
self~createPushButton(IDC_PB_0, s~x(-60), s~y, s~w('25%'), s~h('90%'), ...
)
--------------------------------------------------
Any thoughts about how I can make the right edge of the button align with
the right edge of the listview when the dialog is re-sized? I've tried lots
of ways to achieve this, all with no success.
Many thanks,
Oliver
<<attachment: winmail.dat>>
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ Oorexx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-users
