Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a form background be hidden
Message
De
12/02/2003 10:26:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00752217
Message ID:
00752280
Vues:
12
Gerard, the buttons will always be on a form with a border. The border can be set to a minimum of value 0 - No border. Then you must arrange your buttons in the desired manner.

Then you have to "force" the width.height of your form to accept a width /height to be less than 114 by entering a .MINHEIGHT and .MINWIDTH value of -1. You can do this in the INIT event of the form and then set the desired width and height to what you really want. Its some type of VFP bug - see Re: Is There a Minimum Value for Form Width Thread #655288 Message #655293

The background can only be hidden by placing the buttons in such a way that they hide the background. Like a toolbar - all buttons touch each other type of style.

If you want the buttons seperated from each other then the only thing I can think off is to create one form as above per button. A bit messy I think?


>Hi Jos, thanks for your reply
>
>Your suggstions nearly gives me what I want. You can still see the outline of the form and its background,and I dont seem to be able to get the width less than 114. What I am trying to end up with is my 6 buttons just hanging on the screen, as if the buttons have been places on the screen,not on a form on a screen.
>
>Regards,
>
>Gerard
>
>
>
>>Gerard, the following form properties will remove everything about the form which makes it look like a form. Put all your buttons together on the form - eg like a toolbar. Size the form around the buttons as required. Then set the following
>>
>>
>>.BORDERSTYLE=1         && But then you cannot resize it
>>.CAPTION="My Buttons"  && Or whatever caption you like or none at all
>>.CONTROLBOX=.F.        && No top left control box
>>.MAXBUTTON=.F.         && No max button
>>.MINBUTTON=.F.         && No min button
>>
>>
>>
>>>Hi.
>>>I have a form with just 6 command buttons on it.
>>>Is there a way to hide everything to do with the form, except the Buttons ?
>>>
>>>I am doing this so that I can emulate a toolbar .
>>>I have code as follows:
>>> Do MyForm
>>> Do MyMenu
>>> Read Events
>>>
>>>On MyForm, I just have the 6 command buttons which I want to line up on the left hand side of the desk top so I can select them at any time during the APP.
>>>
>>>Maybe there is another way to accomplish what I want to do but I dont know of any way of just getting Buttons to appear on the desk top.
>>>
>>>Regards,
>>>
>>>Gerard
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform