![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-27-10, 10:48 AM
|
#1 | |
|
Black Magic
![]() |
Quote:
toggle your messagebox visibility (the L key). He'll move to a better place. Great idea to make the XO TDC dialog box draggable! I will try that now. |
|
|
|
04-27-10, 11:27 AM
|
#2 | |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
Quote:
Code:
def InitializeScript():
if Pageobsperiscope_AttackDisc.Handles.Length == 0:
attackdischandle = Pageobsperiscope_AttackDisc.AddMoveFixedSizeHandle()
attackdischandle.SetSnapParent( Pageobsperiscope_AttackDisc, MenuItemWrapper.LocationPresets.TopLeft)
attackdiscsize = Pageobsperiscope_AttackDisc_attackdisc.Size
attackdischandle.Resizability = MenuItemWrapper.ResizabilityTypes.NoAspectRatioConstraint
attackdischandle.Resize( attackdiscsize.Width, attackdiscsize.Height, False )
|
|
|
|
04-27-10, 11:30 AM
|
#3 |
|
Black Magic
![]() |
new user option added (XOTDCDialogDraggable). If set to True then the XO TDC dialog box is draggable and the feature of the XO TDC dialog box dynamically repositioning based on messagebox visibility is disabled. The very top bar of the XO TDC dialog box is where you grab to drag it.
You first have to click on the XO to 'open him up'. Then you will be able to drag him where you want him. |
|
|
04-27-10, 11:34 AM
|
#4 | |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
Quote:
So drag does work with more complex Controls. Does this also hook the recognition Manual when dragging around? |
|
|
|
04-27-10, 11:42 AM
|
#5 |
|
Black Magic
![]() |
|
|
|
04-27-10, 11:47 AM
|
#6 |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
|
|
|
04-27-10, 11:47 AM
|
#7 |
|
Black Magic
![]() |
|
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
