Page 1 of 2
picture control and foreground colour
Posted: Thu Mar 26, 2009 9:47 pm
by l3whmg
Hi at everybody,
1) I’ve a problem with “Image” control: the image on video don't change. To better (I hope
) explain I've included a simple example. When I click on the button “bt_foto” the function work fine but don’t change the image on video; if I close the function p010_main() and return to the main (very main) program and then recall the same function p010_main() and the same/saved record, no image is loaded. But, MOST IMPORTANT, If I quit the main (very main) program, then reopen it, execute function p010_main() and recall the prior saved record with the new (changed) image, this is loaded on video! It’s my problem
2) I've a form with Tab control (see image): there is no great difference between the background color of the tab (red circle) and the background color of the field (green circle); on the other hand the standard background color (blu circle) of the form it's more gray. a) I don't find method to change (it's possible?) the tab background color
. b) It's my problem
Many thanks to everyone and excuse me for bad English
I’m run on WinXp MSSystem with Harbour MiniGUI 2.6.7
Bye
Re: picture control and foreground colour
Posted: Fri Mar 27, 2009 11:15 am
by esgici
Ciao Luigi
Could you explain the problem more specific please ?
Preferably with a working sample, concentrated to problem and isolated all about non related the problem.
PS : Please don't break your laptop before answered your question
Regards
--
Esgici
Re: picture control and foreground colour
Posted: Wed Apr 01, 2009 10:04 pm
by l3whmg
Ciao Esgici,
I’m sorry for the later, but I want try exactly and… I (
) found the problem!
Look at source Sub, line 64 (*LOCAL cFile := getfile...).
Now it’s commented and program work fine
but if I activate it don’t work
; the image don’t change on video.
Ok for the laptop
Bye
Re: picture control and foreground colour
Posted: Wed Apr 01, 2009 11:14 pm
by esgici
Hi Luigi
IMHO you have change Line 66 in sub.prg
p010win.iFoto.picture := NewFilename
to
p010win.iFoto.picture := cFile
Or change line 64 :
LOCAL cFile := getfile(aFilters, ...
to
LOCAL NewFilename := getfile(aFilters, ...
You already have ".\fotosoci" folder (under your working DIR) with pictures, isn't ?
Another point may be: If you are working with HMG-IDE, whenever modified sub.prg you have re-save main.prg too or use Project\Reset Project Incremental Data command before compiling project. Or better exclude #include sub.prg line from main.prg and add sub.prg as a separate module to project by using Project\Add Module command.
I hope that this help you.
Regards
--
Esgici
Re: picture control and foreground colour
Posted: Thu Apr 02, 2009 7:25 pm
by l3whmg
Hi Esgici,
thanks a lot for your quickly answer, but...
Yes I now that my pictures must be in the subfolder and yes I know that I need to do changes how you describe, but the problem is the "getfile" function! If I use it (to select or not the picture file it's not important now) only the activation create the problem! I have used this method (getfile to select file from folder) before Hmg 2.6.7 version and work fine; now, with this version, I have the problem: I don't understand
. I have looked that there is a new Hmg version: I try it
.
For the second answer I don't use HMG-IDE. Why? I don't know: perhaps I don't understand very well the power of this.
Among a few times I would want to share two very simple "library" that I write and use: one is to access at MySql and another one is to print (M$Window): can I do this here for everyone (and perhaps get some suggestions) ?
How is the weather in Alexandretta? Here, I'm living near Aosta Valley in the north of Italy, it's raining
.
Best regards
Re: picture control and foreground colour
Posted: Thu Apr 02, 2009 7:49 pm
by Rathinagiri
Among a few times I would want to share two very simple "library" that I write and use: one is to access at MySql and another one is to print (M$Window): can I do this here for everyone (and perhaps get some suggestions) ?
Hi Luigi,
It is the RIGHT time to share those libraries, since this is the hot topic of our Forum now! I am eager to see.
Re: picture control and foreground colour
Posted: Thu Apr 02, 2009 8:47 pm
by esgici
Hi Luigi
l3whmg wrote:
...I don't understand
...
Me too
After building "
.\fotosoci" folder, copying some pictures into it ( and correcting file's variable name ) your program work fine in my machine
If you want I can send you working version of your program ( my email address is
esgici @ gmail.com ).
Regarding
IDE, I strongly suggest using it. Let complex batch files and environment settings left in DOS
There isn't any difficulty. Simply follow a few
primitive samples. If you like you will begin
here.
Among a few times I would want to share two very simple "library" that I write and use: one is to access at MySql and another one is to print (M$Window): can I do this here for everyone (and perhaps get some suggestions) ?
As Rathinagiri said, this is just right time.
How is the weather in Alexandretta? Here, I'm living near Aosta Valley in the north of Italy, it's raining
.
Thanks. Since three days is very well: sunny, 27°C and rh is 42. Second half of March was fully rainy.
Best Regards
--
Esgici
Best regards
Re: picture control and foreground colour
Posted: Sat Apr 04, 2009 9:39 pm
by l3whmg
Hi at everybody,
thanks a lot for the informations Esgici!
First of all, that's incredible, I've rewrite the source (same code), recompile it and... work fine
. I don't understand what's the problem. One time, I've tried to use the "getfile" function in this way "cFile = getfile(aFilter, "prompt", cPath, .F., .T.)" and work fine then I rewrite in the original form with "cFile = getfile(aFilter, "prompt", cPath, .F., .F.)" and work fine also. For me it's a mystery
For the libraries, I take some little time because I want prepare little examples how to use them: my logic (or my mind
) can be very different from other
I'm very enjoy to do this for everyone. Rathinagiri, Esgici: many thanks for the invitations.
See you soon
Re: picture control and foreground colour
Posted: Tue Apr 21, 2009 5:47 pm
by mustafa
Luigi saluti
Non sei sicuro di quello che stai cercando è questo, sono molto nuovo e non so molto
programmazione in mingui, anni fa programare Clipper Summer 87 y dBfast.
Grazie al grande Maestro Esgici che risolve tutto ciò che noi chiediamo
Ho modificato un esempio di programma in modo da poter visualizzare le fotos in archivio
Siamo spiacenti, ma non parlano l'italiano o l'inglese
Un saludo
Mustafa
Luigi greetings
Not sure what you're looking for is this, I am very new and not so much
Programming mingui, I programmed years Clipper Summer 87 y dBfast.
Thanks to the Grand Master Esgici that solves all that we ask
I modified a sample program so you can view the photos in the archive
We're sorry, but do not speak Italian or English
Bye
Mustafa
l3whmg wrote:Hi at everybody,
1) I’ve a problem with “Image” control: the image on video don't change. To better (I hope
) explain I've included a simple example. When I click on the button “bt_foto” the function work fine but don’t change the image on video; if I close the function p010_main() and return to the main (very main) program and then recall the same function p010_main() and the same/saved record, no image is loaded. But, MOST IMPORTANT, If I quit the main (very main) program, then reopen it, execute function p010_main() and recall the prior saved record with the new (changed) image, this is loaded on video! It’s my problem
2) I've a form with Tab control (see image): there is no great difference between the background color of the tab (red circle) and the background color of the field (green circle); on the other hand the standard background color (blu circle) of the form it's more gray. a) I don't find method to change (it's possible?) the tab background color
. b) It's my problem
Many thanks to everyone and excuse me for bad English
I’m run on WinXp MSSystem with Harbour MiniGUI 2.6.7
Bye
Re: picture control and foreground colour
Posted: Tue Apr 21, 2009 6:21 pm
by esgici
Hola Mustafa
mustafa wrote:
I modified a sample program so you can view the photos in the archive
Nice work, thanks for sharing.
But please, don't exaggerate commendations about me
I'm not great nor master, only a a student. May be a little difference : my education may be began a little time before than yours, that's all.
Moreover we have one and
only one Great Master, you know
Viva Le Roy Roberto, viva HMG
Saludos Cordiales
--
Esgici