Hello Antonio,
Yes, the solution I have made is perfect.
"Sometimes, if things don't work the way you want, want them the way they work."
Again I am one step further in developing my program.
René
Search found 151 matches
- Sun Oct 30, 2016 4:27 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: change or put an image
- Replies: 13
- Views: 5294
- Sat Oct 29, 2016 3:17 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: change or put an image
- Replies: 13
- Views: 5294
Re: change or put an image
Hello Antonio, I have taken a complete new approach for the adding and changing images. Instead of showing all the images at once I put the names of the images in an array and show one of the images when i click on an item of a listbox. Now I am able to disable and enable buttons. Here is the code I...
- Tue Oct 25, 2016 8:52 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: change or put an image
- Replies: 13
- Views: 5294
Re: change or put an image
Hello Antonio, The action with arrays did not work, but I have another solution: I create buttons under the picture and with these buttons I can move an image and add or delete one. But how can I disable or enable a BTNBMP. This works with BUTTON, but not with BTNBMP. But the bAction works with BTNB...
- Fri Oct 21, 2016 10:46 am
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: change or put an image
- Replies: 13
- Views: 5294
Re: change or put an image
Hello Antonio, In which image it should be placed is depending on the number of photo's I have from that plant. So if a plant has 3 photo's, the new image should be placed on number 4. I will try another approach be defining several buttons where I can add a new image. By hiding most of them and usi...
- Fri Oct 21, 2016 9:26 am
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: change or put an image
- Replies: 13
- Views: 5294
Re: change or put an image
Hello Antonio,
This code does not work. I get an error: Code block contains both macro and declared symbol references 'NPLANTNUM'
I will try some other things next days
Regards,
René
This code does not work. I get an error: Code block contains both macro and declared symbol references 'NPLANTNUM'
I will try some other things next days
Regards,
René
- Wed Oct 19, 2016 6:14 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: change or put an image
- Replies: 13
- Views: 5294
Re: change or put an image
Hello Antonio,
I have updated the repository.
The problem is the use of the &oImg. The program awnsers with Not Defined?
René
I have updated the repository.
The problem is the use of the &oImg. The program awnsers with Not Defined?
René
- Tue Oct 18, 2016 9:19 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: change or put an image
- Replies: 13
- Views: 5294
change or put an image
I have a window with several tabs. On one tab I can put up to 15 small images. With a button I can select a new image to put on this tab. But how do I show this image? I have tried using setimage(), but that gives an error. Here is my code: *tab 3, in array aFotoNaam are the names of the images ...
- Wed Oct 05, 2016 6:28 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: hotkeys
- Replies: 0
- Views: 1461
hotkeys
Is it possible to define hotkeys in a window, like Cmd-P to call printing Function and Cmd-f for finding Function
- Tue Oct 04, 2016 8:45 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: resizing images
- Replies: 1
- Views: 1568
resizing images
Hello Antonio, I have used the new function SaveImageFromImage() and it works perfect. Here is the code I used. FUNCTION RK_SelectFoto(nPlantnum) *to select a picture, resize it and place it in the right folder *28-09-2016 LOCAL oWndFoto, oBtnOK LOCAL oFoto LOCAL cFoto := '' LOCAL cKopie := '' LOCAL...
- Tue Sep 27, 2016 8:45 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: clickable image
- Replies: 12
- Views: 4142
Re: clickable image
Hello Antonio,
I have put the latest version on git
I have put some comments in the source, so its easier to understand
Rene
I have put the latest version on git
I have put some comments in the source, so its easier to understand
Rene
- Tue Sep 27, 2016 8:40 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: Defining labels, checkboxes and so on by macro substitution
- Replies: 7
- Views: 2782
Re: Defining labels, checkboxes and so on by macro substitution
Hello Antonio, The detached local function works perfect. Now I only want to make the image bigger or smaller. The window resizing goes well, but not the image. FUNCTION RK_FotoGroot(cImage) *to show a big picture LOCAL oWndFoto LOCAL oFoto LOCAL nFoto := VAL(SUBSTR(cImage, 5)) LOCAL cFoto := aFotoN...
- Mon Sep 26, 2016 8:09 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: Defining labels, checkboxes and so on by macro substitution
- Replies: 7
- Views: 2782
Re: Defining labels, checkboxes and so on by macro substitution
Yes, I did get an error on compiling. The name of the object was not correct. oImgName := 'oImg' + STR(nFoto) -> oImgName := 'oImg' + ALLTRIM(STR(nFoto)) But in another function can I retrieve the name of the object, this doesn't work: FOR r = 1 TO 3 FOR k = 1 TO 5 cImage := ...
- Mon Sep 26, 2016 7:58 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: clickable image
- Replies: 12
- Views: 4142
Re: clickable image
Hello Antonio,
Sorry, yes that was the trick. I was forgotten to put the newest lib in the lib-folder. thats why I got an error. I have to work more exact. Tomorrow I will put my newest code on Git, so you can see the progress.
Sorry, yes that was the trick. I was forgotten to put the newest lib in the lib-folder. thats why I got an error. I have to work more exact. Tomorrow I will put my newest code on Git, so you can see the progress.
- Mon Sep 26, 2016 6:38 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: Defining labels, checkboxes and so on by macro substitution
- Replies: 7
- Views: 2782
Defining labels, checkboxes and so on by macro substitution
Is it possible to define labels and checkboxes with macrosubstitution. Sometimes I want to define several labels images and chackboxes in a FOR NEXT loop. LOCAL nFoto := 1 FOR r = 1 TO 3 FOR k = 1 TO 5 cImage := aFotoNaam[nFoto] oImgName := 'oImg' + STR(nF...
- Mon Sep 26, 2016 6:32 pm
- Forum: FiveMac / FivePhone (iPhone, iPad)
- Topic: clickable image
- Replies: 12
- Views: 4142
Re: clickable image
Hello Antonio, The nWidth and nHeight gives the sizes of the defined object, not of the picture. I have a picture of 480 px height and 640 px width. When I place this on my BigPhoto window the sizes given are the sizes I have dementioned. See code: FUNCTION RK_BigPhoto(cImage) *to show a big picture...