Dear All
Is There Api Function To Set TitleBar Alignment Right To Left ... Means Menu Box Move To Left ... Like Msgbox DialogBox Has A VbBoxRight
Dear All
Is There Api Function To Set TitleBar Alignment Right To Left ... Means Menu Box Move To Left ... Like Msgbox DialogBox Has A VbBoxRight
None that I know of.
I don't see vbBoxRight as an option for MsgBox.
What menu box do you want to move left? - there already is menu on the left of form title bar.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Try this June.
GraillyCode:msgbox "123",vbMsgBoxRight+vbMsgBoxRtlReading
I'm also unaware of any such setting but perhaps it happens as a default if language settings are set for right to left languages
Title bar of what? Application? Form? Sorry, but I'm not seeing how the alignment of text in a control or message box applies to the post title but then again, I've been known to mis-interpret post titles and question meanings once or twice before. I read this as "put the title bar text on the right, thus move the control box to the left". That could only be done by a work around and would probably look as bad as this feeble attempt:
![]()
Last edited by Micron; 11-20-2018 at 02:01 PM. Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
Control box is turned off. That's just a line, box and label, for which I forgot to remove the border. The x close button has no border - at least in my version.
The form has no border, which turns off the title bar and probably would remove the control box anyway. What looks like a title bar is a form header. which contains those 'control box' controls and "MyForm" is just a label in the header. It's apparent that I didn't worry too much about alignment and certainly didn't write any code to perform control box actions. Such code might not work anyway as IIRC, a form with no control box can't be minimized, maximized or restored - even by Windows shortcuts or keyboard combinations.
EDIT after a bit of playing about, here's what looks like an old fashioned version - maybe Office 2003 or earlier.
![]()
Title Bar Of hWndAccessApp
I Believe That The Navigation Pane Also Can Be Mininmized But Currently I Want To Know How Can We Move ControlBox In TitleBar Of OMain To The LeftSide , One Sample Told You When You Write Msgbox It Has A Optional Parameter To Define BoxRight .
Even I Saw SomeWhere Change Alignment Of Ribbon To The Right Side But Access Support Only Left Side Position
Thanks A Lot
Grailly
Micron has just told you how you can create this effect without an API.
I've just created it complete with 4 working buttons - minimize, restore, maximize, close.
See attached
Also please don't capitalise every single word
Cannot Use The Attached File
I Used SetWindowLongA And WS_EX_LAYOUTRTL To Acheive This But Not Working Another Control On Form Means Cannot Select TabControl And Move Between Pages