tooltip for toolbars
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Well actually I'm fine with added tooltips in the main lib (for now ... but you never know!).
Danilo,
if you want to improve your lib you can make a switch for different styles like:
small buttons, big buttons, buttons with text only, buttons with pictures only, buttons with pictures and text, old style buttons (they look like normal buttons) new style buttons and if it works to put all different gadgets on it... (I think you have this already? I saw once different gadgets in your example)
I let you know if there is more that I can think of.
Thanks in advance Danilo.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Well actually I'm fine with added tooltips in the main lib (for now ... but you never know!).
Danilo,
if you want to improve your lib you can make a switch for different styles like:
small buttons, big buttons, buttons with text only, buttons with pictures only, buttons with pictures and text, old style buttons (they look like normal buttons) new style buttons and if it works to put all different gadgets on it... (I think you have this already? I saw once different gadgets in your example)
I let you know if there is more that I can think of.
Thanks in advance Danilo.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
Heya Franco !!
I dont understand what you want to say:
>you can make a switch for different styles like:
>small buttons, big buttons,
Buttons can have _any_ size with my Library.
(20x20, 50x50, 100x50, 200x30, ...)
>buttons with text only,
Maybe. Buttons with Text cant have Tooltips.
But you can add the text directly to the image
(for _text only_ make a little .BMP and write
your text in it with a paint program).
>buttons with pictures and text,
See above.
>buttons with pictures only,
Huh ?? Have you tried my Library ??
Every Button has a Picture...
>old style buttons (they look like normal buttons)
>new style buttons
Old Style / New Style ??
Do you have a example of this (ScreenShot?) ??
Thanks,
...Danilo
(registered PureBasic user)
Heya Franco !!
I dont understand what you want to say:
>you can make a switch for different styles like:
>small buttons, big buttons,
Buttons can have _any_ size with my Library.
(20x20, 50x50, 100x50, 200x30, ...)
>buttons with text only,
Maybe. Buttons with Text cant have Tooltips.
But you can add the text directly to the image
(for _text only_ make a little .BMP and write
your text in it with a paint program).
>buttons with pictures and text,
See above.
>buttons with pictures only,
Huh ?? Have you tried my Library ??
Every Button has a Picture...
>old style buttons (they look like normal buttons)
>new style buttons
Old Style / New Style ??
Do you have a example of this (ScreenShot?) ??
Thanks,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
OK I will send you a screenshot.
As you will see there is a toolbar with images from a windows system file, and text (not inside the image!) and tooltip.
With oldstyle/ newstyle i meant flat buttons and normal (old) ones.
Sorry for the inconvenience.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
OK I will send you a screenshot.
As you will see there is a toolbar with images from a windows system file, and text (not inside the image!) and tooltip.
With oldstyle/ newstyle i meant flat buttons and normal (old) ones.
Sorry for the inconvenience.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
I've added the 'ToolBarToolTip(ButtonID, Text$)' to the toolbar library. New library is available to http://www.purebasic.com/update/ToolBar
Fred - AlphaSND
I've added the 'ToolBarToolTip(ButtonID, Text$)' to the toolbar library. New library is available to http://www.purebasic.com/update/ToolBar
Fred - AlphaSND
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Fred, I have serious problems with AttachToolBar if I use the new library.
In some code it works fine, and in my biggest project it crashes with:
"Toolbar object not initialized."
Can't figure out why, because like I said, in an another code it works fine.
The debugger shows correct values for toolbar# and windowID (handle) so I'm kind of lost.
I can put the toolbar value by hand like:
AttachToolBar(1, WindowID())
but it doesnt help.
Just found out: the real toolbar# is 1.
If I code: AttachToolBar(1, WindowID()) it crashes.
If I code: AttachToolBar(2, WindowID()) it crashes.
If I code: AttachToolBar(3, WindowID()) it works (no crash) but the toolbar don't show up.
(well like I said, the real toolbar# is 1)
Oh forgot to mention that the toolbar is drawn in the third window of an application.
And with the old library is all ok - but I have no ToolTips.
BTW:
I had to copy all my nested include files together to one file because the debugger shows always the main file instead of the actual include file code - suppose this is a bug.
And also bad is your description for ToolBarToolTip:
ToolBarToolTip(ButtonID, Text$)
ButtonID seems to be wrong because ID is the handle not the PureBasic Button #.
like WindowID() is not the PureBasic Window # it is the handle.
If I recall it right there are some discrepancies like that already in the manual, and it is a little confusing...
Please use ID for handle and NB or # or whatever for the PureBasic #.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Fred, I have serious problems with AttachToolBar if I use the new library.
In some code it works fine, and in my biggest project it crashes with:
"Toolbar object not initialized."
Can't figure out why, because like I said, in an another code it works fine.
The debugger shows correct values for toolbar# and windowID (handle) so I'm kind of lost.
I can put the toolbar value by hand like:
AttachToolBar(1, WindowID())
but it doesnt help.
Just found out: the real toolbar# is 1.
If I code: AttachToolBar(1, WindowID()) it crashes.
If I code: AttachToolBar(2, WindowID()) it crashes.
If I code: AttachToolBar(3, WindowID()) it works (no crash) but the toolbar don't show up.
(well like I said, the real toolbar# is 1)
Oh forgot to mention that the toolbar is drawn in the third window of an application.
And with the old library is all ok - but I have no ToolTips.
BTW:
I had to copy all my nested include files together to one file because the debugger shows always the main file instead of the actual include file code - suppose this is a bug.
And also bad is your description for ToolBarToolTip:
ToolBarToolTip(ButtonID, Text$)
ButtonID seems to be wrong because ID is the handle not the PureBasic Button #.
like WindowID() is not the PureBasic Window # it is the handle.
If I recall it right there are some discrepancies like that already in the manual, and it is a little confusing...
Please use ID for handle and NB or # or whatever for the PureBasic #.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
Franco:
>OK I will send you a screenshot.
Thanks. Misunderstanding again...
>As you will see there is a toolbar with images from
>a windows system file, and text (not inside the image!)
>and tooltip.
As i said:
> "Buttons with Text cant have Tooltips."
Solution:
> "But you can add the text directly to the image
> (for _text only_ make a little .BMP and write
> your text in it with a paint program)."
Sounds like you thought it cant be done
with WinAPI, but i meant it cant be done
with my Library.
The provided Solution is very easy.
>With oldstyle/ newstyle i meant flat buttons
>and normal (old) ones.
I´m using Flat Buttons atm, because thats
the standard for the new Windows GUI.
The old Buttons are looking very bad, so
i thought nobody wants the old and bad
stuff anymore.
Anyway... thanks.
cya,
...Danilo
(registered PureBasic user)
Franco:
>OK I will send you a screenshot.
Thanks. Misunderstanding again...

>As you will see there is a toolbar with images from
>a windows system file, and text (not inside the image!)
>and tooltip.
As i said:
> "Buttons with Text cant have Tooltips."
Solution:
> "But you can add the text directly to the image
> (for _text only_ make a little .BMP and write
> your text in it with a paint program)."
Sounds like you thought it cant be done
with WinAPI, but i meant it cant be done
with my Library.
The provided Solution is very easy.
>With oldstyle/ newstyle i meant flat buttons
>and normal (old) ones.
I´m using Flat Buttons atm, because thats
the standard for the new Windows GUI.
The old Buttons are looking very bad, so
i thought nobody wants the old and bad
stuff anymore.
Anyway... thanks.
cya,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
It works fine now (as far as I can tell...)
merci beaucoup
PS. Well 6 month of french 20 years ago is not sufficient...
but the babylon translator is a big help for this [:-)]
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
It works fine now (as far as I can tell...)
merci beaucoup
PS. Well 6 month of french 20 years ago is not sufficient...
but the babylon translator is a big help for this [:-)]
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
@Franco:
>buttons with text only
Added.
Its great for making menus.
(Menus with mixed Text/Image buttons)
>old style buttons (they look like normal buttons)
>new style buttons
Default is the new (flat) style.
Added command SetTBFlatStyle(#FALSE)
for you, so you can use old style buttons.
>and if it works to put all different gadgets on it...
Yep, it works now.
I think i´ll release next version next weekend...
...we will see.
thanks,
...Danilo
(registered PureBasic user)
@Franco:
>buttons with text only
Added.
Its great for making menus.
(Menus with mixed Text/Image buttons)
>old style buttons (they look like normal buttons)
>new style buttons
Default is the new (flat) style.
Added command SetTBFlatStyle(#FALSE)
for you, so you can use old style buttons.
>and if it works to put all different gadgets on it...
Yep, it works now.
I think i´ll release next version next weekend...
...we will see.
thanks,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm