LDDialogs.SetStartupPosition - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3) +--- Thread: LDDialogs.SetStartupPosition (/showthread.php?tid=191) |
LDDialogs.SetStartupPosition - Yumda - 01-06-2025 Hi there: does lddialogs.setstartupposition work for lddialogs.inputbox? I tried to set it like this LDDialogs.SetStartupPosition(373,210,1) and then called lddialogs.inputbox, eg LDDialogs.SetStartupPosition(373,210,1) dialog1 = lddialogs.inputbox("","") but the input box position is not set in relation to the graphicwindows... any ideas? or does the setposition option not apply to the input box? Regards RE: LDDialogs.SetStartupPosition - Scout - 01-06-2025 Hi Yumda, Yes, the dialog window "inputbox" is in the center of the screen in every mode. LDDialogs.SetStartupPosition probably does not work for all dialog windows (see Intellisense). RE: LDDialogs.SetStartupPosition - litdev - 01-06-2025 Yumda, Scout, You are right that this dialogue dosn't use the SetStartupPosition option. This is a special Visual Basic dialogue with its own positioning control which are different to the other standard dialogues. I will have a go at making it compatible. EDIT Uploaded a new beta version (1.2.29.13), you can get with Extension Manager. To use Mode 1 (relative to GW, GW should be visible) Code: GraphicsWindow.Show() RE: LDDialogs.SetStartupPosition - Yumda - 01-08-2025 thank you litdev and Scott for both of your help. One last question, is it possible to change the colour of the message in the lddialogs.inputbox and lddialog.confirm? both only allow the message in black colour only. Regards RE: LDDialogs.SetStartupPosition - litdev - 01-08-2025 Re: Change colour of text, not really without rewriting custom dialogues see: excel - VBA Change the text color in MsgBox - Stack Overflow or c# - How to customize message box - Stack Overflow - LDDialogs.Confirm uses System.Windows.MessageBox InputBox prompt text color - Microsoft Community - LDDialogs.InputBox uses Microsoft.VisualBasic.Interaction.InputBox |