Set Font Properties On Mouse Hover Of Push Button And Text Items At Run time In Oracle Forms
2016-12-25 18:05
1081 查看
[align=justify]Change the font size and weight of text items and push buttons on mouse hover in Oracle Forms.[/align] [align=justify] [/align] [align=justify]An example is given below to highlight the text in text items and highlight the label of a push button item at run time whenever mouse enters or leave, by using set_item_property and get_item_property command to set the Font_Size and Font_Weight property.[/align] [align=justify] [/align] [align=justify]The code is written on When-Mouse-Enter trigger and on When-Mouse-Leave trigger.[/align] [align=justify] [/align] [align=justify]The following is the screen shot of this example:[/align] [align=justify] [/align]
[align=justify] [/align] [align=justify]This form can be downloaded from the following link Mousehover.fmb[/align] [align=justify] [/align] [align=justify]The code is written on the When-Mouse-Enter trigger at block level is:[/align] [align=justify] [/align] [align=justify]declare[/align] [align=justify]mitem varchar2(100) := :system.mouse_item;[/align] [align=justify]begin[/align] [align=justify] if get_item_property(mitem, item_type) in ('BUTTON', 'TEXT ITEM') THEN[/align] [align=justify] set_item_property(mitem, font_size, get_item_property(mitem, font_size) + 2);[/align] [align=justify] set_item_property(mitem, font_weight, FONT_BOLD);[/align] [align=justify] END IF;[/align] [align=justify]end;[/align] [align=justify] [/align] [align=justify]The code is written on the When-Mouse-Leave trigger at block level is:[/align] [align=justify] [/align] [align=justify] declare[/align] mitem varchar2(100) := :system.mouse_item; begin if get_item_property(mitem, item_type) in ('BUTTON', 'TEXT ITEM') THEN set_item_property(mitem, font_size, get_item_property(mitem, font_size) - 2); set_item_property(mitem, font_weight, FONT_LIGHT); END IF; end; See also: Change Button Icon At Run Time on Mouse Hover
[align=justify] [/align] [align=justify]This form can be downloaded from the following link Mousehover.fmb[/align] [align=justify] [/align] [align=justify]The code is written on the When-Mouse-Enter trigger at block level is:[/align] [align=justify] [/align] [align=justify]declare[/align] [align=justify]mitem varchar2(100) := :system.mouse_item;[/align] [align=justify]begin[/align] [align=justify] if get_item_property(mitem, item_type) in ('BUTTON', 'TEXT ITEM') THEN[/align] [align=justify] set_item_property(mitem, font_size, get_item_property(mitem, font_size) + 2);[/align] [align=justify] set_item_property(mitem, font_weight, FONT_BOLD);[/align] [align=justify] END IF;[/align] [align=justify]end;[/align] [align=justify] [/align] [align=justify]The code is written on the When-Mouse-Leave trigger at block level is:[/align] [align=justify] [/align] [align=justify] declare[/align] mitem varchar2(100) := :system.mouse_item; begin if get_item_property(mitem, item_type) in ('BUTTON', 'TEXT ITEM') THEN set_item_property(mitem, font_size, get_item_property(mitem, font_size) - 2); set_item_property(mitem, font_weight, FONT_LIGHT); END IF; end; See also: Change Button Icon At Run Time on Mouse Hover
相关文章推荐
- Change An Item Property Using Set_Item_Property In Oracle Forms
- Calling / Running a report in Oracle forms 10g / 11g
- Change Or Set Report Object Property At Run Time In Oracle Forms Using Set_Report_Object_Property Command
- Refresh / Updating a form screen in Oracle D2k Forms 6i
- Know How And When To Use System.Message_Level To Control Messages In Oracle Forms
- Perform Cut Copy Paste Operations Using Cut_Region Copy_Region Paste_Region Commands In Oracle Forms
- 使用EF Oracle实现DevExpress绑定大数据的ServerMode模式
- CHECKBOX_CHECKED built-in in Oracle D2k Forms
- Limiting To Select Only 5 Check Boxes Out Of Ten In Oracle Forms
- oracle 基础之表操作
- Know How To Use Check Box Mapping Of Other Values Property In Oracle Forms
- Date Picker Calendar For Oracle Forms 6i
- Freebie: Date Picker Calendar Demo Form For Oracle Forms 6i
- Creating Excel File in Oracle Forms
- Formatting Excel File Using Ole2 In Oracle Forms
- Freebie - Utility Form: Generate Excel Report From SQL Query In Oracle Forms 6i And 11g
- Create Custom Modal Dialog Windows For User Input In Oracle Forms
- Run_Product Example Form - Oracle Forms 6i
- Create Hierarchical Tree To Control Records In Oracle Forms
- 【Oracle】ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired