Author |
Topic  |
|
pierrotsc
  
USA
499 Posts |
Posted - Dec 18 2014 : 12:38:56
|
i know it has to be something in my code or some kind of component property. right now, my selection grips are clear. it does not matter if i change the brush style to bssolid. i can change the shape and the size but cannot alter the color inside the circle.
anybody would know what i could have set wrong? i use the setselectiongripstyle.
thanks Pierre |
|
xequte
    
39140 Posts |
Posted - Dec 18 2014 : 17:05:46
|
Hi
Please show us the code you are using. This works fine for me:
ImageEnView.SetSelectionGripStyle( clBlue, clRed, bsSolid, 4, true, iegsCircle );
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
 |
|
pierrotsc
  
USA
499 Posts |
Posted - Dec 18 2014 : 18:53:06
|
Indeed it works but i have broken something in the code. If i go back one week earlier on my backup, it works. On my last build it does not anymore and i cannot figure out what is going on.
The pen lines instead of being red like it should be are white. The grips are not fully clear. If i switch it to clear, i can see that it is happening. When i switch it back to solid, it turns into a white transparent film where the colors have no effect. I have been working hours trying to find out what is going on. The codes for the grips have not changed. It is something else that is creating this behavior. I removed all the form create and so on and it is still happening. I am really frustrated. There is no way i can upload all my code too. Pierre |
 |
|
xequte
    
39140 Posts |
Posted - Dec 18 2014 : 18:56:53
|
Hi Pierre
I recommend you add the ImageEn source folder to your Delphi library path. Put breakpoints on all lines referencing fGripBrushStyle in imageenview.pas and trace where it goes wrong.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
 |
|
pierrotsc
  
USA
499 Posts |
Posted - Dec 19 2014 : 12:21:52
|
Ok, I did that but it really did not help. Maybe because i do not know on how to use the trace feature. I know there is nothing wrong with imageen. I did find my issue. I used to use to devexpress combobox and removed all devexpress components from my code. I replaced the combobox with the regular combobox and i forgot to alter the code.
I think now it is working. I do have a question though. The only way to change the outside color of the grip is by using the setselectiongripstyle. am I correct? Thanks. |
 |
|
w2m
   
USA
1990 Posts |
Posted - Dec 19 2014 : 12:27:48
|
You can also use the SelColor1 and SelColor2 properties to set the two colors of the animated selection polygon.
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |
 |
|
xequte
    
39140 Posts |
Posted - Dec 22 2014 : 22:09:08
|
Hi
Other than SetSelectionGripStyle and the properties Bill mentions, there are no other ways to set selection colors.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
 |
|
pierrotsc
  
USA
499 Posts |
Posted - Dec 23 2014 : 08:34:01
|
i found out that changing the pen size and the pen color will alter the outside edge of the grip. there is a property i found in the manual about that.
thanks for all your help Pierre |
 |
|
|
Topic  |
|