Openbox Theming Questions - ( titlebar button size)

I'm trying to tweak an openbox theme that is finger friendly for my daughter's touchscreen and I've run into a question:
I know we can change the image of the .xdm for the titlebar buttons but can we change the size so that it fits a taller titlebar? 
I can't see anything in the .themerc, obconf, or obtheme to do so but I hope I'm just missing it somewhere.  It seems weird that I can easily increase the size of the titlebar but not the buttons. 
Thanks.
Last edited by ctarwater (2010-12-14 13:10:18)

I have solved moving a window by dragging the title bar with the following openbox configuration, which is located in ~/.config/openbox/lxde-rc.xml on my machine:
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<action name="if">
<maximized>yes</maximized>
<then>
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<y>0</y>
</action>
</then>
</action>
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximizeFull"/>
</mousebind>
</context>
After holding down the left mouse button on the title bar and moving the mouse, the window is unmaximized and moved to the top of the desktop with the actions Unmaximize and MoveResizeTo. Unmaximizing and moving to the top is only done, if the window is maximized. Then in each case the action Move starts the modus for moving the window with the mouse. This configuration simulates nearly the same behavior as in Windows 7 while dragged the title bar with the left mouse button.
After a left double click on the title bar, the action ToggleMaximizeFull switches the window state once between maximized and unmaximized.
See also http://openbox.org/wiki/Help:Actions
Last edited by raimar (2014-01-04 23:48:06)

