4 General Beginner questions!
1. When a form is loaded, the window is positioned: Top = XX Left = XX. I want to position it like this:
Top = 10
Right = 10
I couldnt find any property by which I can do this. I thought if I could do this by doing it like this:
Top = 10
Left = The number equal to (800 -10 - Width of form)
It did the trick but I wonder if it will work on a machine with display settings "640 x 480" or ""1024 x 768"?
2. I have set the border to None so that there is no title bar. I have the caption set to "Something". Now "Something" appears on the taskbar when the form is loaded. I want to make it appear like the caption of other windows appear in the task bar i.e. like "a small icon + Something". I searched the properties and found the Icon property. But when I set an Icon to that property it does not appear in the task bar. Is there any other property? How can I do this?
3. I have 4 buttons on my form that are working as Tabs. So tat when the user clicks on a tab, the relevant Tab info will be displayed. How can I make appear the different Tab info when a user switches on to a different Tab.
I solved it like this; by making 4 frames and putting the contents of each Tab into the relevant frames. Then I made the 1st frame Visible = True and the remaining 3 Visible=False. Then on each button I put the event to make the relevant frame Visible=True and the remainig frames Visible=False.
Is the above method the right way? But it makes managing the frames really hard because in the design mode all the frames are piled one above the other and it is realy hard to edit the frames. How to solve this??
4. I have a form with signin button and username and password text boxes on it. I want that when the user puts the data and clicks on the button, the button and textboxes disappear and a small animation starts (as it does when you sign in to the MSN messenger) and when the sign in is successful the animation stops and the Tree View of contacts appear. Suppose I have that animation as a .Gif file or an .swf (flash) file. How can I do this?
Thanx for being so patient to read all these questions. It would be very kind if you people help me out. Thanx in advance! :)
Re: 4 General Beginner questions!
Quote:
Originally posted by Skill Jaan
1. When a form is loaded, the window is positioned: Top = XX Left = XX. I want to position it like this:
Top = 10
Right = 10
I couldnt find any property by which I can do this. I thought if I could do this by doing it like this:
Top = 10
Left = The number equal to (800 -10 - Width of form)
It did the trick but I wonder if it will work on a machine with display settings "640 x 480" or ""1024 x 768"?
2. I have set the border to None so that there is no title bar. I have the caption set to "Something". Now "Something" appears on the taskbar when the form is loaded. I want to make it appear like the caption of other windows appear in the task bar i.e. like "a small icon + Something". I searched the properties and found the Icon property. But when I set an Icon to that property it does not appear in the task bar. Is there any other property? How can I do this?
3. I have 4 buttons on my form that are working as Tabs. So tat when the user clicks on a tab, the relevant Tab info will be displayed. How can I make appear the different Tab info when a user switches on to a different Tab.
I solved it like this; by making 4 frames and putting the contents of each Tab into the relevant frames. Then I made the 1st frame Visible = True and the remaining 3 Visible=False. Then on each button I put the event to make the relevant frame Visible=True and the remainig frames Visible=False.
Is the above method the right way? But it makes managing the frames really hard because in the design mode all the frames are piled one above the other and it is realy hard to edit the frames. How to solve this??
4. I have a form with signin button and username and password text boxes on it. I want that when the user puts the data and clicks on the button, the button and textboxes disappear and a small animation starts (as it does when you sign in to the MSN messenger) and when the sign in is successful the animation stops and the Tree View of contacts appear. Suppose I have that animation as a .Gif file or an .swf (flash) file. How can I do this?
Thanx for being so patient to read all these questions. It would be very kind if you people help me out. Thanx in advance! :)
1. If the units are set to "Twips" then the form will show at the same location on any resolution
2.Go to forms Icon property and select an icon from your system (max 32x32) ..If you want to set an icon for project.... go to project properties and set the icon to the above forms icon
3.That is a right way for tabs... but you can make your form big one and arrange all the frames so that you can edit them.. and use forms move method during form load event to place them correctly
4. Som'ne could answer this.....I'vent worked on Anim!!!! Gucd luck