PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Rudolf Furstauer on April 30, 2010, 06:53:56 AM

Title: Toolbartext
Post by: Rudolf Furstauer on April 30, 2010, 06:53:56 AM
What am I doing wrong?

If I create an application less than 1024x600 pixels,
the toolbar is displayed on a Netbook(10" 1024x600)without text.
When I start the same application on a monitor with 1280x1024 or greater,
the Toolbar is displayed properly with text.

Other applications display correctly on the netbook.
Only applications designed with FF3 show this behavior.

Thank's for Help
Title: Re: Toolbartext
Post by: Paul Squires on April 30, 2010, 08:42:11 AM
I believe that I saw code in a PB example (the editor sample code maybe?) that would test for screen resolution prior to allowing the text captions to display.

I just checked the code output of one of my applications and here is what is generated for toolbar text captions:


    ' Add text descriptions only if running a 'hi-res' screen
    If GetSystemMetrics( %SM_CXFULLSCREEN ) >= 1024 Then
       FLY_TBstring = "Home" & $Nul _
       & "Customers" & $Nul _
       & "Suppliers" & $Nul _
       & "General" & $Nul _
       & "Sales" & $Nul _
       & "Purchases" & $Nul _
       & "Inventory" & $Nul _
       & "Projects" & $Nul _
       & "Payroll" & $Nul _
       & $Nul
       SendMessage FLY_hToolbar, %TB_ADDSTRING, 0, StrPtr(FLY_TBstring)
    End If


I can certainly remove that screen resolution test. I'll do so for v3.08.

Title: Re: Toolbartext
Post by: Roger Garstang on April 30, 2010, 06:16:09 PM
Yeah, doing web/browser work, I haven't seen many screens smaller than that lately anyway.