A
Ammu
hi everybody! does anyone know how to get a gradient titlebar in
vbdotnet app...?
pls help. thanks in advance.
vbdotnet app...?
pls help. thanks in advance.
Ammu said:hi everybody! does anyone know how to get a gradient titlebar in
vbdotnet app...?
pls help. thanks in advance.
Hello Ammu,--------------------------------------------------------------------------------------
Ammu said:hi everybody! does anyone know how to get a gradient titlebar in
vbdotnet app...?
Sneha said:Hello Ammu,
I thought you can use this. Only a picture box. So I think it will
work in dotnet also.
If it does not you shall try modifying it.
Code------------------------
Private Sub Command1_Click()
Picture1.ScaleMode = vbPixels
Picture1.DrawWidth = 3
For i = 1 To 765
Picture1.Line (i, Picture1.ScaleHeight)-(i, 0), RGB(0, 0, Int(i / 3))
Next i
Picture1.ScaleMode = vbTwips
End Sub
--------------------------------------
In the above example I have used a Picture box
width 10400 twips and height 375
Autoredraw should be set to true
Border style fixed single and
Appearance -Flat
The measurements of the pic doesnt matter.
Again, you can try changing the RGB values
for i=1 to 765...
is it clear to you? See I have used the Blue Value in RGB as
i/3. So the maximum value of BLue will be 765 /3 that is 255
Let me know If you need further help.
But remember I use only VB 6
Regards.
Sneha (India)
(e-mail address removed)
-----------------------------------------------------------------------------Ammu said:let m know if there is any way to do that? please.....
Sneha said:-----------------------------------------------------------------------------
Hi Ammu
A little confused.
In the beginning, when you asked for a gradient title bar, I had the
impression you were using a borderless form. Now it seems you are not.
If you are using a regular form with menu bar and all, the default
title bar also will be there. Then what you want actually? Change the
colors of the default title bar?
I think I am missing some point.
If you can tell me what it is exactly, may be I can point you in the
right direction.
Best Regards Ammu.
Sneha (India)
(e-mail address removed)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------Ammu said:i wanna to change my application's default titlebar's color ! i like to
give a gradient look to my titlebar with gray and whitesmoke colors .
hi Sneha!
i wanna to change my application's default titlebar's color ! i like to
give a gradient look to my titlebar with gray and whitesmoke colors .
i already made my application gui with a metallic gray gradient
look(including menu bar and all) except titlebar.i am just trying to
change my titlebar's color .
regards
Ammu
Sneha said:-------------------------------------------------------------------------------
Hi Ammu
Here I am stumped! I could not remember coming accross such a code
Item. I wont be of any help on these line.
All the same, these are some thoughts...
I doubt the outcome of the exercise. The standard Form is almost always
at the mercy or otherwise of the end user. For example, The standard
Form extensively depends on the System/OS settings. If we prefer the
cool, sober, rectangular appearance and incorporate the same in our
forms, calamity is still only one or two clicks away. As long as the
user also has the same taste, we win. On the other hand, if he switches
to Windows XP style? Our hard work goes awry.
If you are a developer with an aesthetic bend as the case seems to be,
I would suggest Custom forms itself. Of course, you have to take care
of everything, The backGround color/Picture, Icon, Title Bar
Color/appearance, Minimize/Maximize/Close buttons, Caption, resizing
issues everything. But that is worth the effort. What ever the whim and
fancy of the user, your form remains the same.
And again, that is NOT a difficult task as it sounds. It is very easy
to Create custom forms with all the features of the standard form and
more. You can create forms of any shape.
If you need it, I am in a position to give you all the guidance in this
line and related graphic issues.
Once again, I am in VB 6. Translating my guidance into dotnet
compatibility would be your headache.
Anyway, I will watch this thread.
Sorry, I could not help you in the current strategy
Regards
Sneha (India)
(e-mail address removed)