erezlevi Posted October 2, 2009 Share Posted October 2, 2009 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? Link to comment Share on other sites More sharing options...
Zedna Posted October 2, 2009 Share Posted October 2, 2009 Post your code or better smaller reproducing script. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
erezlevi Posted October 2, 2009 Author Share Posted October 2, 2009 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. expandcollapse popup#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. Link to comment Share on other sites More sharing options...
erezlevi Posted October 3, 2009 Author Share Posted October 3, 2009 bump Link to comment Share on other sites More sharing options...
Yashied Posted October 3, 2009 Share Posted October 3, 2009 Post your table2.jpg. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
erezlevi Posted October 3, 2009 Author Share Posted October 3, 2009 [solved]! I used GUICtrlCreateGraphic and created the table using that! I hate this solution, I still don't get why the table is resizing in winXP and in Win2003 it doesn't! Link to comment Share on other sites More sharing options...
erezlevi Posted October 3, 2009 Author Share Posted October 3, 2009 Post your table2.jpg.i've posted it it is the tumbnail. use save target as when right click on it and name it C:\table2.jpg Link to comment Share on other sites More sharing options...
TurionAltec Posted October 3, 2009 Share Posted October 3, 2009 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 More sharing options...
erezlevi Posted October 3, 2009 Author Share Posted October 3, 2009 hi the font is Arial. don't mind about it anymore it is solved now, I'v built the table using the GUIctrlcreategraphic function. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now