2009-10-02 so-uprel merge CWS jskhgpilot4 2009-10-01 skotti #i104246# - Toolbar stability and fix for e_update.bas on solaris - using .notExists() 2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - better close the dialog if we run into the backup 2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - works locally, distributing to all other machines 2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - the function even had a logic-error which prevented it from working correctly (i think, going to test that) 2009-10-01 skotti #i104246# - Tried to enhance hWaitFOrObject() - the function even had a logic-error which prevented it from working correctly (i think, going to test that) 2009-09-30 skotti #i104246# - basic_dialog_i18n_import.inc now sports better warning message if the number of languages is incorrect 2009-09-30 skotti #i104246# - Added issue-id for crash on Solaris x86 (#i105476) 2009-09-30 skotti #i105407# Added new label to the list 2009-09-30 skotti #i104246# - Added a fallback method to the original one for finding the basis-directory on UNIX/Linux 2009-09-30 skotti #i104246# - reverted removal of iSection. I still have no idea what it does but without it the results are different but not better 2009-09-29 skotti #i104246# - The OOo Improvement Program tabpage is only visible if the BUILD_SPECIAL flag is given when building the Application. In the BUILD_SPECIAL section two files are created which will not be there otherwise. In master.inc we now test for the presence of one of the files. If found, we have the OOoImp-stuff installed and the global variable is set to TRUE. In order to find the file i had to fix the retrieval routine for the gOfficeBasisPath (which had a double gNetzOfficePath hidden in the variable sFile for all Unixes). The functin probably never worked, we were just lucky that it was only used in one place. Now - for some reason - we have warnings in the g_options_applications.inc test cases which need to be resolved. I reformatted the file (some indentions were broken) and removed duplicate variable initializations (this left unfinished, iSection should be removed from the control program and be inserted into the test cases themselves so currently the test results only deliver bogus). 2009-09-28 skotti #i104601 - Another problem found: After the fully automatic creation of the hid.lst we have lost the association to the TextImport dialog, reverting back to old name FilterAuswahl 2009-09-28 skotti Experiment: Completely remove hCloseAndLooseDocument 2009-09-28 skotti Experiment: Deprecate hCloseAndLooseDocument - it does nothing else than hCloseDocument 2009-09-28 skotti #i105407# - eliminated function hOpenFileAndIgnoreMacroWarning() as it already exists as a two step variant (hFileOpen+hAllowMacroExecution). Removed readme-file from framework/tools as the content was not up to date anymore 2009-09-28 skotti #i105407# - remove unused functions 2009-09-28 skotti #i104601#, #i105407# - small fixes 2009-10-02 vg CWS-TOOLING: integrate CWS bserver48 2009-09-24 19:44:37 +0200 kz r276428 : #160697# use source_config 2009-10-01 vg CWS-TOOLING: integrate CWS automationdev300m58cat0 2009-09-29 14:46:30 +0200 oc r276530 : #i105448# sleep added to resolv timingproblem 2009-09-28 10:29:46 +0200 oc r276482 : #i105404# t_ToolsMacro needs saved file 2009-09-27 10:51:09 +0200 tbo r276478 : #105393# on MacOS X only 3 items in tools menu 2009-09-25 18:02:25 +0200 oc r276473 : CWS-TOOLING: rebase CWS automationdev300m58cat0 to trunk@276429 (milestone: DEV300:m60) 2009-09-24 11:06:00 +0200 hde r276411 : save test-files locally 2009-09-23 15:40:07 +0200 hde r276400 : deleting of autotext optimized 2009-09-23 15:39:20 +0200 hde r276399 : Dialog 'Bereiche' opened after deleting autotext 2009-09-23 10:42:26 +0200 jsk r276370 : Added warnlog for exceeded timeout, i want the test to warn instead of aborting. Connected issue is #i105289# 2009-09-22 10:41:22 +0200 oc r276347 : #i105254# c_arrayconstants.inc enhanced 2009-09-21 20:37:26 +0200 tbo r276344 : #i105249# workaround firststartwizard regression by calling hDisableQuickstarterAPI() 2009-09-17 10:55:59 +0200 wg r276231 : i105141 2009-09-16 09:20:58 +0200 oc r276191 : #i105109# sleeps increased 2009-10-01 vg CWS-TOOLING: integrate CWS sw32bf04 2009-09-22 Michael Stahl galobj.hxx: do not export SgaObject methods (fixes wntmsci12 build) 2009-09-21 Michael Stahl #i105149# #i93308# svx: unofield.cxx: support field services with proper case 2009-09-21 Michael Stahl #i105149# #i102468# sc: servuno.cxx: support field services with proper case 2009-09-21 Michael Stahl #i105149# txtflde.cxx: support docinfo field services with proper case 2009-09-18 Michael Stahl #i105148# fmtatr2.cxx: SwFmtMeta::Clone(): avoid assert on clone pool default 2009-09-18 Michael Stahl #i105148# fmtatr2.cxx: SwFmtMeta::~SwFmtMeta(): check if m_pMeta != 0 2009-09-18 Michael Stahl #i105179# unocoll.cxx: SwXFrames::getByName(): add missing breaks 2009-09-18 Michael Stahl dbgoutsw.cxx: explicitly convert from SwNodeIndex to SwPosition 2009-09-18 Michael Stahl galobj.hxx: export class SgaObject from svxcore, needed by unogalitem.cxx 2009-09-17 Michael Stahl #i105149# txtflde.cxx: compare text field prefix case-insensitively 2009-09-16 Michael Stahl #i105117# docdde.cxx: fix possible NULL dereference (patch by cmc) 2009-09-16 Michael Stahl #i105124# docdde.cxx: fix use-after-free bug: make _FindItem member String 2009-10-01 vg CWS-TOOLING: integrate CWS impressnotes03 2009-09-28 16:30:17 +0200 cl r276496 : #i105382# use correct method to get master page 2009-09-28 12:23:04 +0200 cl r276486 : #i105266# also save text on close to avoid focus trouble under linux 2009-09-25 13:59:50 +0200 cl r276456 : #i105266# resolved a merge conflict 2009-09-25 13:57:24 +0200 cl r276454 : #i105266# resolved a merge conflict 2009-09-25 13:51:12 +0200 cl r276450 : #i105266# resolved a merge conflict 2009-09-25 13:40:08 +0200 cl r276447 : #i105266# resolved a merge conflict 2009-10-01 vg CWS-TOOLING: integrate CWS cmcfixes62 2009-09-22 21:19:24 +0200 cmc r276365 : #i100000# that's the most plausible explanation, -D$(CVER) is needed by scp2 under windows 2009-09-19 16:10:36 +0200 cmc r276303 : #i100000# revert this for no partically good reason 2009-09-18 14:16:47 +0200 cmc r276279 : remove extra build depend 2009-09-18 08:56:15 +0200 cmc r276265 : #i100000# rerun autoconf 2009-09-17 14:59:38 +0200 cmc r276245 : CWS-TOOLING: rebase CWS cmcfixes62 to trunk@276192 (milestone: DEV300:m59) 2009-09-10 16:40:49 +0200 pl r276041 : fix warning 2009-09-10 11:34:55 +0200 pl r276026 : disable warning from system header 2009-09-09 19:30:45 +0200 pl r276013 : use osl_getAsciiFunctionSymbol instead of strange cast 2009-09-09 19:25:32 +0200 pl r276012 : add some casting hacks to make compile on solaris cc 2009-09-09 19:10:48 +0200 pl r276009 : add missing Configure option for solaris sparce 32bit 2009-09-09 18:37:05 +0200 pl r276008 : merge fix for #i104525# into moved code 2009-09-07 13:28:08 +0200 cmc r275894 : CWS-TOOLING: rebase CWS cmcfixes62 to trunk@275801 (milestone: DEV300:m57) 2009-08-28 12:36:27 +0200 cmc r275523 : CWS-TOOLING: rebase CWS cmcfixes62 to trunk@275331 (milestone: DEV300:m56) 2009-08-26 12:56:18 +0200 cmc r275413 : #i104088# use the right headers in the right place 2009-08-25 17:07:50 +0200 cmc r275372 : #i104500# make openssl build on linux that isn't x86 or x86_64 2009-08-25 13:08:48 +0200 cmc r275347 : #i89237# pretty picswitch up 2009-08-25 10:58:09 +0200 cmc r275342 : #i104489# remove last unused code in starmath 2009-08-25 10:23:33 +0200 cmc r275338 : #i104088# clean up the define post-move 2009-08-24 13:46:57 +0200 cmc r275310 : #i104088# 64bit odbc api changes 2009-08-24 13:42:52 +0200 cmc r275309 : #i89237# unify linux platform mks under a generic parent 2009-08-24 13:19:52 +0200 cmc r275307 : #i104455# remove unused code 2009-08-24 13:10:56 +0200 cmc r275306 : #i104088# 64bit odbc api changes 2009-08-24 10:07:50 +0200 cmc r275293 : #i104306# move recent-used to vcl 2009-08-24 09:32:08 +0200 cmc r275291 : #i104306# move recent-used to vcl 2009-08-23 22:01:07 +0200 cmc r275286 : #i104306# move recently-used to vcl 2009-08-22 15:25:25 +0200 cmc r275285 : #i104088# 64bit odbc api changes 2009-08-21 17:52:40 +0200 cmc r275268 : #i104306# move recently-used to vcl 2009-08-21 14:38:26 +0200 cmc r275257 : #i104408 make these headers ready for c++0x 2009-08-21 14:20:19 +0200 cmc r275251 : #i104406# avoid overlapping strcpy to avoid bustage on recent toolchains 2009-08-21 14:14:25 +0200 cmc r275250 : #i104385# silence 64bit warnings
411 lines
13 KiB
PHP
Executable File
411 lines
13 KiB
PHP
Executable File
'encoding UTF-8 Do not remove or change this line!
|
|
'*******************************************************************************
|
|
'* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
'*
|
|
'* Copyright 2008 by Sun Microsystems, Inc.
|
|
'*
|
|
'* OpenOffice.org - a multi-platform office productivity suite
|
|
'*
|
|
'* $RCSfile: options_tools.inc,v $
|
|
'*
|
|
'* $Revision: 1.1 $
|
|
'*
|
|
'* last change: $Author: jsi $ $Date: 2008-06-16 12:19:06 $
|
|
'*
|
|
'* This file is part of OpenOffice.org.
|
|
'*
|
|
'* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
'* it under the terms of the GNU Lesser General Public License version 3
|
|
'* only, as published by the Free Software Foundation.
|
|
'*
|
|
'* OpenOffice.org is distributed in the hope that it will be useful,
|
|
'* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
'* GNU Lesser General Public License version 3 for more details
|
|
'* (a copy is included in the LICENSE file that accompanied this code).
|
|
'*
|
|
'* You should have received a copy of the GNU Lesser General Public License
|
|
'* version 3 along with OpenOffice.org. If not, see
|
|
'* <http://www.openoffice.org/license.html>
|
|
'* for a copy of the LGPLv3 License.
|
|
'*
|
|
'/******************************************************************************
|
|
'*
|
|
'* owner : thorsten.bosbach@sun.com
|
|
'*
|
|
'* short description : tools for options tests
|
|
'*
|
|
'\******************************************************************************
|
|
|
|
sub GetPathList ( ls1 () as String, ls2 () as String, ls3 () as String )
|
|
|
|
Dim lsInterim ( 50 ) as String
|
|
Dim i as Integer
|
|
Dim sList as String
|
|
Dim bNewCreate as Boolean
|
|
'///routine to get the correct comparison list for path-options
|
|
'///+ if the list does not exist => CreatePathList
|
|
'///+ you can find the lists for all languages in separate files
|
|
'///+[TesttoolPath]\framework\options\input\paths_[LanguageCode].txt
|
|
ls1 (0) = 0 : ls2 (0) = 0 : ls3 (0) = 0
|
|
sList = gTesttoolPath + "framework\optional\input\options\paths_" + iSprache + ".txt"
|
|
sList = convertpath( sList )
|
|
|
|
if App.Dir ( sList ) = "" then
|
|
bNewCreate = TRUE
|
|
CreatePathList
|
|
else
|
|
bNewCreate = FALSE
|
|
end if
|
|
|
|
if bAsianLan = TRUE then
|
|
|
|
select case iSystemSprache
|
|
case 01, 33, 34, 39, 46, 49
|
|
ListRead ( lsInterim (), sList, "utf8" )
|
|
case else
|
|
|
|
if bNewCreate = FALSE then
|
|
CreatePathList
|
|
endif
|
|
|
|
ListRead ( lsInterim (), sList, "utf8" )
|
|
end select
|
|
|
|
else
|
|
ListRead ( lsInterim (), sList , "utf8" )
|
|
end if
|
|
|
|
for i = 1 to ListCount ( lsInterim () )
|
|
ListAppend ( ls1 (), Left ( lsInterim (i), Instr ( lsInterim (i), ";" ) - 1 ) )
|
|
ListAppend ( ls2 (), Mid ( lsInterim (i), Len ( lsInterim (i) ) - 2, 1 ) )
|
|
ListAppend ( ls3 (), Right ( lsInterim (i), 1 ) )
|
|
next i
|
|
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub CreatePathList
|
|
|
|
Dim i as Integer, iNum as Integer
|
|
Dim sType as String, sVario as String, sList as String
|
|
Dim lsInterim ( 50 ) as String
|
|
'///create the comparison list for path-options
|
|
'///+[TesttoolPath]\framework\options\input\paths_[LanguageCode].txt
|
|
sList = ConvertPath ( gTesttoolPath + "framework\optional\input\options\paths_" + iSprache + ".txt" )
|
|
call hNewDocument()
|
|
ToolsOptions
|
|
hToolsOptions ( "StarOffice", "Paths" )
|
|
|
|
for i=1 to Typ.GetItemCount
|
|
|
|
Kontext "TabPfade"
|
|
|
|
if i=1 then
|
|
Typ.TypeKeys "<Down>"
|
|
Typ.TypeKeys "<Home>"
|
|
else
|
|
Typ.TypeKeys "<Down>"
|
|
end if
|
|
|
|
sType = Typ.GetSelText
|
|
|
|
if Bearbeiten.IsEnabled then
|
|
Bearbeiten.Click
|
|
|
|
Kontext "OeffnenDlg"
|
|
|
|
if OeffnenDlg.Exists then
|
|
sVario = 1
|
|
iNum = 1
|
|
OeffnenDlg.Cancel
|
|
end if
|
|
|
|
Kontext "PfadeAuswaehlen"
|
|
if PfadeAuswaehlen.Exists then
|
|
sVario = 2
|
|
iNum = Pfade.GetItemCount
|
|
PfadeAuswaehlen.Cancel
|
|
end if
|
|
|
|
else
|
|
sVario = 0
|
|
iNum = 0
|
|
end if
|
|
|
|
ListAppend ( lsInterim(), sType + ";" + sVario + ";" + iNum )
|
|
next i
|
|
|
|
if bAsianLan = FALSE then
|
|
Warnlog "The file for comparison does not exists. The file will be written!"
|
|
Warnlog "Please check : " + sList
|
|
ListWrite ( lsInterim(), sList )
|
|
else
|
|
Warnlog "The file for comparison does not exists. The file will be written!"
|
|
Warnlog "Please check : " + sList
|
|
ListWrite ( lsInterim(), sList, "utf8" )
|
|
end if
|
|
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
function URLGraphicCheck ( bRelativ as Boolean, sFile as String )
|
|
|
|
Dim sGraphicPath, sTestString, sDummy as String
|
|
Dim lsFile ( 200 ) as String
|
|
Dim i as Integer
|
|
'///check if the pathname of a linked file is relative or not ( only for func_LoadSaveGeneral_2 )
|
|
sGraphicPath = ( "/share/gallery/photos/desert1.jpg" )
|
|
ListRead ( lsFile(), sFile )
|
|
|
|
for i=1 to ListCount ( lsFile() )
|
|
|
|
if Instr( lsFile(i), "IMG SRC" ) <> 0 then
|
|
sTestString = lsFile(i)
|
|
i=1000
|
|
end if
|
|
|
|
next i
|
|
|
|
if bRelativ = TRUE then
|
|
|
|
if Instr( sTestString, "../.." ) = 0 then
|
|
Warnlog "Bug => The path is not relativ!"
|
|
endif
|
|
|
|
if Instr( sTestString, "file:///" ) <> 0 then
|
|
Warnlog "Bug => The relativ path contains 'file:///'"
|
|
endif
|
|
|
|
else
|
|
if Instr( sTestString, "file:///" ) = 0 then
|
|
Warnlog "Bug => The path is relativ!"
|
|
endif
|
|
|
|
if Instr( sTestString, "../.." ) <> 0 then
|
|
Warnlog "Bug => The nonrelativ path ( file:/// ) is not correct. It contains '../..'!"
|
|
endif
|
|
|
|
end if
|
|
|
|
if Instr( sTestString, sGraphicPath ) = 0 then
|
|
Warnlog "Wrong path to file, the graphic-part in filename is not correct!"
|
|
endif
|
|
|
|
end function
|
|
|
|
'*******************************************************************************
|
|
|
|
sub DialogTestForViewOptions
|
|
|
|
FormatParagraph
|
|
|
|
Kontext
|
|
active.SetPage TabEinzuegeUndAbstaende
|
|
Active.SetPage TabAusrichtungAbsatz
|
|
active.SetPage TabTextfluss
|
|
|
|
try
|
|
active.SetPage TabAsianTypography
|
|
catch
|
|
endcatch
|
|
|
|
active.SetPage TabNumerierungAbsatz
|
|
active.SetPage TabTabulator
|
|
active.SetPage TabInitialen
|
|
active.SetPage TabUmrandung
|
|
active.SetPage TabHintergrund
|
|
|
|
kontext "TabHintergrund"
|
|
TabHintergrund.Close
|
|
EditSearchAndReplace
|
|
|
|
Kontext "FindAndReplace"
|
|
FindAndReplace.Close
|
|
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub Make3D
|
|
|
|
'///test with 3D-objects when 3D-options are changed ( view page )
|
|
gApplication = "IMPRESS"
|
|
call hNewDocument()
|
|
WL_SD_Wuerfel
|
|
Sleep 1
|
|
|
|
Kontext "Documentimpress"
|
|
DocumentImpress.MouseDown 50, 50
|
|
DocumentImpress.MouseMove 30, 60
|
|
DocumentImpress.MouseUp 30, 60
|
|
Sleep 3
|
|
call hCloseDocument()
|
|
gApplication = "WRITER"
|
|
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub DeleteColor( cColorName as String )
|
|
'Deletes a color by name. The color is selected in the listbox
|
|
'and should - if it exists - be visible in the entryfield above the list.
|
|
'If this is not the case the color probably not exists and thus
|
|
'cannot be deleted.
|
|
'Remember i18n, only use this sub for colors you created yourself!
|
|
dim iItems as Integer 'Number of listed colors
|
|
dim i as Integer 'counter
|
|
dim bExists as Boolean 'TRUE if color has been successfully deleted
|
|
dim iPos as Integer 'Position of the deleted color
|
|
dim sColor as string
|
|
|
|
printlog "DeleteColor:: - Trying to delete color: '" + cColorName + "'"
|
|
Kontext "TabFarben"
|
|
bExists = FALSE
|
|
iItems = Farbe.getItemCount
|
|
i = 0
|
|
while ((i<iItems) AND (NOT bExists))
|
|
sColor = Farbe.getItemText(i+1)
|
|
if (sColor = cColorName) then
|
|
Loeschen.Click
|
|
Kontext "Active"
|
|
if Active.Exists then
|
|
printlog active.getText
|
|
Active.Yes
|
|
else
|
|
qaErrorlog "No warning about deleting the color."
|
|
endif
|
|
printlog " - successfully deleted color @ " + (i+1) + "/" + iItems
|
|
bExists = TRUE
|
|
else
|
|
inc (i)
|
|
endif
|
|
' if FarbName.getText = cColorName then
|
|
wend
|
|
iPos = i+1
|
|
|
|
if bExists then
|
|
'The userdefined colors usually are appended to the list. If they are
|
|
'somewhere else this might be a bug.
|
|
if iItems <> iPos then
|
|
warnlog " The color was not located at the end of the list."
|
|
printlog " The Order of the list might be corrupted"
|
|
end if
|
|
else
|
|
'Inform that the color did not exist. This usually is perfectly ok.
|
|
printlog " (The color was not deleted, it was not found)"
|
|
endif
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub modifyColorRGB_PGUP( iColor as Integer )
|
|
'The current color's values are set to maximum (255) for RGB
|
|
printlog( "modifyColorRGB_PGUP:: - change the color by pressing PAGE UP in RGB listboxes." )
|
|
|
|
Kontext "TabFarben"
|
|
Farbe.Select(iColor)
|
|
R.TypeKeys("<PageUp>")
|
|
G.TypeKeys("<PageUp>")
|
|
B.TypeKeys("<PageUp>")
|
|
printlog("modifyColorRGB_PGUP:: Press 'modify'")
|
|
Aendern.Click()
|
|
Sleep (1)
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub createNewColor( aColor() as String )
|
|
' INPUT : array: (1): Name; (2): Red value; (3): Green value; (4): Blue value
|
|
' OUTPUT:
|
|
'The desired color is selected by name and created.
|
|
'If it already exists, there is a problem
|
|
printlog( "createNewColor:: Adding a color to the list: '" + aColor(1) + "'"
|
|
Kontext "TabFarben"
|
|
FarbName.setText(aColor(1))
|
|
R.SetText(aColor(2))
|
|
G.SetText(aColor(3))
|
|
B.SetText(aColor(4))
|
|
Sleep(1)
|
|
Hinzufuegen.Click
|
|
Sleep(1)
|
|
|
|
Kontext "DuplicateNameWarning"
|
|
if DuplicateNameWarning.Exists then
|
|
warnlog "createNewColor:: Color already exists."
|
|
DuplicateNameWarning.OK
|
|
Kontext "NameDlg"
|
|
if NameDlg.Exists then
|
|
printlog "createNewColor:: Naming dialog shown. Good, cancelling"
|
|
NameDlg.Cancel
|
|
else
|
|
warnlog "createNewColor:: Naming dialog didn't came up."
|
|
end if
|
|
else
|
|
printlog "createNewColor:: New color has been created"
|
|
end if
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub getColorRGB( aColor() as String )
|
|
' INPUT : array with index 1-4 that will get deleted
|
|
' OUTPUT: array: (1): Name; (2): Red value; (3): Green value; (4): Blue value
|
|
'A RGB color always has four attributes:
|
|
'The name and the three RGB values (0...255)
|
|
printlog( "GetColorRGB:: Determining the current color" )
|
|
FarbModell.Select(1)
|
|
|
|
aColor(1) = FarbName.GetText()
|
|
aColor(2) = R.GetText()
|
|
aColor(3) = G.GetText()
|
|
aColor(4) = B.GetText()
|
|
|
|
printlog( "GetColorRGB:: N = " & aColor(1) )
|
|
printlog( "GetColorRGB:: R = " & aColor(2) )
|
|
printlog( "GetColorRGB:: G = " & aColor(3) )
|
|
printlog( "GetColorRGB:: B = " & aColor(4) )
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub compareTwoColorsRGB( aColor() as String )
|
|
' INPUT : array: (1): Name; (2): Red value; (3): Green value; (4): Blue value
|
|
' and a selected color
|
|
' OUTPUT:
|
|
'Comparision of two colors. Tested values are:
|
|
'Name and three RGB values
|
|
'aColor is the expected value, bColor is the current color
|
|
dim i as Integer
|
|
dim bColor(4) as String
|
|
|
|
printlog( "compareTwoColorsRGB:: Compare saved default color with the current" )
|
|
call getColorRGB(bColor())
|
|
for i = 1 to 4
|
|
if aColor(i) <> bColor(i) then
|
|
warnlog( "compareTwoColorsRGB:: " & "(" & i & ") Expected: '" _
|
|
& aColor( i ) & "' found: '" & bColor(i) & "'" )
|
|
else
|
|
printlog( "compareTwoColorsRGB:: " & "(" & i & ") OK" )
|
|
endif
|
|
next i
|
|
end sub
|
|
|
|
'*******************************************************************************
|
|
|
|
sub ModifyColorRGB( aColor() as String )
|
|
'A RGB color always has four attributes:
|
|
'The name and the three RGB values (0...255)
|
|
|
|
Kontext "TabFarben"
|
|
FarbName.SetText( aColor( 1 ) )
|
|
FarbModell.Select( 1 )
|
|
R.SetText( aColor( 2 ) )
|
|
G.SetText( aColor( 3 ) )
|
|
B.SetText( aColor( 4 ) )
|
|
Aendern.Click
|
|
end sub
|
|
|