* 650 Posts in 228 Topics by 68 Members Latest Member: takis76   **
IFSO PORTAL
  Advanced search
May 17, 2012, 06:54:18 pm
HomeforumHelpSearchLoginRegister**
Recent Posts
[May 05, 2012, 01:01:38 pm]

[May 03, 2012, 02:11:03 pm]

[April 30, 2012, 12:48:25 pm]

[April 30, 2012, 12:46:52 pm]

[March 02, 2012, 02:05:01 pm]

[February 01, 2012, 07:03:43 pm]

[January 10, 2012, 09:50:03 pm]

[November 06, 2011, 02:57:54 pm]

[November 05, 2011, 08:11:39 pm]

[November 03, 2011, 12:09:02 pm]
IFSO Portal  |  Forum  |  ifsoGUI  |  Bug Reports  |  Topic: GUI.SetDrawMouse(False) causes ToolTip to inherit GadgetAlpha? « previous next »
Pages: [1] Go Down Print
Author Topic: GUI.SetDrawMouse(False) causes ToolTip to inherit GadgetAlpha?  (Read 1635 times)
Mr. Write Errors Man
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 31



View Profile
« on: September 02, 2009, 08:11:15 am »

Try the code below.

For me tooltip inherits alpha from that button (= nearly transparent).

If I change the code to SetDrawMouse(true), tooltip displays correctly (= no transparency).


Code:
SuperStrict

Framework brl.glmax2d
Import brl.FreeTypeFont

Import ifsogui.GUI
Import ifsogui.panel
Import ifsogui.window
Import ifsogui.label
Import ifsogui.listbox
Import ifsogui.checkbox
Import ifsogui.button
Import ifsogui.textbox
Import ifsogui.progressbar
Import ifsogui.slider
Import ifsogui.combobox
Import ifsogui.spinner
Import brl.audio
Import brl.directsoundaudio
Import brl.wavloader

Incbin "Skins.zip"

SetGraphicsDriver GLMax2DDriver()
Graphics(800, 600)
SetAudioDriver("DirectSound")
GUI.SetResolution(800, 600)
GUI.SetUseIncBin(True)
GUI.SetZipInfo("Skins.zip", "")
GUI.LoadTheme("Skin2")
GUI.SetDefaultFont(LoadImageFont(GUI.FileHeader + "Skin2/fonts/arial.ttf", 12))
GUI.SetDrawMouse(False)


Local button:ifsoGUI_Button = ifsoGUI_Button.Create(5, 5, 75, 25, "btn1", "Button 1")
button.SetTip("Only this button has a tip")
button.SetGadgetAlpha(0.2)
GUI.AddGadget(button)

Local iFPSCounter:Int, iFPSTime:Int, iFPS:Int 'For the FPS Counter
SetClsColor(200, 200, 200)
While Not AppTerminate()
Cls

GUI.Refresh()
Flip 0
Wend
Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 450


TaskyZ
View Profile
« Reply #1 on: September 02, 2009, 08:52:28 am »

Try the code below.

For me tooltip inherits alpha from that button (= nearly transparent).

If I change the code to SetDrawMouse(true), tooltip displays correctly (= no transparency).


Code:
SuperStrict

Framework brl.glmax2d
Import brl.FreeTypeFont

Import ifsogui.GUI
Import ifsogui.panel
Import ifsogui.window
Import ifsogui.label
Import ifsogui.listbox
Import ifsogui.checkbox
Import ifsogui.button
Import ifsogui.textbox
Import ifsogui.progressbar
Import ifsogui.slider
Import ifsogui.combobox
Import ifsogui.spinner
Import brl.audio
Import brl.directsoundaudio
Import brl.wavloader

Incbin "Skins.zip"

SetGraphicsDriver GLMax2DDriver()
Graphics(800, 600)
SetAudioDriver("DirectSound")
GUI.SetResolution(800, 600)
GUI.SetUseIncBin(True)
GUI.SetZipInfo("Skins.zip", "")
GUI.LoadTheme("Skin2")
GUI.SetDefaultFont(LoadImageFont(GUI.FileHeader + "Skin2/fonts/arial.ttf", 12))
GUI.SetDrawMouse(False)


Local button:ifsoGUI_Button = ifsoGUI_Button.Create(5, 5, 75, 25, "btn1", "Button 1")
button.SetTip("Only this button has a tip")
button.SetGadgetAlpha(0.2)
GUI.AddGadget(button)

Local iFPSCounter:Int, iFPSTime:Int, iFPS:Int 'For the FPS Counter
SetClsColor(200, 200, 200)
While Not AppTerminate()
Cls

GUI.Refresh()
Flip 0
Wend

You are correct, Alpha is not being set before the tooltip is drawn.  This will be fixed.  Thanks.

Maybe there should be a GUI.SetTipAlpha(fAlpha:Float) so tool tips can be drawn with Alpha?

Do you need this fix right away, or can you wait for the next release, which should be within the next 7 days or so?
Logged
Mr. Write Errors Man
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 31



View Profile
« Reply #2 on: September 03, 2009, 01:36:53 am »

I can wait for the next release. No hurry. Smiley
Logged
Pages: [1] Go Up Print 
IFSO Portal  |  Forum  |  ifsoGUI  |  Bug Reports  |  Topic: GUI.SetDrawMouse(False) causes ToolTip to inherit GadgetAlpha? « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
TinyPortal v0.9.8 © Bloc
TechHead design by Bloc
Valid XHTML 1.0! Valid CSS!