05-03-2007, 01:05 AM
Hello Gin. I was wondering if there was a way to make an icon that I can use for my dialog. I would like to put it down where the clock is so its easy access for my dialog. Please help.
Dialog Help again please.
|
05-03-2007, 01:05 AM
Hello Gin. I was wondering if there was a way to make an icon that I can use for my dialog. I would like to put it down where the clock is so its easy access for my dialog. Please help.
05-03-2007, 07:59 AM
05-03-2007, 07:12 PM
ok i tried this and it worked the first time but then after i rebooted qm it wouldnt make the icon? and also when i had it working the first time everytime i clicked it without control it made another one can this be avoided?
05-03-2007, 07:41 PM
The function does not run without a reason. Assign a trigger.
05-03-2007, 07:44 PM
ok but where do i place AddTrayIcon "lightning.ico" "Click to show dialog.[]Ctrl+click to remove icon." "FunctionThatShowsDialog"
wait -1 ?
05-03-2007, 07:55 PM
make a new function and place the code in it.
then run the function. each time QM restarts (ie system reboot) you'll need to have that function start.
05-03-2007, 07:59 PM
ok ty ill try
05-03-2007, 08:05 PM
ok ty it works one last question on this...can i set this up so that when i run the icon it opens the dialog and also can i change how to close the icon? i dont like the control click... if not its ok
05-03-2007, 08:10 PM
How would you like to close the icon?
Quote:can i set this up so that when i run the icon it opens the dialog Start the dialog using mac in first line of function that adds tray icon.
05-03-2007, 08:12 PM
if possible by right clicking it?
05-03-2007, 08:17 PM
05-03-2007, 08:33 PM
Gintaras Wrote:How would you like to close the icon? i had tried this but it only created the icon and didnt open the dialog?
05-03-2007, 08:35 PM
post all your code for that icon function and let's take a look.
05-03-2007, 08:44 PM
its ok i got it now idk what i was thinking :!:
![]()
05-04-2007, 02:07 AM
I'm sorry to bring this up again... i accidentely deleted the old icon thing i was making :x but i was curious, if possible, how do i make the icon appear at the title of the dialog?
05-04-2007, 07:12 AM
ShowDialog now has an 'icon' argument. All arguments before it (hwndowner ... y) can be 0. If it doesn't, download newer QM version.
05-04-2007, 07:05 PM
ok thanks i got it to work but now this isnt workign right?
GdiObject- brush=CreateSolidBrush(ColorFromRGB(50 75 125)) it makes my dialog have the icon i wanted but now it doesnt change the dialog to blue and none of my buttons and ids etc. work?
05-04-2007, 07:21 PM
Quote:All arguments before it (hwndowner ... y) I mean only arguments starting from 4-th can be 0. Don't change the first three.
05-04-2007, 07:26 PM
ok i got ya i fixed it just the way i wanted it thanks for all the help gin
|
« Next Oldest | Next Newest »
|