tTitle class: some bugs

tTitle class: some bugs

Postby Marco Turco » Wed Aug 12, 2009 9:01 am

Hi,
I'm starting to use the new ttitle class and some small bugs have been found.

The bugs are:
- the tooltips doesn't runs
- the color clause in titletext doesn't runs
- there is an alignment problem using rbbuttons on ttitle when the prompt text is not present

This is an image that show these problems: www.softwarexp.co.uk/beta/ttitle.png
and this is its self contained sample


#include "fivewin.ch"
#include "ttitle.ch"
#include "ribbon.ch"

Function main()

local oWnd
local oTitle1, oTitle2, oTitle3, oTitle4, oTitle5
local oBrush1, oBrush2, oBrush3, oBrush4
LOCAL oFont1, oFont2, oFont3
local oBtn


DEFINE WINDOW oWnd TITLE "TTitle Class Test"

@ 015,150 TITLE oTitle1 size 330, 50 of oWnd SHADOW SHADOWSIZE 0 color clr_white
oTitle1:aGrdBack = { { 1, nRGB( 251, 230, 148 ), nRGB( 238, 149, 21 ) } }
oTitle1:lRound:=.f.
oTitle1:lBorder:=.t.
@ 18, 50 TITLETEXT OF oTitle1 TEXT "Some texts" color clr_white


@ 0, 210 RBBTN oBtn1 OF oTitle1 BITMAP "k:\pigc\image\24exit.bmp";
SIZE 100, 50 PROMPT "Text " TRANSPARENT MOSTLEFT TOOLTIP "Test"

@ 066,150 TITLE oTitle2 size 330, 50 of oWnd SHADOW SHADOWSIZE 0
oTitle2:aGrdBack = { { 1, nRGB( 203, 225, 252 ), nRGB( 125, 165, 224 ) } }
oTitle2:lRound:=.f.
oTitle2:lBorder:=.t.
oTitle2:Refresh()

@ 0, 210 RBBTN oBtn OF oTitle2 BITMAP "k:\pigc\image\24exit.bmp";
SIZE 100, 50 PROMPT "" TRANSPARENT MOSTLEFT TOOLTIP "Test";

activate window oWnd maximized


return nil

Any solution ?
Thanks in advance.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: tTitle class: some bugs

Postby ukoenig » Wed Aug 12, 2009 10:31 am

Marco,

I started a Design-Tool, for testing all possible Combinations.
The Main-Dialog is a Folder with 2 Pages.
The 1. Page is for the Setting of the Dialog-Background.
The 2. Page includes all possible Settings for the TTitle.
There is another Horizontal Dialog on Top and a Vertical Dialog on the Right for the different Title-Displays. There is still something to do. I think it will be finished with the next FWH 9.08-Release.

A Question :
For the Title, I have to define the Left / Top Position, I'm looking for a Solution to do a Calculation
inside a Resource.

As a sample :
I want to place a Title 80 Pixel obove a Get with a ID-Number 100.

Image

Is it possible, to receive the Top/Left - Position of a Control from Resource for a given ID-Number
can be used for the Calculation ?
It would be much easier, to place a Title inside a Dialog in Relation to a Control.

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 90 guests