Rev 491 | Rev 493 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 491 | Rev 492 | ||
---|---|---|---|
Line 282... | Line 282... | ||
282 | 282 | ||
283 | // Note: The whole class "Caution" gets the mouse cursor, not just the single item! |
283 | // Note: The whole class "Caution" gets the mouse cursor, not just the single item! |
284 | SetClassLongPtr(GetDlgItem(hDlg, FIRSTICONITEM), GCLP_HCURSOR, (LONG_PTR)hCurHandQuestion); |
284 | SetClassLongPtr(GetDlgItem(hDlg, FIRSTICONITEM), GCLP_HCURSOR, (LONG_PTR)hCurHandQuestion); |
285 | 285 | ||
286 | for(i = 0; i < 4; ++i){ |
286 | for(i = 0; i < 4; ++i){ |
- | 287 | TCHAR msg[0x100]; |
|
- | 288 | LoadString(hDllInstance, MSG_ERROR_IN_EXPRESSION_CLICK_DETAILS_ID, &msg[0], 0x100); |
|
287 | CreateToolTip(FIRSTICONITEM + i, hDlg, (TCHAR*)TEXT("Error in expression! Click to see details.")); |
289 | CreateToolTip(FIRSTICONITEM + i, hDlg, msg); |
288 | } |
290 | } |
289 | 291 | ||
- | 292 | { |
|
- | 293 | TCHAR msg[0x100]; |
|
- | 294 | LoadString(hDllInstance, MSG_ZOOM_IN_ID, &msg[0], 0x100); |
|
290 | CreateToolTip(ZOOMINITEM, hDlg, (TCHAR*)TEXT("Zoom in")); |
295 | CreateToolTip(ZOOMINITEM, hDlg, msg); |
- | 296 | LoadString(hDllInstance, MSG_ZOOM_OUT_ID, &msg[0], 0x100); |
|
291 | CreateToolTip(ZOOMOUTITEM, hDlg, (TCHAR*)TEXT("Zoom out")); |
297 | CreateToolTip(ZOOMOUTITEM, hDlg, msg); |
- | 298 | LoadString(hDllInstance, MSG_FULLY_ZOOM_INOUT_ID, &msg[0], 0x100); |
|
292 | CreateToolTip(ZOOMLEVELITEM, hDlg, (TCHAR*)TEXT("Fully zoom in/out")); |
299 | CreateToolTip(ZOOMLEVELITEM, hDlg, msg); |
- | 300 | } |
|
293 | 301 | ||
294 | for(i = 0; i < 8; ++i){ |
302 | for(i = 0; i < 8; ++i){ |
295 | FF_SetSliderRange(hDlg, FIRSTCTLITEM+i, 0, 255); |
303 | FF_SetSliderRange(hDlg, FIRSTCTLITEM+i, 0, 255); |
296 | SendDlgItemMessage(hDlg,FIRSTCTLTEXTITEM+i, EM_SETLIMITTEXT,3,0); |
304 | SendDlgItemMessage(hDlg,FIRSTCTLTEXTITEM+i, EM_SETLIMITTEXT,3,0); |
297 | } |
305 | } |
Line 414... | Line 422... | ||
414 | 422 | ||
415 | //simplealert((TCHAR*)TEXT("This plugin requires Photoshop's PLUGIN.DLL or the Microsoft Trackbar Control (msctls_trackbar32) which was not found on your system.")); |
423 | //simplealert((TCHAR*)TEXT("This plugin requires Photoshop's PLUGIN.DLL or the Microsoft Trackbar Control (msctls_trackbar32) which was not found on your system.")); |
416 | //return false; |
424 | //return false; |
417 | 425 | ||
418 | // We simply hide the sliders and let the user enter the numeric values in the edit-box. |
426 | // We simply hide the sliders and let the user enter the numeric values in the edit-box. |
419 | simplewarning((TCHAR*)TEXT("Visual sliders are not available because neither PLUGIN.DLL, nor the Microsoft Trackbar Control (msctls_trackbar32) was found on your system.")); |
427 | simplewarning_id(MSG_SLIDER_UNAVAILABLE_ID); |
420 | Slider_Init_None(TEXT("FoundrySlider")); |
428 | Slider_Init_None(TEXT("FoundrySlider")); |
421 | } |
429 | } |
422 | } |
430 | } |
423 | 431 | ||
424 | // For the preview image and caution symbols, we register subclasses, so that we can assign a mouse cursor to this class. |
432 | // For the preview image and caution symbols, we register subclasses, so that we can assign a mouse cursor to this class. |
Line 430... | Line 438... | ||
430 | 438 | ||
431 | // Note: "Invalid Cursor Handle" is the error when an unrecognized control class is detected |
439 | // Note: "Invalid Cursor Handle" is the error when an unrecognized control class is detected |
432 | res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(gdata->standalone ? ID_PARAMDLG : ID_MAINDLG), |
440 | res = DialogBoxParam(hDllInstance,MAKEINTRESOURCE(gdata->standalone ? ID_PARAMDLG : ID_MAINDLG), |
433 | (HWND)p->hwnd,maindlgproc,0); |
441 | (HWND)p->hwnd,maindlgproc,0); |
434 | if (res == 0) { |
442 | if (res == 0) { |
435 | simplealert((TCHAR*)TEXT("DialogBoxParam invalid parent window handle")); |
443 | simplealert((TCHAR*)TEXT("DialogBoxParam invalid parent window handle")); // TODO (Not so important): TRANSLATE |
436 | } |
444 | } |
437 | if (res == -1) { |
445 | if (res == -1) { |
438 | TCHAR s[0x300]; |
446 | TCHAR s[0x300]; |
439 | xstrcpy(s, (TCHAR*)TEXT("DialogBoxParam failed: ")); |
447 | xstrcpy(s, (TCHAR*)TEXT("DialogBoxParam failed: ")); // TODO (Not so important): TRANSLATE |
440 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - (DWORD)xstrlen(s), NULL); |
448 | FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, s + xstrlen(s), 0x300 - (DWORD)xstrlen(s), NULL); |
441 | simplealert(&s[0]); |
449 | simplealert(&s[0]); |
442 | } |
450 | } |
443 | 451 | ||
444 | // Clean up after the dialog has been closed |
452 | // Clean up after the dialog has been closed |