FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Font problems
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Font problems
Posted: Tue Jun 24, 2008 03:29 PM

Hi all,
I have a strange problem with the dialogs fonts.

I made a first-time-user menu under the buttonbar (see www.softwarexp.co.uk/beta/image1.jpg).

For display space reasons I need to destroy and to create this menu a lot of times when the app is running.

The problem is that after some destroy/create the standard font used for a lot of controls change (see www.softwarexp.co.uk/beta/image2.jpg)

Any ideas about this problem ?
How can I check if some buttonbar resources are not released ?

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Font problems
Posted: Tue Jun 24, 2008 05:22 PM

Marco,

Instead of creating and destroying the menu, why don't you just hide() and show() it?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Font problems
Posted: Tue Jun 24, 2008 07:47 PM

Hi James,
this because I need to display the first-time-user menu in two mode:
- the first (see www.softwarexp.co.uk/beta/mode1.jpg ) when a Outlook style dialog is active
- the second (see www.softwarexp.co.uk/beta/mode2.jpg) when a standard dialog is active or the customer is in the main menu

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Font problems
Posted: Tue Jun 24, 2008 08:35 PM
Marco,

You can still hide() one menu and show() the other.

if lMenu1
   oMenu2:hide()
   oMenu1:show()
else
   oMenu1:hide()
   oMenu2:show()
endif


James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Font problems
Posted: Tue Jun 24, 2008 09:46 PM
James Bott wrote:Marco,

You can still hide() one menu and show() the other.

if lMenu1
   oMenu2:hide()
   oMenu1:show()
else
   oMenu1:hide()
   oMenu2:show()
endif


James



Yes, it seem to runs without problems with this solution.

Thanks for the suggestion.
Best Regards,



Marco Turco

SOFTWARE XP LLP

Continue the discussion