Similar Messages

  • Exported To FLash 8 - MC question Radio Button Size?

    I have a quiz that uses MC and T or F questions - I am
    exporting it to flash to integrate it with some other content.
    I have everything working at this point, except I need to
    increase the font size of the question Radio buttons and everything
    i have tried so far hasn't worked. I am guessing it is somewhere in
    the captivate quiz class files but i havent been able to track it
    down.

    Thanks for the response.
    After i posted I kept digging and found where the code is
    that sets the font for the Radio buttons in the quizzes when you do
    an export to flash. What I found out is listed below in case anyone
    else ever needs the information- hopefully it will save someone
    else some time.
    The ".as" file is --
    C:\Documents and Settings\YOUR NAME HERE\Local
    Settings\Application Data\Macromedia\Flash
    8\en\Configuration\Classes\AdobeCaptivate\quiz\CpMultipleChoice.as
    Strating at line 106 there is the following code
    p._font.name = "Arial";
    p._font.size = 12;
    p._name = "" + numAnswers;
    I was then able to make the font size larger to match the
    other text on the screen (i do have to say it's rather annoying
    that those attributes don't get exported from the captivate file,
    because i set the font properties before exporting - but i guess
    there is probably a reason for that)

  • Please help me...Why the buttons size change?

    Hi!!!
    I have a doubt with respect the buttons size, because with the following code i show 2 buttons that comprise the whole panel in a row:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    public class x1 extends JApplet {
    public void init() {
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    JPanel jp= new JPanel();
    jp.setBorder(new EmptyBorder(10,10,10,10));
    jp.setLayout(new GridLayout(1,2,5,5));
    JButton b1= new JButton("Button 1");
    jp.add(b1);
    JButton b2= new JButton("Button 2");
    jp.add(b2);
    contentPane.add(jp,BorderLayout.NORTH);
    But when i do other separated class with the buttons creation, my buttons appear in the center without comprising the whole panel in a rengl�n.....why happen it?.....i would like to obtain the same effect like the first code....how can i reach that?.....
    This is the applet code when i do the separated class with the buttons creation applet:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    public class x2 extends JApplet {
    public void init() {
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    contentPane.add(new jbuttons(),BorderLayout.NORTH);
    class jbuttons extends JPanel {
    public jbuttons() {
    JPanel jp= new JPanel();
    jp.setBorder(new EmptyBorder(10,10,10,10));
    jp.setLayout(new GridLayout(1,2,5,5));
    JButton b1= new JButton("Button 1");
    jp.add(b1);
    JButton b2= new JButton("Button 2");
    jp.add(b2);
    add(jp);
    Could somebody help me please?.....Thanks in advance....
    Mary

    Mary,
    Your second class (jbuttons) actually contains TWO panels: "this" as well as the jp panel. The jp panel is in this case unnecessary.
    Although the sizing of the jp panel is set correctly, the "this" panel is still set to "flow" layout and will not give you the desired result.
    Try rewriting your second class this way:
    class jbuttons extends JPanel {
    public jbuttons() {
    this.setBorder(new EmptyBorder(10,10,10,10));
    this.setLayout(new GridLayout(1,2,5,5));
    JButton b1= new JButton("Button 1");
    this.add(b1);
    JButton b2= new JButton("Button 2");
    this.add(b2);
    Hope this helps!
    Steve

  • Question Slide Buttons

    I have an assessment that I created that uses a combines
    question slides with interactive slides. I would like all of the
    slides to uniform. The question slides were automatically created
    with buttons to Back, Skip and Submit. These slides also added a
    review area and a text box with question 1 of 15. I would like to
    add these items to the interactive slides, but the program does not
    allow these items to be copied. Can these items be added to a slide
    not created as a question slide? If so, how is this done?

    Hi Carol
    Taking your questions one by one:
    -- You can change the standard quiz question buttons (Clear,
    Back, Next, and Submit) by double-clicking them and changing the
    button settings. This enables you, for example, to change them to
    Image buttons (as in Rick's demo).
    -- You can't remove the navigation (defined on the Options
    tab in the Question properties dialog) from the Success and Failure
    captions -- it is built in
    -- You can't add your own custom navigation buttons to quiz
    questions using buttons or click boxes -- these options are greyed
    out on question slides -- so you have to make use of the regular
    quiz question buttons
    -- The difference between the Skip (sometimes labelled Next)
    button and the Submit button is that it navigates directly to the
    next slide without submitting an answer to the current slide. When
    the button is labelled Next, users often click this button in error
    without realizing that they have failed to submit their selection
    as an answer.
    -- I'm afraid I have no experience of the blue asterisks
    resulting from the hot spot Quiz slides. I'd be interested in what
    others have to say about this issue.
    Best regards,
    -Matthew

  • How to increase button size in toolbar

    hi,
    i am displaying a simple classical list with Billing Document details with 2 buttons in the toolbar, HEADER & ITEM.
    When Header is clicked Header details are displayed & Item is clicked item details are displayed.
    My problem is...i want to increase the button size...looks very small in output. I cheked in SE51 for changing the buttons size...but no options there....anyone pls help.
    how to put screen shot in this post...i don't know.
    thanks

    hI ,
      There is no option  to increse the size of button in toolbar  .
      But in dialog programing  in screen you can do that 
    by providing addition ____ after  name  in text  of button  .
    Regards
    Deepak.

  • RH 9 - Can I edit browse sequence button sizes in a CHM?

    I'm quite sure this is NOT possible, but I promised my localization coordinator, I'd ask.
    The issue is that we have localized strings (from RH, not from our translators) that are overlapping on the Next and Previous buttons in some languages in the Browse Sequences. Like this:
    I've looked, but I don't see a way to expand the button sizes. I know we can change the .lng file to use different (possibly shorter) terms than what RH picked for these, but a better solution would be to adjust the GUI for text expansion in localized languages.

    Sorry Jared
    All that functionality is embedded inside the guts of the HHActiveX.DLL file.
    Cheers... Rick

  • Best Practice Buttons? and Swing Button Sizes

    Hi,
    I am wondering what the best way to make a custom styled button was....
    Since I need my own style of button (width,height,background image, selected, clicked) I thought I would use Swing buttons with a Synth style. However, when I place swing buttons inside a CustomNode, all of the button widths, heights, x, y settings are discarded. I can understand the x/y being discarded as the component location should become relative and set by the wrapping CustomNode. I can also understand this because I can set the positions with translateX and translateY. However, I can't see how I can set a width and height of the swing button from inside the CustomNode.
    Can this be done?
    Alternatively, I don't mind using an alternative to the swing button however this is the only button I can see in JavaFX.
    Thanks for reading

    Ok, looks like I can wrap the button's inside a group, stage eta Node wrapper. Then I can preserve the button sizes and can produce relative/translatable positioning of the group/stage. This I understand and find to be a good feature. One thing that does concern me is that with the Swing button's - the Synth styles are not correctly applied. No matter what I do I can not get button text color to change. Changing the background mostly works but the text label styling is completely ignored.

  • My question mark button doesn't work

    hello,
    i just bought a new macbook pro 13 inch and i cant get the question mark key to work. can anyone suggest what key i need to press to get it working. both the english question mark button and the spanish question mark button on type out like this
    ------------------- or ================)))))))))))))))))) +++++++++++++++++
    please help
    ktg70

    hi im still getting this when i press the question mark button
    i have also realised my numbrs ^^^^^^^^&&&&&&&&***********((((((((((())))))))))))))
    6, 7,8,9,and 0
    type the above when i press uppercase.
    im confused how to fix it from the keyboard settings. i had language as english and chose australian english too.
    thanks.
    ktg70

  • How to change the button size of Calendar prompt

    I want to change the button size in Calendar prompt. How to change it?
    Thank you!

    I think it is not necessary to modify the Calendar button size.
    The Calendar button actual size is 20X20.
    But the gif file which is used by Calendar button is not filled by icon.
    It seems that the height is smaller than the other buttons.
    Edited by: user12291797 on Dec 3, 2009 12:59 AM

  • 3 questions about texture sizes

    Hi there all,
    I have 3 questions about texture sizes. First off, after
    doing a search in this forum, I found out how to find the maxium
    texture size my hardware can handle. However, this is only
    currently tells me what the texture size I should use for my
    computer. So basically, what my first question is, I wanted to know
    what would be the average texture size for PC's. Why I ask this is
    because arfter doing the command that finds my maxium texture size
    that my computer can handle, it says that I can handle up to
    2048x2048, but this doesn't help if lets say the standard hardware
    texture size is 1024x1024.
    My second question is, when you speak in maxium hardware
    texture size terms, is this for per object, per scene that is
    loaded into memory, or for the entire game?
    ... and my last question is, does hardware texture size also
    include basic shaders as well (meaning with no textures)? If not is
    there a limit on that as well?

    1. If you know what maximum texturesize the endusers
    graficcard can handle, you can build a switch to different *.w3d
    files with that are saved with different texturesizes. you can see
    how the hardware variates:
    http://nuttybar.drama.uga.edu/pipermail/dir3d-l/2005-September/009554.html
    but don't forget that the macs are limited at the moment to a
    maximum texturesize of 512x512. If the textures are bigger then the
    maximum texturesize they are scaled down to it. In your example a
    texture that is 2048x2048 would be scaled down to 1048x1048 if this
    is the maximum texturesize of the endusers machine.
    2. The maximum texturesize is per Texture. But the Textures
    are stored uncompressed in the VRAM of the graficcard. There is no
    way to check how much RAM is left and i am not sure what happens if
    you put a lot of data in it.
    3. A shader only layers textures like photoshop and renderes
    them depending on the settings of the shader. The maximum hardware
    texture size only limits the size of the texture, if you use no
    textures in the shader (setting all texturelayers to void) the
    model will be only rendered depending on the values that are given
    by "ambient", "emissive", "diffuse", "specular"
    Just want to add here that textures should be in this sizes:
    1x1, 2x2, 4x4, 8x8, 16x16, 32x32, 64x64, 128x128, 256x256,
    512x512, 1024x1024, 2048x2048, 4096x4096 ...
    but can be also be combined like this:
    32x1024 or 512x256 and so on. this is just good to know.
    If textures do not fit into this grid of pixel values, the
    texture will be scaled up or down to the next size that is closest
    to it.
    if you type this code into the message window and execute
    every line, you can check the resulting texturesize.
    global pImage
    pImage=image(100, 1000, 24)
    member("world").newtexture("image", #fromimageobject, pImage)
    put member("world").texture("image").width
    -- 128
    put member("world").texture("image").height
    -- 1024
    This will happen to all textures if they enter the
    graficcard.

  • Openbox script-drag titlebar to unmaximize, help with last step?

    Hey all,
    I really missed the feature in other WM's where one could drag a maximized window out of maximize and have it restore to the original size. I have written a small shell script to get the size of the current window and then implemented it in rc.xml. The only little issue is that, for some reason, when restoring from the values originally saved, the window comes out of the "maximized" state but retains the maximized dimensions. In other words, I can drag it out of "maximized' but it stays big, and does not go back to the original saved size. Any thoughts?
    getdimcur.sh
    #!/bin/bash
    activew="$(xwininfo -id $(xdotool getactivewindow)|awk '/Width/ {print $2}')"
    activeh="$(xwininfo -id $(xdotool getactivewindow)|awk '/Height/ {print $2}')"
    echo -en "$activew $activeh" > /home/ts/scripts/curwin/curwindim
    rc.xml snippet
    <context name="Titlebar">
    <mousebind button="Left" action="DoubleClick">
    <action name="Execute">
    <command>bash /home/ts/scripts/curwin/getdimcur.sh</command>
    </action>
    <action name="Execute">
    <command>wmctrl -r :ACTIVE: -b toggle,maximized_vert,maximized_horz</command>
    </action>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="if">
    <maximized>yes</maximized>
    <then>
    <action name="Execute">
    <command>wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz</command>
    </action>
    <action name="Execute">
    <command>bash /home/ts/scripts/curwin/restorewin.sh/</command>
    </action>
    </then>
    </action>
    <action name="Move"/>
    </mousebind>
    </context>
    restorewin.sh
    xdotool getactivewindow windowsize $(cat /home/ts/scripts/curwin/curwindim|awk '{print $1}') $(cat /home/ts/scripts/curwin/curwindim|awk '{print $2}')
    Testing these commands in terminal individually is successful, so what am I missing?
    Thank you.

    I have solved moving a window by dragging the title bar with the following openbox configuration, which is located in ~/.config/openbox/lxde-rc.xml on my machine:
    <context name="Titlebar">
    <mousebind button="Left" action="Drag">
    <action name="if">
    <maximized>yes</maximized>
    <then>
    <action name="Unmaximize"/>
    <action name="MoveResizeTo">
    <y>0</y>
    </action>
    </then>
    </action>
    <action name="Move"/>
    </mousebind>
    <mousebind button="Left" action="DoubleClick">
    <action name="ToggleMaximizeFull"/>
    </mousebind>
    </context>
    After holding down the left mouse button on the title bar and moving the mouse, the window is unmaximized and moved to the top of the desktop with the actions Unmaximize and MoveResizeTo. Unmaximizing and moving to the top is only done, if the window is maximized. Then in each case the action Move starts the modus for moving the window with the mouse. This configuration simulates nearly the same behavior as in Windows 7 while dragged the title bar with the left mouse button.
    After a left double click on the title bar, the action ToggleMaximizeFull switches the window state once between maximized and unmaximized.
    See also http://openbox.org/wiki/Help:Actions
    Last edited by raimar (2014-01-04 23:48:06)

  • Adobe Captivate - Multiple Choice Quiz Question - Radio Button and Text Alignment

    I have created a quiz with multiple choice questions.
    No matter what I do I cannot align the radio button and the text for the choices (see below).
    I would like to align the center of the radio button with the center of the letter A) and B).
    I have tried every option that I can think of in the Properties options.
    Please let me know if anyone has a solution for this.
    Thank you

    Thanks for the reply.
    Previously I tried several different combinations of fonts and font sizes, but didn't see any change.
    Does anyone else know of anything else that could effect this situation?

  • Menu Button Size is off

    Hi everyone, I am new here but been using Dreamweaver about 2 years off and on.  I am very much the amateur.  I figure a lot of things out by "doing" and other things I will sit and read til I can build it myself.
    My question.  I am using the Dreamweaver CS5 2 column, liquid, header and footer layout.  It has the "built in menu" and I am trying to put smaller buttons in.  I had these big, clunky looking things so I get the bright idea just to make smaller ones and they'll change auto in my template.  Worked great accept they still came out big and clunky only stretched from their normal size.
    Anyone know what happened and a "fix" for that?
    Thank you much,
    My site is tocatchamiracle.com  The old "clunky" buttons are still showing there.  I think a screenshot would be good so I will go see if I am allowed that in the forums.

    Screen cap is no help. The answer is A L W A Y S in the code.
    Your code calls for image to display at 36 high by 161 wide.
    <img height="36" width="161" border="0" id="Home" name="Home" alt="Takes you back to my homepage" src="http://www.tocatchamiracle.com/buttons/upstatehome.png">
    Is this the size you want?

  • Question about Button and TextBox positions

    Hello everybody,
    I just started using Borland Together 6.1 extended with Java and I want to design a UserForm (an Application), especially a Online Bank terminal, where u can input and output different data. My problem is that when I add buttons and textboxes from the toolbox menu, I cannot put then on the place I want, I'm restricted to some positions (center, right, left, west, east and so on). My question is how can I create my elements on the position I want, how can I resize them. Could someone tell me some specific functions, which I should use.
    Thankx

    You should try to find a LayoutManager that suits you. If you can't find one, you can set the Layout to null, then use absolute positioning.
    setLayout(null);
    yourComponent.setLocation(50, 50);
    yourComponent.setSize(40, 20);You need to set both the location and size of components when the layout is null.

  • New to apple, question about font sizes on show bookmarks pages

    Former windows user, trying to get used to this beautiful new imac! When I am on the safari page, in the show all bookmarks page, the font is so small, and buttons to increase the size are disabled on the page! I know there must be a way to make the print bigger but how?
    Thanks to all.. I think I'm learning more from reading these forums than with all the help pages.

    Very sound advice (as always) Barry.
    I (very briefly) considered offering the Terminal/Defaults route, but thought that Safari Enhancer was the lesser of two evils. Safari Enh does not need to be kept running after changes (like the bookmark font size) are made. & I believe most of it's functions within Safari are made by simply altering the plist file - so getting back a default configuration is very simple.... just reset safari.
    keveliz : Barry's is good advice. I wouldn't put safari enhancer in the " ...here be dragons" or 'addicted to haxies' class myself... because it's just a program that you run & close afterwards - it doesn't carry on, (possibly) brewing trouble in the background.
    I haven't been using Apples even a year now - but pc's & 6502 / 6800 & onwards micros since err, 1980..... & fwiw I personally think safari-enh is much safer than most 3rd party fixers ( which isn't saying much! - so Yep, I'd recommend it based on my usage )- there's good support, a useful discussions forum; although previous versions ( presumably sorted now?) could be annoying due to setting non-std options that you hadn't specifically checked - a problem if you're just starting & you wouldn't know what was a default setting & what wasn't.
    None of which is intended to disagree with Barry's note of caution - be careful out there.

Maybe you are looking for

  • Throwing Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException

    Hello, I am supporting Report Server 2008 R2 with integrated mode to SharePoint 2010. For one of the report, if records are over 300, the report will not show on IE, but on status bar, there will be error as: Message: Sys.WebForms.PageRequestManager

  • HT1657 my movie won't play, but the 24 hour timer is running

    I started downloading a movie, and received a message that my movie ws ready to view.  When I attempted to watch it, it would not play, but the 24 hour timer is running.  What do  do to get the movie to play and get the full 24 hours to watch it? Tha

  • AIR and PDF showing/silent printing

    Is there a way of showing PDF in an AIR application? What about PDF  silent printing? Thanks for any ideas.

  • How to create a text effect like this (see example)

    Hello everybody, i would like to create a text, pretty similiar to this shirt: http://www.kuhvet.com/wp-content/uploads/2012/06/OKC-Conference-Champs-LR-T-shirt.jpg So, the stext hould appear in 3D (kind of) and also should have a golden and silver o

  • Create an AdHoc network on boot

    Seems like a relatively trivial thing to do, but Im having issues getting this up with either systemctl service or netcfg. netcfg fails because it's trying to connect to a network, but in actuality, it just created the AdHoc network. DEBUG: wpa_cli -