Results 1 to 10 of 10
  1. #1
    Grailly is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2018
    Posts
    7

    RightToLeft Align Access TitleBar

    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

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    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.

  3. #3
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Try this June.
    Code:
    msgbox "123",vbMsgBoxRight+vbMsgBoxRtlReading
    Grailly
    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
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    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:
    Click image for larger version. 

Name:	reversedTbar.jpg 
Views:	23 
Size:	8.6 KB 
ID:	36260
    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.

  5. #5
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Not bad actually.
    How did you do that? Lots of spaces before the form caption? What about the control box?
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  6. #6
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    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.

    Click image for larger version. 

Name:	reversedTbar2.jpg 
Views:	19 
Size:	9.7 KB 
ID:	36265

  7. #7
    Grailly is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2018
    Posts
    7

    Move ControlBox To The Left Side

    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

  8. #8
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    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
    Attached Files Attached Files
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  9. #9
    Grailly is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2018
    Posts
    7
    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

  10. #10
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    What was the issue with the attached file?
    No idea what the rest of your post meant

    And once again, Please Stop Capitalising Every Word As It's Harder To Read
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. My VBA window won't align properly...
    By garmium in forum Access
    Replies: 1
    Last Post: 10-20-2011, 10:16 AM
  2. Align text in a field column.
    By israellawndale in forum Access
    Replies: 1
    Last Post: 08-16-2011, 06:18 PM
  3. Right Align Listbox
    By brc in forum Access
    Replies: 16
    Last Post: 07-12-2011, 07:06 PM
  4. Align Fields
    By saqqer in forum Programming
    Replies: 1
    Last Post: 08-04-2009, 07:30 PM
  5. Replies: 2
    Last Post: 12-19-2005, 09:25 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums