SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-07-09, 07:00 PM   #11
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

You can't have a draggable button. To drag it you must click it .
Let me see. You have a draggable item that also needs to control other items... So the draggable item must be the parent of all the other items. But you must still be able to click the other items, which becomes impossible since they're all "beneath" the parent. SO.
1.Make a big menu group as big as the screen
2.Make a Static Bmp Array item (or a Button). It must be draggable, so it needs to be BmpState=1, Needsfocus=true, Drag=true. This item will be your "handle" so put in a suggestive image.
3.Make another group and parent it to the "handle". But they must not intersect (ok they can intersect, but the part that intersects will move the tdc, you can't click "through" it).
4.Insert all the other items, including your autotdc button in the group you made at step 3.

In this way, you can only move the tdc if you click on the handle (so it becomes impossible to move the handle offscreen on the handle side, similar to how the notepad hides in SH4). I suggest you place the handle below the TDC so you can move it anywhere left to right and hide it at the top of the screen. To set the initial position of the TDC on the screen, you need to move the group at step 1 (easier to move than the handle). To move the TDC in relation to the handle, you only need to move the group at step 3. That should make it easy to place for you.

Last edited by karamazovnew; 10-07-09 at 07:21 PM.
karamazovnew is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.