Jump to content

huge problem in my GUI


Recommended Posts

hi,

I wrote a code that uses a table picture in its background. the problem I have is that in winXP that I wrote it on everything looks great. please have a look at pic1.jpg.

then i've tried to run it on win2003 32 bit. all the rest of the fileds are ok but the table picture is set wrong:

please have a look at pic2.jpg.

what do i do?

post-29197-12544789611004_thumb.jpg

post-29197-12544789720789_thumb.jpg

Link to comment
Share on other sites

Post your code or better smaller reproducing script.

attached picture - table2.jpg put it in c:\ try it in winXP then in Win2003 32 bit.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_outfile=test-for-autoit.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Run_Debug_Mode=Y
Opt("GUIOnEventMode", 1)
#include <File.au3>
#include <Array.au3>
#include <GUIconstants.au3>
#include <String.au3>
#include <FontConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <StructureConstants.au3>
#include <WinAPI.au3>
#include <WindowsConstants.au3>

Dim $EREZ[700]
Global $skillfirst[11], $skillsecond[11], $skillthird[11], $skillfourth[11], $skillfive[11], $skillsix[11]
Global $skillseven[11], $skilleight[11], $skillnine[11]
Global $skillnumbertoname[30]
Global $skillnumberforcm[10]

$GUI = GUICreate("GUI", 950, 400, 60, 20)
$GUIBKColor = GUISetBkColor(0xffffff, $GUI)
$pic = GUICtrlCreatePic("C:\table2.jpg", 82, 106, 800, 250)
;$pic1 = GUICtrlCreatePic("c:\ibm-logo.jpg", 40, 20, 105, 55)
;$pic2 = GUICtrlCreatePic("c:\bezeq-logo.jpg", 800, 20, 125, 55)
$header = GUICtrlCreateLabel("מערכת תצוגת תורים", 350, 40, 300, 50)
GUICtrlSetFont(-1, 24, 600, 4)
$fotter = GUICtrlCreateLabel("Developed by Erez-Levi Zarini....", 400, 380, 200, 15)


$header1 = "תור"
GUICtrlCreateLabel($header1, 790, 120)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header2 = "שיחות"
$header20 = "ממתינות"
GUICtrlCreateLabel($header2, 667, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header20, 665, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header3 = '  זמן'
$header30 = 'המתנה'
GUICtrlCreateLabel($header3, 600, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header30, 600, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header4 = ' כמות'
$header40 = 'סוכנים'
GUICtrlCreateLabel($header4, 530, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header40, 530, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header5 = 'סוכנים'
$header50 = 'זמינים'
GUICtrlCreateLabel($header5, 460, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header50, 460, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header6 = 'שיחות'
$header60 = 'ACD'
GUICtrlCreateLabel($header6, 395, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header60, 395, 128, 39, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header7 = 'סוכנים'
$header70 = 'בהפסקה'
GUICtrlCreateLabel($header7, 322, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header70, 322, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header8 = 'שיחות'
$header80 = 'חוץ'
GUICtrlCreateLabel($header8, 250, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header80, 255, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header9 = 'אחוז'
$header90 = 'שירות'
GUICtrlCreateLabel($header9, 185, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header90, 182, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
$header10 = 'לא'
$header101 = 'בשימוש'
GUICtrlCreateLabel($header10, 122, 110)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUICtrlCreateLabel($header101, 105, 128, 42, 15)
GUICtrlSetBkColor(-1, 0xD7DBDB)
GUISetOnEvent($GUI_EVENT_CLOSE, '_exit')

GUISetState ()
while True
    sleep (2000)
WEnd


Func _exit()
    Exit
EndFunc   ;==>_exit

Thanks for helping.

post-29197-12544870742697_thumb.jpg

Link to comment
Share on other sites

What font is being used? Is it an OS default one that might change depending on the Visual theme in use on the computer / OS? Maybe try specifying a font (keeping in mind what is standard with the OS)

I notice the underlined title in the Windows XP sample is larger than the 2K3. And the general Window appearance of your Win2K3 more closer matches my XP's "Classic" appearance than does your XP sample.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...